Meter is a shadcn/ui theme built around a deep blue primary color (#112f4f) with deep orange accents (#4f3111). The light mode uses a neutral background (#f7fafd). Dark mode keeps the deep blue primary (#112f4f) on a blue-tinted background (#060a0e).
| Token | Light | Dark |
|---|---|---|
| Background | #f7fafdghostwhite | #060a0eblack |
| Foreground | #030c17black | #ffffffwhite |
| Card | #f7fafdghostwhite | #060a0eblack |
| Card foreground | #030c17black | #ffffffwhite |
| Popover | #f7fafdghostwhite | #060a0eblack |
| Popover foreground | #030c17black | #ffffffwhite |
| Primary | #112f4fmidnightblue | #112f4fmidnightblue |
| Primary foreground | #a7c8eclightsteelblue | #a7c8eclightsteelblue |
| Secondary | #4f3111saddlebrown | #4f3111saddlebrown |
| Secondary foreground | #eccba7wheat | #eccba7wheat |
| Muted | #f3f0eclinen | #130f0cblack |
| Muted foreground | #61574cdimgray | #b3a99edarkgray |
| Accent | #4f3111saddlebrown | #4f3111saddlebrown |
| Accent foreground | #eccba7wheat | #eccba7wheat |
| Destructive | #701705maroon | #f65737tomato |
| Destructive foreground | #fbb9aclightpink | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #112f4fmidnightblue | #112f4fmidnightblue |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.73:1 | AAA |
| Text on card | 18.73:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 6.20:1 | AA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.96:1 | AA |
| Text on background | 19.85:1 | AAA |
| Text on card | 19.85:1 | AAA |
| Primary button | 7.80:1 | AAA |
| Secondary button | 7.62:1 | AAA |
| Muted text | 8.23:1 | AAA |
| Accent | 7.62:1 | AAA |
| Destructive | 6.32:1 | AA |
Paste this into your globals.css to use Meter in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.983 0.005 249.696);
--foreground: oklch(0.152 0.028 246.358);
--muted: oklch(0.956 0.006 69.59);
--muted-foreground: oklch(0.463 0.021 69.126);
--popover: oklch(0.983 0.005 249.696);
--popover-foreground: oklch(0.152 0.028 246.358);
--card: oklch(0.983 0.005 249.696);
--card-foreground: oklch(0.152 0.028 246.358);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.302 0.068 252.353);
--primary-foreground: oklch(0.822 0.061 250.296);
--secondary: oklch(0.345 0.063 64.537);
--secondary-foreground: oklch(0.86 0.06 68.765);
--accent: oklch(0.345 0.063 64.537);
--accent-foreground: oklch(0.86 0.06 68.765);
--destructive: oklch(0.359 0.126 32.97);
--destructive-foreground: oklch(0.844 0.079 31.523);
--ring: oklch(0.302 0.068 252.353);
--chart-1: oklch(0.302 0.068 252.353);
--chart-2: oklch(0.345 0.063 64.537);
--chart-3: oklch(0.345 0.063 64.537);
--chart-4: oklch(0.38 0.071 64.237);
--chart-5: oklch(0.303 0.071 252.567);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.142 0.012 246.735);
--foreground: oklch(1 0 180);
--muted: oklch(0.173 0.009 69.057);
--muted-foreground: oklch(0.739 0.019 69.379);
--popover: oklch(0.142 0.012 246.735);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.142 0.012 246.735);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.302 0.068 252.353);
--primary-foreground: oklch(0.822 0.061 250.296);
--secondary: oklch(0.345 0.063 64.537);
--secondary-foreground: oklch(0.86 0.06 68.765);
--accent: oklch(0.345 0.063 64.537);
--accent-foreground: oklch(0.86 0.06 68.765);
--destructive: oklch(0.666 0.2 33.212);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.302 0.068 252.353);
--chart-1: oklch(0.302 0.068 252.353);
--chart-2: oklch(0.345 0.063 64.537);
--chart-3: oklch(0.345 0.063 64.537);
--chart-4: oklch(0.38 0.071 64.237);
--chart-5: oklch(0.303 0.071 252.567);
}