Augur

augur-tailwind

The shared Tailwind CSS v4 theme: HSL color variables, radius scale and accordion animations for augur-web.

@simpleapps-com/augur-tailwind

The Augur design system for Tailwind CSS v4: semantic colors backed by HSL CSS variables, a radius scale and the accordion animations augur-web's components use. Sites brand themselves by overriding the variables.

pnpm add @simpleapps-com/augur-tailwind tailwindcss-animate

Peer dependencies: tailwindcss 4; tailwindcss-animate 1 is optional.

Setup

Tailwind v4 is configured in CSS, so no tailwind.config.ts is needed:

/* globals.css */
@import "tailwindcss";
@import "@simpleapps-com/augur-tailwind/base.css";
@plugin "tailwindcss-animate";

base.css registers the theme with @theme (the --color-*, --radius-*, --font-ui and --animate-accordion-* tokens), the accordion-down and accordion-up keyframes, and the default variable values in @layer base.

The package also exports the same theme as a plugin (augurPlugin, also the default export), for @plugin "@simpleapps-com/augur-tailwind";. The plugin sets no :root values, so a site using it defines every variable below itself.

Branding

Override the variables in your own stylesheet:

:root {
  --primary: 240 60% 50%;
  --primary-foreground: 0 0% 100%;
  --radius: 0.75rem;
}

Add site tokens with your own @theme block (--font-sans: "Montserrat", sans-serif;).

Values are HSL components without hsl(), so opacity modifiers such as bg-primary/50 work.

Variable Default For
--background 0 0% 100% Page background
--foreground 222.2 84% 4.9% Text
--primary 206 76% 42% Brand color, primary actions
--primary-foreground 210 40% 98% Text on primary
--secondary 270 1% 35% Secondary elements
--secondary-foreground 222.2 47.4% 11.2% Text on secondary
--muted 210 40% 96.1% Muted backgrounds
--muted-foreground 215.4 16.3% 46.9% Muted text
--accent 210 40% 96.1% Accent backgrounds
--accent-foreground 222.2 47.4% 11.2% Text on accent
--destructive 0 84.2% 60.2% Errors and danger
--destructive-foreground 210 40% 98% Text on destructive
--popover 0 0% 100% Popovers, menus, selects
--popover-foreground 222.2 84% 4.9% Text on popovers
--card 0 0% 100% Cards
--card-foreground 222.2 84% 4.9% Text on cards
--border 214.3 31.8% 91.4% Borders
--input 214.3 31.8% 91.4% Input borders
--ring 222.2 84% 4.9% Focus rings
--radius 0.5rem Base radius
--font-ui inherit Face of augur-web's controls

UI font

augur-web's buttons, labels, inputs, textareas, selects, tabs, navigation, command and menu items use font-ui, which inherits the page's face by default. To give them their own face, for example when body uses a display face, set --font-ui like any other variable, in :root or your @theme:

:root {
  --font-ui: "Inter", sans-serif;
}

With the plugin, the default is the same: font-ui inherits until your site sets --font-ui.

Utilities

  • Colors: bg-background, text-foreground, bg-primary text-primary-foreground, text-muted-foreground, border-border, bg-card, bg-popover, and the rest of the table.
  • Font: font-ui, the face of augur-web's controls: inherited, or your --font-ui.
  • Radius: rounded-lg is var(--radius), rounded-md is 2px less, rounded-sm is 4px less.
  • Animations: animate-accordion-down and animate-accordion-up, for Radix accordion content.
  • augur-web: the components this theme styles, and the @source line for their classes