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.jsonAirtime 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.
| Where | Pair | Light | Dark |
|---|---|---|---|
| Body text | foreground on background | 14.79:1 · Lc 96 | 18.59:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 7.08:1 · Lc 80 | 9.87:1 · Lc 64 |
| Text in cards | card-foreground on card | 16.36:1 · Lc 103 | 17.16:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 7.83:1 · Lc 87 | 9.11:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 16.36:1 · Lc 103 | 17.16:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 5.77:1 · Lc 82 | 8.90:1 · Lc 62 |
| Links and outline accents | primary on background | 5.22:1 · Lc 69 | 9.18:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 13.32:1 · Lc 90 | 16.17:1 · Lc 103 |
| Text on muted panels | muted-foreground on muted | 6.38:1 · Lc 73 | 8.59:1 · Lc 63 |
| Hovered menu items | accent-foreground on accent | 13.64:1 · Lc 91 | 13.27:1 · Lc 100 |
| Error messages | destructive on background | 5.95:1 · Lc 74 | 9.27:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 14.27:1 · Lc 94 | 17.69:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 5.77:1 · Lc 82 | 8.90:1 · Lc 62 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 13.32:1 · Lc 90 | 16.17:1 · Lc 103 |
| Focus ring | ring on background | 14.79:1 | 8.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.jsonOr 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-sansThe registry item: themes.dev/r/presets/airtime.json. Free to use in any project.
: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.
