Skip to content

Airtime, a shadcn/ui preset

Electric violet with Fira Sans, from a telecom theme. It comes from Airtime, one of our website themes.

Fonts: Fira Sans · radius 0.625rem · light and dark · lowest text contrast 5.22:1

npx shadcn@latest add https://www.themes.dev/r/presets/airtime.json
Edit in the generator

Airtime on six free blocks from themes.dev UI. Scroll inside the preview.

The colours

The main variables, light and dark. The full set of 31 per mode, sidebar and charts included, is in the CSS below.

Light

  • background#f1f4f7
  • foreground#1f1e2f
  • primary#8f06ff
  • primary-foreground#ffffff
  • secondary#e4e8ee
  • muted-foreground#4f5160
  • accent#f1e6ff
  • border#d6d9df
  • destructive#b42318
  • ring#1f1e2f
  • chart-1#cdadff
  • chart-2#a963ff
  • chart-3#8c3ced
  • chart-4#7024c3
  • chart-5#570e9e

Dark

  • background#090e13
  • foreground#f8fafd
  • primary#ca9fff
  • primary-foreground#0e1218
  • secondary#181d25
  • muted-foreground#b3b9c2
  • accent#312843
  • border#272c32
  • destructive#ff9693
  • ring#c096ff
  • chart-1#cfb1ff
  • chart-2#b279ff
  • chart-3#984bfb
  • chart-4#7830cd
  • chart-5#5f1da7

Contrast, checked

Every pair shadcn/ui draws text with, measured as WCAG 2 contrast (AA needs 4.5:1) and APCA Lc (we ask 60 for text). Focus rings need 3:1 on the page.

WherePairLightDark
Body textforeground on background14.79:1 · Lc 9618.59:1 · Lc 104
Secondary text on the pagemuted-foreground on background7.08:1 · Lc 809.87:1 · Lc 64
Text in cardscard-foreground on card16.36:1 · Lc 10317.16:1 · Lc 104
Secondary text in cardsmuted-foreground on card7.83:1 · Lc 879.11:1 · Lc 63
Menus and popoverspopover-foreground on popover16.36:1 · Lc 10317.16:1 · Lc 104
Primary buttonsprimary-foreground on primary5.77:1 · Lc 828.90:1 · Lc 62
Links and outline accentsprimary on background5.22:1 · Lc 699.18:1 · Lc 61
Secondary buttonssecondary-foreground on secondary13.32:1 · Lc 9016.17:1 · Lc 103
Text on muted panelsmuted-foreground on muted6.38:1 · Lc 738.59:1 · Lc 63
Hovered menu itemsaccent-foreground on accent13.64:1 · Lc 9113.27:1 · Lc 100
Error messagesdestructive on background5.95:1 · Lc 749.27:1 · Lc 61
Sidebarsidebar-foreground on sidebar14.27:1 · Lc 9417.69:1 · Lc 104
Sidebar active itemsidebar-primary-foreground on sidebar-primary5.77:1 · Lc 828.90:1 · Lc 62
Sidebar hoversidebar-accent-foreground on sidebar-accent13.32:1 · Lc 9016.17:1 · Lc 103
Focus ringring on background14.79:18.36:1

Use it

With the shadcn CLI, in a project set up with shadcn init:

npx shadcn@latest add https://www.themes.dev/r/presets/airtime.json

Or paste the CSS into globals.css (Next.js) or your main stylesheet (Vite, Astro), replacing the :root and .dark values that are there.

Then load the font:

npm i @fontsource-variable/fira-sans

The registry item: themes.dev/r/presets/airtime.json. Free to use in any project.

globals.css
:root {
  --radius: 0.625rem;
  --background: oklch(0.965 0.005 258.32);
  --foreground: oklch(0.244 0.032 286.46);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.244 0.032 286.46);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.244 0.032 286.46);
  --primary: oklch(0.549 0.293 298.66);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.93 0.009 258.32);
  --secondary-foreground: oklch(0.244 0.032 286.46);
  --muted: oklch(0.93 0.009 258.32);
  --muted-foreground: oklch(0.439 0.025 279.33);
  --accent: oklch(0.941 0.035 305.52);
  --accent-foreground: oklch(0.244 0.032 286.46);
  --destructive: oklch(0.5 0.182 29.51);
  --border: oklch(0.885 0.009 264.52);
  --input: oklch(0.551 0.023 276.63);
  --ring: oklch(0.244 0.032 286.46);
  --chart-1: oklch(0.804 0.119 301.74);
  --chart-2: oklch(0.651 0.224 301.1);
  --chart-3: oklch(0.56 0.246 298.66);
  --chart-4: oklch(0.47 0.223 298.66);
  --chart-5: oklch(0.39 0.199 298.66);
  --sidebar: oklch(0.953 0.005 258.32);
  --sidebar-foreground: oklch(0.244 0.032 286.46);
  --sidebar-primary: oklch(0.549 0.293 298.66);
  --sidebar-primary-foreground: oklch(1 0 0);
  --sidebar-accent: oklch(0.93 0.009 258.32);
  --sidebar-accent-foreground: oklch(0.244 0.032 286.46);
  --sidebar-border: oklch(0.885 0.009 264.52);
  --sidebar-ring: oklch(0.244 0.032 286.46);
}

.dark {
  --background: oklch(0.16 0.014 257);
  --foreground: oklch(0.985 0.004 257);
  --card: oklch(0.205 0.014 257);
  --card-foreground: oklch(0.985 0.004 257);
  --popover: oklch(0.205 0.014 257);
  --popover-foreground: oklch(0.985 0.004 257);
  --primary: oklch(0.778 0.139 303.65);
  --primary-foreground: oklch(0.18 0.014 257);
  --secondary: oklch(0.23 0.018 257);
  --secondary-foreground: oklch(0.985 0.004 257);
  --muted: oklch(0.23 0.018 257);
  --muted-foreground: oklch(0.785 0.014 257);
  --accent: oklch(0.3 0.05 298.66);
  --accent-foreground: oklch(0.985 0.004 257);
  --destructive: oklch(0.782 0.127 22);
  --border: oklch(0.29 0.014 257);
  --input: oklch(0.34 0.014 257);
  --ring: oklch(0.753 0.152 301.32);
  --chart-1: oklch(0.814 0.112 301.76);
  --chart-2: oklch(0.692 0.194 301.11);
  --chart-3: oklch(0.6 0.246 298.66);
  --chart-4: oklch(0.5 0.223 298.66);
  --chart-5: oklch(0.42 0.199 298.66);
  --sidebar: oklch(0.19 0.014 257);
  --sidebar-foreground: oklch(0.985 0.004 257);
  --sidebar-primary: oklch(0.778 0.139 303.65);
  --sidebar-primary-foreground: oklch(0.18 0.014 257);
  --sidebar-accent: oklch(0.23 0.018 257);
  --sidebar-accent-foreground: oklch(0.985 0.004 257);
  --sidebar-border: oklch(0.29 0.014 257);
  --sidebar-ring: oklch(0.753 0.152 301.32);
}

@theme inline {
  --font-sans: "Fira Sans Variable", "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Fira Sans Variable", "Fira Sans", ui-sans-serif, system-ui, sans-serif;
}

The whole site

Airtime started as Airtime, a website theme

Airtime is a complete site for Broadband and mobile providers: every page, the content model and a live demo, built from the same blocks, in Astro and Next.js + Sanity. It comes with UI Pro, from €199 once, with every other theme.

More shadcn/ui presets

All 37 presets