CSS Utilities

Preset CSS utility classes that let you efficiently customize styles and layouts for components and native elements alike.

Instead of hand-writing the same CSS over and over, reach for a utility class and your theme takes care of the rest. CSS utilities pull directly from your Web Awesome theme and design tokens, so colors, typography, rounding, and spacing stay consistent with every component on the page. They're framework-agnostic, work on any native HTML element, and can be combined freely.

Using CSS Utilities

Link to This Section

CSS utilities ship as part of webawesome.css, so if you're already including that stylesheet you don't need to import anything else. Otherwise, follow these instructions to include the utilities stylesheet on its own.

CDN npm Self-Hosted Hosted Projects

Add the following stylesheet to the <head> section of your pages:

<link rel="stylesheet" href="https://ka-f.webawesome.com/[email protected]/styles/utilities.css">

After installing @awesome.me/webawesome, import the following stylesheet into your app:

import '@awesome.me/webawesome/dist/styles/utilities.css';

Add the following stylesheet to the <head> section of your pages:

<link rel="stylesheet" href="/dist/styles/utilities.css">

If you're using a hosted project, CSS utilities can be toggled on from your project settings.

  1. Head over to your project's Settings.
  2. Next to Features, select the CSS utilities checkbox.
  3. Save Changes to immediately update anywhere you're using your project.

Style Utilities

Link to This Section

Preset rules for customizing colors, typography, rounding, and more — framework-agnostic and composable on any element.

Layout Utilities

Link to This Section

Named layouts like wa-stack, wa-cluster, wa-split, wa-flank, wa-frame, and wa-grid — plus property-level helpers for gap, alignment, and wrap — that organize content responsively without custom CSS.

    No results
    Navigate Enter Select Esc Close