Crocodile is a shadcn/ui theme built around a muted light yellow primary color (#efeeec) with muted light green accents (#edefec). The light mode uses a neutral background (#fcfcf8). Dark mode keeps the muted light yellow primary (#efeeec) on a yellow-tinted background (#0b0b04).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfcf8snow | #0b0b04black |
| Foreground | #131206black | #fcfbf8snow |
| Card | #fcfcf8snow | #0b0b04black |
| Card foreground | #131206black | #fcfbf8snow |
| Popover | #fcfcf8snow | #0b0b04black |
| Popover foreground | #131206black | #fcfbf8snow |
| Primary | #efeeeclinen | #efeeeclinen |
| Primary foreground | #24241eblack | #24241eblack |
| Secondary | #efedeclinen | #efedeclinen |
| Secondary foreground | #5c534ddimgray | #5c534ddimgray |
| Muted | #efedeclinen | #131210black |
| Muted foreground | #56514ddarkslategray | #b2aca9darkgray |
| Accent | #edefecwhitesmoke | #edefecwhitesmoke |
| Accent foreground | #565c4ddarkolivegreen | #565c4ddarkolivegreen |
| Destructive | #601506maroon | #f34c2btomato |
| Destructive foreground | #f9ae9flightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #efeeeclinen | #efeeeclinen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 18.26:1 | AAA |
| Text on card | 18.26:1 | AAA |
| Primary button | 13.48:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 6.70:1 | AA |
| Accent | 5.97:1 | AA |
| Destructive | 7.19:1 | AAA |
| Text on background | 19.10:1 | AAA |
| Text on card | 19.10:1 | AAA |
| Primary button | 13.48:1 | AAA |
| Secondary button | 6.41:1 | AA |
| Muted text | 8.36:1 | AAA |
| Accent | 5.97:1 | AA |
| Destructive | 3.57:1 | AA Large |
Paste this into your globals.css to use Crocodile in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.99 0.006 101.377);
--foreground: oklch(0.18 0.023 103.101);
--muted: oklch(0.947 0.003 56.395);
--muted-foreground: oklch(0.438 0.01 56.117);
--popover: oklch(0.99 0.006 101.377);
--popover-foreground: oklch(0.18 0.023 103.101);
--card: oklch(0.99 0.006 101.377);
--card-foreground: oklch(0.18 0.023 103.101);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.95 0.004 101.352);
--primary-foreground: oklch(0.257 0.01 101.865);
--secondary: oklch(0.947 0.003 56.395);
--secondary-foreground: oklch(0.448 0.015 55.958);
--accent: oklch(0.95 0.004 124.413);
--accent-foreground: oklch(0.464 0.025 125.134);
--destructive: oklch(0.325 0.111 33.188);
--destructive-foreground: oklch(0.818 0.092 31.683);
--ring: oklch(0.95 0.004 101.352);
--chart-1: oklch(0.95 0.004 101.352);
--chart-2: oklch(0.947 0.003 56.395);
--chart-3: oklch(0.95 0.004 124.413);
--chart-4: oklch(0.97 0.002 56.413);
--chart-5: oklch(0.951 0.005 101.373);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.145 0.016 103.822);
--foreground: oklch(0.988 0.004 101.35);
--muted: oklch(0.182 0.004 56.122);
--muted-foreground: oklch(0.749 0.009 56.272);
--popover: oklch(0.145 0.016 103.822);
--popover-foreground: oklch(0.988 0.004 101.35);
--card: oklch(0.145 0.016 103.822);
--card-foreground: oklch(0.988 0.004 101.35);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.95 0.004 101.352);
--primary-foreground: oklch(0.257 0.01 101.865);
--secondary: oklch(0.947 0.003 56.395);
--secondary-foreground: oklch(0.448 0.015 55.958);
--accent: oklch(0.95 0.004 124.413);
--accent-foreground: oklch(0.464 0.025 125.134);
--destructive: oklch(0.648 0.208 33.149);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.95 0.004 101.352);
--chart-1: oklch(0.95 0.004 101.352);
--chart-2: oklch(0.947 0.003 56.395);
--chart-3: oklch(0.95 0.004 124.413);
--chart-4: oklch(0.97 0.002 56.413);
--chart-5: oklch(0.951 0.005 101.373);
}