Web Awesome (ViUR)

Font Awesome
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Search this website ⌘KCtrl+K Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme View Project on GitHub Star Project on GitHub
Start Components Docs Help
Web Awesome Font Awesome Build Awesome
Search this site… /
Try SSR Server-side rendering (SSR) generates component HTML on the server before the page loads, improving SEO and initial load time. Use the switch to see Web Awesome components render with and without SSR.
Light Dark System Docs Select Color Scheme Default Awesome Shoelace Active Brutalist Glossy Matter Mellow Playful Premium Tailspin Docs Select Theme

Getting Started

  • Installation
  • Usage
  • Forms
  • Localization
  • Frameworks
  • Using with AI
  • Figma Design Kit ProThis requires access to Web Awesome Pro
  • Server Rendering

Resources

  • Accessibility
  • Browser Support
  • Contributing
  • Patterns ProPatterns require access to Web Awesome Pro
  • Migrating from Shoelace
  • Visual Tests
  • Changelog
  • Help & Support

Theming & Utilities

  • Overview
  • Built-in Themes
  • Color Palettes
  • Design Tokens
  • Customizing & Theming
  • CSS Utilities

ViUR Components

  • Alert
  • Combobox
  • Pagination
  • Table Wrapper

Actions

  • Button
  • Button Group
  • Copy Button
  • Dropdown
    • Dropdown Item

Forms

  • Checkbox
  • Checkbox Group
  • Color Picker
  • Input
  • Known Date
  • Number Input
  • Radio Group
    • Radio
  • Rating
  • Select
    • Option
  • Slider
  • Switch
  • Textarea
  • Time Input
  • Data Grid Planned A Web Awesome Kickstarter stretch goal!

Layout

  • Accordion
    • Accordion Item
  • Card
  • Details
  • Dialog
  • Divider
  • Drawer
  • Page
  • Scroller
  • Split Panel

Navigation

  • Breadcrumb
    • Breadcrumb Item
  • Tab Group
    • Tab
    • Tab Panel
  • Tree
    • Tree Item

Feedback

  • Badge
  • Callout
  • Progress Bar
  • Progress Ring
  • Skeleton
  • Spinner
  • Tag
  • Tooltip

Media

  • Animated Image
  • Avatar
  • Carousel
    • Carousel Item
  • Comparison
  • Icon
  • Markdown
  • QR Code
  • Zoomable Frame

Data Viz

  • Advanced Usage

Helpers

  • Animation
  • Format Bytes
  • Format Date
  • Format Number
  • Include
  • Intersection Observer
  • Mutation Observer
  • Popover
  • Popup
  • Random Content
  • Relative Time
  • Resize Observer

Design Tokens

  • Using Design Tokens
  • Customizing Design Tokens
On This Page...
  • Using Design Tokens
  • Customizing Design Tokens

Design Tokens

Design tokens are the building blocks of your theme and thread through every Web Awesome component, giving your project a cohesive look and feel. They control everything from typography and color to spacing and borders.

Borders

Border tokens define the edges and corners of Web Awesome components.

Color

Ensure consistent use of color and readable contrast with Web Awesome's color properties.

Component Groups

Style groups of components that share similar qualities with these Web Awesome tokens.

Ellipsis

This CSS utility layer provides single- and multi-line text truncation classes that neatly cut off overflowing text and replace it with an ellipsis.

Focus

Configure recognizable focus states with Web Awesome's focus tokens.

Shadows

Elevate your components with Web Awesome's shadow tokens.

Space

Lock down consistent spacing Web Awesome's space tokens.

Transitions

Customize your theme's built-in transitions with Web Awesome's transition tokens.

Typography

Get consistent font styles and vertical rhythm with Web Awesome's typography tokens.

No results found

Using Design Tokens

Link to This Section

Design tokens are CSS custom properties prefixed with --wa-. Use them in your own stylesheets by wrapping the token name in the CSS var() function and assigning it to a property:

.branded-container {
  background-color: var(--wa-color-brand-fill-normal);
  border: var(--wa-border-width-s) var(--wa-border-style) var(--wa-color-brand-border-normal);
  color: var(--wa-color-brand-on-normal);
}

You can also use design tokens with inline styles:

<span style="
  background-color: var(--wa-color-brand-fill-normal);
  color: var(--wa-color-brand-on-normal);
"></span>

Customizing Design Tokens

Link to This Section

Overriding a design token updates every component and style that references it, making it a breeze to style and restyle your project. To customize a token, set its value in your styles. Setting tokens on :root applies them globally across your entire project:

:root {
  --wa-font-family-body: 'Inter', sans-serif;
  --wa-border-width-scale: 1.5; /* scales all border widths proportionally */
}

To customize a token that adapts to light and dark mode, scope the token to .wa-light, .wa-dark, and, optionally, .wa-invert:

:root,
.wa-light,
.wa-dark .wa-invert {
  --wa-color-surface-default: var(--wa-color-neutral-95);
}

.wa-dark,
.wa-invert {
  --wa-color-surface-default: var(--wa-color-neutral-05);
}

You can also scope tokens to a subtree rather than :root, which allows you to theme a single section or element differently from the rest:

*:state(user-invalid),
*:user-invalid {
  --wa-color-focus: var(--wa-color-danger-60);
  --wa-form-control-border-color: var(--wa-color-danger-border-normal);
  --wa-form-control-label-color: var(--wa-color-danger-on-quiet);
}
Go Make Something Awesome
Version 0.17.0 © Fonticons, Inc.
  • Terms
  • Privacy
  • Refunds
  • Core License
  • Pro License

Quick Links

  • Components
  • CSS Utilities
  • Theming
  • Using with AI
  • Changelog
  • Help & Support

Recent Searches

    D'oh! No results for “”

    Suggest on GitHub Ask on Discord
    Navigate Select
    Close Esc