Codling is a shadcn/ui theme built around a deep orange primary color (#443322) with deep yellow accents (#444422). The light mode uses a neutral background (#fcfaf8). Dark mode keeps the deep orange primary (#443322) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfaf8snow | #040301black |
| Foreground | #090502black | #fbfaf9snow |
| Card | #faf7f5whitesmoke | #080502black |
| Card foreground | #040301black | #fdfcfcsnow |
| Popover | #faf7f5whitesmoke | #080502black |
| Popover foreground | #040301black | #fdfcfcsnow |
| Primary | #443322darkslategray | #443322darkslategray |
| Primary foreground | #ddccbblightgrey | #ddccbblightgrey |
| Secondary | #442222darkslategray | #442222darkslategray |
| Secondary foreground | #ddbbbbthistle | #ddbbbbthistle |
| Muted | #e1d0d0lightgrey | #2f1e1eblack |
| Muted foreground | #535050darkslategray | #afacacdarkgray |
| Accent | #444422darkolivegreen | #444422darkolivegreen |
| Accent foreground | #ddddbbwheat | #ddddbbwheat |
| Destructive | #771704maroon | #e42c07orangered |
| Destructive foreground | #fdbdb0lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #443322darkslategray | #443322darkslategray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.48:1 | AAA |
| Text on card | 19.37:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 5.38:1 | AA |
| Accent | 7.18:1 | AAA |
| Destructive | 6.87:1 | AA |
| Text on background | 19.81:1 | AAA |
| Text on card | 19.84:1 | AAA |
| Primary button | 7.69:1 | AAA |
| Secondary button | 7.95:1 | AAA |
| Muted text | 7.05:1 | AAA |
| Accent | 7.18:1 | AAA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Codling in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.986 0.003 67.786);
--foreground: oklch(0.12 0.016 77.51);
--muted: oklch(0.872 0.019 17.518);
--muted-foreground: oklch(0.434 0.004 17.322);
--popover: oklch(0.979 0.005 67.767);
--popover-foreground: oklch(0.095 0.013 77.51);
--card: oklch(0.979 0.005 67.767);
--card-foreground: oklch(0.095 0.013 77.51);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.336 0.038 65.952);
--primary-foreground: oklch(0.855 0.031 67.4);
--secondary: oklch(0.298 0.053 20.744);
--secondary-foreground: oklch(0.821 0.04 17.994);
--accent: oklch(0.379 0.053 108.675);
--accent-foreground: oklch(0.89 0.046 107.3);
--destructive: oklch(0.372 0.133 32.907);
--destructive-foreground: oklch(0.852 0.077 31.493);
--ring: oklch(0.336 0.038 65.952);
--chart-1: oklch(0.336 0.038 65.952);
--chart-2: oklch(0.298 0.053 20.744);
--chart-3: oklch(0.379 0.053 108.675);
--chart-4: oklch(0.325 0.06 20.88);
--chart-5: oklch(0.337 0.041 65.703);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.094 0.01 75.768);
--foreground: oklch(0.985 0.002 67.799);
--muted: oklch(0.256 0.027 19.056);
--muted-foreground: oklch(0.746 0.004 17.241);
--popover: oklch(0.119 0.013 75.768);
--popover-foreground: oklch(0.993 0.001 67.81);
--card: oklch(0.119 0.013 75.768);
--card-foreground: oklch(0.993 0.001 67.81);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.336 0.038 65.952);
--primary-foreground: oklch(0.855 0.031 67.4);
--secondary: oklch(0.298 0.053 20.744);
--secondary-foreground: oklch(0.821 0.04 17.994);
--accent: oklch(0.379 0.053 108.675);
--accent-foreground: oklch(0.89 0.046 107.3);
--destructive: oklch(0.593 0.221 32.036);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.336 0.038 65.952);
--chart-1: oklch(0.336 0.038 65.952);
--chart-2: oklch(0.298 0.053 20.744);
--chart-3: oklch(0.379 0.053 108.675);
--chart-4: oklch(0.325 0.06 20.88);
--chart-5: oklch(0.337 0.041 65.703);
}