Skip to content
@fylgja

Fylgja CSS

Your CSS Companion

Fylgja CSS is a modular CSS library built around plain HTML. Pick exactly the parts you need, combine them with the tools you already use, and override anything without fighting specificity.

What's inside

  • Base: classless defaults that make plain HTML look good, kept at zero specificity with :where.
  • Tokens: one design language as plain CSS variables, for colors, sizes, shadows, easing and more.
  • Utilities: a curated set of utilities you tune with a CSS variable instead of a new class.
  • Components: small, single class components such as card, badge, callout and toast.
  • UI: components you copy, not dependencies you install. Plain, accessible HTML that works with any framework.

Get started

npm install fylgja

This installs Base, Tokens and Utilities in one go. No build step? Copy a file straight into your project with npx fylgja@latest add base, or link it from a CDN. The getting started guide covers every option.

Follow along

Read the blog for releases and guides, or follow Fylgja on Bluesky, Mastodon and DEV.

Contributing

Issues, ideas and pull requests are welcome. Start with the contributing guide, and if Fylgja is useful to you, a star on fylgja/fylgja helps others find it.

Pinned Loading

  1. fylgja fylgja Public

    The flexible and lightweight CSS library designed to streamline your web development.

    CSS 116 2

  2. css-attr-polyfill css-attr-polyfill Public

    Compile CSS attr() v2 into static fallback rules for browsers that do not support it

    JavaScript 1

  3. snap-slider snap-slider Public

    A CSS-powered slider/carousel, enhanced with JavaScript for improved functionality and accessibility.

    JavaScript 5

  4. alpinejs-dialog alpinejs-dialog Public

    Bring the power of AlpineJs to the HTML dialog.

    HTML 32 1

  5. stylelint-config stylelint-config Public

    A shareable stylelint config object that enforces Fylgja's css rules

    JavaScript 4

  6. tailwindcss tailwindcss Public

    Tailwind CSS preset to use the Fylgja Design System, with its design tokens, base styles, and utilities.

    CSS 1

Repositories

Showing 10 of 18 repositories

Top languages

Loading…

Most used topics

Loading…