Using Fontsource With 11ty

This page summarizes the projects mentioned and recommended in the original post on dev.to

SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • rollup-plugin-postcss

    Seamless integration between Rollup and PostCSS.

  • import { nodeResolve } from "@rollup/plugin-node-resolve"; import postcss from "rollup-plugin-postcss"; import copy from "rollup-plugin-copy"; export default [ { input: "src/js/combine.js", output: { file: "src/js/minified/index.bundle.js", sourcemap: false, } plugins: [ nodeResolve(), postcss({ extract: true, // no way to move output to another folder https://github.com/egoist/rollup-plugin-postcss/issues/250 minimize: true, }), copy({ targets: [ { src: "src/js/minified/index.bundle.css", dest: "src/styles/minified", rename: "fonts.bundle.css", }, ], verbose: true, hook: "writeBundle", }) ], } ];

  • vite

    Next generation frontend tooling. It's fast!

  • Slinkity uses vite for bundling which is great, but it became a problem for me. I have a relatively old and large project with some custom configurations which came in the way of how vite does things, so migrating to vite resulted in a mess. The migration needs more time. So, I decided to take another approach which might be not so good.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • rollup-plugin-copy

    Copy files and folders using Rollup

  • Now, to extract css, I used the postcss rollup plugin and the rollup copy plugin to copy the generated css file to the desired directory. I had to use rollup-plugin-copy because of this issue.

  • fontsource

    Self-host Open Source fonts in neatly bundled NPM packages.

  • I stumbled upon fontsource.org the other day and I found the idea of installing fonts from npm packages appealing.

  • astro

    The web framework for content-driven websites. ⭐️ Star to support our work!

  • At first, I used it in my personal site built with Astro. The process was incredibly simple. You just have to import fonts in your base layout file and that's it. You are ready to use it in your CSS!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Approaches to Styling React Components, Best Use Cases

    2 projects | dev.to | 24 Apr 2024
  • How to use ChatGPT to build macOS applications without any code experience

    1 project | dev.to | 6 Feb 2024
  • Module Federation using ViteJS - Step into the Micro-frontend architecture

    2 projects | dev.to | 5 Jan 2024
  • Is there a solution for CSS modules that would allow to have TSX and CSS in the same file?

    2 projects | /r/react | 26 May 2023
  • Just add Storybook v7 into my React Boilerplate built with Next.js + TypeScript + Tailwind CSS + ESLint + Prettier + Jest + Cypress

    5 projects | /r/reactjs | 6 Apr 2023