strata
DocsPackagesBlogsShowcase
Introduction

Guides

  • Installation
  • Configuration
  • Build Pipeline
  • Theme System
  • Data-Attribute States
  • Versioning & Contributing

Utilities

  • Spacing
  • Display
  • Flexbox
  • Grid
  • Sizing
  • Typography
  • Colors
  • Borders
  • Shadows
  • Position
  • Overflow
  • Opacity & Visibility
  • Misc
  • Arbitrary Values

Components

  • Buttons
  • Cards
  • Forms
  • Navigation
  • Modals
  • Alerts, Badges & Progress
  • Tables & Lists
  • Dropdowns, Tooltips & Popovers
  • Accordion & Offcanvas
  • Placeholders

Build Pipeline

Strata is a JIT CSS framework — you write class names in your HTML/JSX, Strata scans those files, looks each class up in its registry, and emits only the CSS that's actually used. No purging step needed.

Nothing on this page is something you run yourself

This is what happens automatically, every time, inside every build — whether it's triggered by the CLI (--build / --watch), the PostCSS plugin running as part of Vite/Webpack's own pipeline, or the one-off build strata-css init runs for you during setup. There's no separate step here to remember; it's the same pipeline no matter which of those triggered it.

What happens on build

  1. strata.build() calls scanFiles(globs) — finds all class names in your content files.
  2. Passes them to generate(classNames) — looks up each in the registry Map.
  3. Routes each rule to its breakpoint sub-layer (st-utilities-md, st-components-lg, etc.).
  4. String-replaces @strata base/components/utilities in the input CSS.
  5. Writes the output CSS to disk.

Warm builds

If nothing changed, Strata returns the cached CSS string — zero allocation.

CSS Layers

Layer declaration order controls cascade priority — source order in your HTML never matters:

st-base
st-components  ->  st-components-xs  <  sm  <  md  <  lg  <  xl  <  xxl
st-utilities   ->  st-utilities-xs   <  sm  <  md  <  lg  <  xl  <  xxl
st-skeleton

Higher breakpoint layers always beat lower ones, and utilities always win over components at the same breakpoint.

PreviousConfigurationNextTheme System
strata

JIT CSS Framework. Built for modern UI.

Docs

  • Introduction
  • Installation
  • Configuration
  • Utilities

Packages

  • All Packages
  • Forms
  • Modal
  • Chart

GitHub

  • Repository
  • Issues
  • Pull Requests
  • Discussions

npm

  • strata-css
  • Releases
  • Changelog
LicenseContributingChangelog
PrivacyTerms