Clockwork is a shadcn/ui theme built around a muted deep blue primary color (#3e4056) with muted deep yellow accents (#56533e). The light mode uses a neutral background (#ffffff). Dark mode keeps the muted deep blue primary (#3e4056) on a neutral background (#030308).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #030308black |
| Foreground | #060714black | #f5f6f9whitesmoke |
| Card | #ffffffwhite | #030308black |
| Card foreground | #060714black | #f5f6f9whitesmoke |
| Popover | #ffffffwhite | #030308black |
| Popover foreground | #060714black | #f5f6f9whitesmoke |
| Primary | #3e4056darkslategray | #3e4056darkslategray |
| Primary foreground | #dedfe7gainsboro | #dedfe7gainsboro |
| Secondary | #56533edarkolivegreen | #56533edarkolivegreen |
| Secondary foreground | #e7e7degainsboro | #e7e7degainsboro |
| Muted | #f1f0e9linen | #16150eblack |
| Muted foreground | #656458dimgray | #a7a69adarkgray |
| Accent | #56533edarkolivegreen | #56533edarkolivegreen |
| Accent foreground | #e7e7degainsboro | #e7e7degainsboro |
| Destructive | #7a0d05maroon | #f62c1eorangered |
| Destructive foreground | #fcbab6lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #3e4056darkslategray | #3e4056darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.03:1 | AAA |
| Text on card | 20.03:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 6.22:1 | AA |
| Muted text | 5.23:1 | AA |
| Accent | 6.22:1 | AA |
| Destructive | 6.78:1 | AA |
| Text on background | 19.05:1 | AAA |
| Text on card | 19.05:1 | AAA |
| Primary button | 7.59:1 | AAA |
| Secondary button | 6.22:1 | AA |
| Muted text | 7.47:1 | AAA |
| Accent | 6.22:1 | AA |
| Destructive | 3.97:1 | AA Large |
Paste this into your globals.css to use Clockwork in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.136 0.028 276.017);
--muted: oklch(0.954 0.009 101.436);
--muted-foreground: oklch(0.499 0.018 101.846);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.136 0.028 276.017);
--card: oklch(1 0 180);
--card-foreground: oklch(0.136 0.028 276.017);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.38 0.036 279.57);
--primary-foreground: oklch(0.906 0.011 281.09);
--secondary: oklch(0.44 0.033 102.358);
--secondary-foreground: oklch(0.925 0.011 101.472);
--accent: oklch(0.44 0.033 102.358);
--accent-foreground: oklch(0.925 0.011 101.472);
--destructive: oklch(0.372 0.143 29.888);
--destructive-foreground: oklch(0.849 0.077 23.444);
--ring: oklch(0.38 0.036 279.57);
--chart-1: oklch(0.38 0.036 279.57);
--chart-2: oklch(0.44 0.033 102.358);
--chart-3: oklch(0.44 0.033 102.358);
--chart-4: oklch(0.471 0.036 102.37);
--chart-5: oklch(0.375 0.043 279.169);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.101 0.016 276.227);
--foreground: oklch(0.973 0.005 281.202);
--muted: oklch(0.193 0.013 102.256);
--muted-foreground: oklch(0.723 0.017 101.649);
--popover: oklch(0.101 0.016 276.227);
--popover-foreground: oklch(0.973 0.005 281.202);
--card: oklch(0.101 0.016 276.227);
--card-foreground: oklch(0.973 0.005 281.202);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.38 0.036 279.57);
--primary-foreground: oklch(0.906 0.011 281.09);
--secondary: oklch(0.44 0.033 102.358);
--secondary-foreground: oklch(0.925 0.011 101.472);
--accent: oklch(0.44 0.033 102.358);
--accent-foreground: oklch(0.925 0.011 101.472);
--destructive: oklch(0.626 0.235 29.58);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.38 0.036 279.57);
--chart-1: oklch(0.38 0.036 279.57);
--chart-2: oklch(0.44 0.033 102.358);
--chart-3: oklch(0.44 0.033 102.358);
--chart-4: oklch(0.471 0.036 102.37);
--chart-5: oklch(0.375 0.043 279.169);
}