Skip to the scanner

Utility Scanner

Utility-First Markup to CSS at Build Time

If you've used Tailwind JIT, you already know the workflow. The difference: your classes are backed by type-safe factories and your own design tokens, and you control their syntax and naming.
Get startedRead utility scanner docs

  1. 01 Scanner
  2. 02 Templates
  3. 03 Output
Scroll to explore

01Scanner

Write Classes. The Utility Scanner Handles the Rest

  • Zero RegistrationUse utility classes without pre-defining every value. The scanner registers them for you.
  • Only Used CSSYour stylesheet holds exactly what your templates reference.
  • Arbitrary ValuesWrite a one-off value in brackets, like _padding:[2.5rem], without a token for it.
  • Stacked ModifiersChain modifiers freely, like _dark:hover:color:primary.
  • Your Syntax, Your RulesYou define the factories behind your classes: their names, allowed values and output.
  • Instant HMRIn development, only the files you change are rescanned.

02Templates

Write Classes in Your Templates

The scanner reads your source files, extracts every _property:value class, and generates the matching CSS at build time.

  • 12+ File TypesVue, React, Svelte, Astro, MDX, PHP, ERB, Twig, Blade and plain HTML, each with its own extractor.
  • Custom ExtractorsFor any other file type, write an extractor in a few lines and plug it in.
Button.vue
<template>
    <div class="_display:flex _gap:1rem _padding:lg">
        <button class="_background:primary
                       _hover:background:secondary
                       _padding:md
                       _font-weight:bold">
            Click me
        </button>
        <span class="_color:muted _font-size:sm">
            Detected and generated automatically.
        </span>
    </div>
</template>

03Output

See Exactly What Gets Generated

Design tokens resolve to CSS custom properties. Arbitrary bracket values produce literal CSS. Modifiers wrap declarations in the correct pseudo-selectors and media queries.

Output CSS
/* Only the utilities your templates reference */

._padding\:lg {
        padding: var(--spacing-lg);
}

._background\:primary {
        background: var(--color-primary);
}

._hover\:background\:secondary:hover {
        background: var(--color-secondary);
}

/* Arbitrary values generate literal CSS */
._padding\:\[2\.5rem\] {
        padding: 2.5rem;
}

Utility Scanner

Start Writing Utility Classes Today

Enable the scanner, register your factories, and let your templates drive your CSS output.