Ember, a shadcn/ui preset
Ember orange on warm stone with Manrope.
Fonts: Manrope · radius 0.375rem · light and dark · lowest text contrast 4.77:1
npx shadcn@latest add https://www.themes.dev/r/presets/ember.jsonEmber 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#ffffff
- foreground#0c0908
- primary#c2410b
- primary-foreground#ffffff
- secondary#f7f3f0
- muted-foreground#6f6b68
- accent#ffece3
- border#e8e4e1
- destructive#e7000a
- ring#c2410b
- chart-1#ffa17f
- chart-2#e26942
- chart-3#b94f2c
- chart-4#963919
- chart-5#772709
Dark
- background#0f0d0b
- foreground#fbfaf9
- primary#ff9971
- primary-foreground#14110f
- secondary#292523
- muted-foreground#bcb8b5
- accent#43241b
- border#2e2b28
- destructive#ff9693
- ring#ff855a
- chart-1#ffa686
- chart-2#f0764e
- chart-3#c75c39
- chart-4#a04223
- chart-5#803014
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 | 19.80:1 · Lc 106 | 18.59:1 · Lc 104 |
| Secondary text on the page | muted-foreground on background | 5.29:1 · Lc 76 | 9.86:1 · Lc 64 |
| Text in cards | card-foreground on card | 19.80:1 · Lc 106 | 17.17:1 · Lc 104 |
| Secondary text in cards | muted-foreground on card | 5.29:1 · Lc 76 | 9.10:1 · Lc 63 |
| Menus and popovers | popover-foreground on popover | 19.80:1 · Lc 106 | 17.17:1 · Lc 104 |
| Primary buttons | primary-foreground on primary | 5.19:1 · Lc 80 | 8.99:1 · Lc 63 |
| Links and outline accents | primary on background | 5.19:1 · Lc 75 | 9.27:1 · Lc 61 |
| Secondary buttons | secondary-foreground on secondary | 16.28:1 · Lc 98 | 14.49:1 · Lc 101 |
| Text on muted panels | muted-foreground on muted | 4.80:1 · Lc 70 | 7.68:1 · Lc 61 |
| Hovered menu items | accent-foreground on accent | 10.09:1 · Lc 86 | 13.29:1 · Lc 100 |
| Error messages | destructive on background | 4.77:1 · Lc 70 | 9.27:1 · Lc 61 |
| Sidebar | sidebar-foreground on sidebar | 18.95:1 · Lc 103 | 17.17:1 · Lc 104 |
| Sidebar active item | sidebar-primary-foreground on sidebar-primary | 5.19:1 · Lc 80 | 8.99:1 · Lc 63 |
| Sidebar hover | sidebar-accent-foreground on sidebar-accent | 16.28:1 · Lc 98 | 14.49:1 · Lc 101 |
| Focus ring | ring on background | 5.19:1 | 8.08: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/ember.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/manropeThe registry item: themes.dev/r/presets/ember.json. Free to use in any project.
:root {
--radius: 0.375rem;
--background: oklch(1 0 0);
--foreground: oklch(0.145 0.006 56);
--card: oklch(1 0 0);
--card-foreground: oklch(0.145 0.006 56);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.145 0.006 56);
--primary: oklch(0.553 0.174 38.4);
--primary-foreground: oklch(1 0 0);
--secondary: oklch(0.967 0.006 56);
--secondary-foreground: oklch(0.205 0.006 56);
--muted: oklch(0.967 0.006 56);
--muted-foreground: oklch(0.53 0.006 56);
--accent: oklch(0.956 0.024 48.41);
--accent-foreground: oklch(0.361 0.136 32.17);
--destructive: oklch(0.583 0.239 28.5);
--border: oklch(0.922 0.006 56);
--input: oklch(0.87 0.006 56);
--ring: oklch(0.553 0.174 38.4);
--chart-1: oklch(0.796 0.122 40.44);
--chart-2: oklch(0.66 0.16 38.4);
--chart-3: oklch(0.56 0.146 38.4);
--chart-4: oklch(0.47 0.132 38.4);
--chart-5: oklch(0.39 0.118 38.4);
--sidebar: oklch(0.985 0.006 56);
--sidebar-foreground: oklch(0.145 0.006 56);
--sidebar-primary: oklch(0.553 0.174 38.4);
--sidebar-primary-foreground: oklch(1 0 0);
--sidebar-accent: oklch(0.967 0.006 56);
--sidebar-accent-foreground: oklch(0.205 0.006 56);
--sidebar-border: oklch(0.922 0.006 56);
--sidebar-ring: oklch(0.553 0.174 38.4);
}
.dark {
--background: oklch(0.16 0.006 56);
--foreground: oklch(0.985 0.002 56);
--card: oklch(0.205 0.006 56);
--card-foreground: oklch(0.985 0.002 56);
--popover: oklch(0.205 0.006 56);
--popover-foreground: oklch(0.985 0.002 56);
--primary: oklch(0.78 0.134 41.75);
--primary-foreground: oklch(0.18 0.006 56);
--secondary: oklch(0.269 0.006 56);
--secondary-foreground: oklch(0.985 0.002 56);
--muted: oklch(0.269 0.006 56);
--muted-foreground: oklch(0.785 0.006 56);
--accent: oklch(0.3 0.05 38.4);
--accent-foreground: oklch(0.985 0.002 56);
--destructive: oklch(0.782 0.127 22);
--border: oklch(0.29 0.006 56);
--input: oklch(0.34 0.006 56);
--ring: oklch(0.745 0.16 39.79);
--chart-1: oklch(0.806 0.115 40.62);
--chart-2: oklch(0.7 0.16 38.4);
--chart-3: oklch(0.6 0.146 38.4);
--chart-4: oklch(0.5 0.132 38.4);
--chart-5: oklch(0.42 0.118 38.4);
--sidebar: oklch(0.205 0.006 56);
--sidebar-foreground: oklch(0.985 0.002 56);
--sidebar-primary: oklch(0.78 0.134 41.75);
--sidebar-primary-foreground: oklch(0.18 0.006 56);
--sidebar-accent: oklch(0.269 0.006 56);
--sidebar-accent-foreground: oklch(0.985 0.002 56);
--sidebar-border: oklch(0.29 0.006 56);
--sidebar-ring: oklch(0.745 0.16 39.79);
}
@theme inline {
--font-sans: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, sans-serif;
--font-heading: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, sans-serif;
}