Ancient is a shadcn/ui theme built around a deep orange primary color (#0e0907) with deep yellow accents (#0e0d07). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep orange primary (#0e0907) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #080402black | #faf7f5whitesmoke |
| Card | #ffffffwhite | #000000black |
| Card foreground | #080402black | #faf7f5whitesmoke |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #080402black | #faf7f5whitesmoke |
| Primary | #0e0907black | #0e0907black |
| Primary foreground | #c49982rosybrown | #c49982rosybrown |
| Secondary | #0e0708black | #0e0708black |
| Secondary foreground | #c4828crosybrown | #c4828crosybrown |
| Muted | #ead2d5gainsboro | #2d1519black |
| Muted foreground | #514d4edarkslategray | #b2aeafdarkgray |
| Accent | #0e0d07black | #0e0d07black |
| Accent foreground | #c4ba82tan | #c4ba82tan |
| Destructive | #73160cmaroon | #e83926crimson |
| Destructive foreground | #f8c0balightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #0e0907black | #0e0907black |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.41:1 | AAA |
| Text on card | 20.41:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 5.81:1 | AA |
| Accent | 9.92:1 | AAA |
| Destructive | 7.12:1 | AAA |
| Text on background | 19.68:1 | AAA |
| Text on card | 19.68:1 | AAA |
| Primary button | 7.75:1 | AAA |
| Secondary button | 6.58:1 | AA |
| Muted text | 7.74:1 | AAA |
| Accent | 9.92:1 | AAA |
| Destructive | 4.14:1 | AA Large |
Paste this into your globals.css to use Ancient in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.115 0.015 60.751);
--muted: oklch(0.884 0.027 7.358);
--muted-foreground: oklch(0.425 0.004 6.846);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.115 0.015 60.751);
--card: oklch(1 0 180);
--card-foreground: oklch(0.115 0.015 60.751);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.146 0.011 53.546);
--primary-foreground: oklch(0.718 0.061 49.66);
--secondary: oklch(0.138 0.014 7.686);
--secondary-foreground: oklch(0.677 0.083 9.67);
--accent: oklch(0.157 0.013 99.86);
--accent-foreground: oklch(0.785 0.075 99.371);
--destructive: oklch(0.365 0.129 30.423);
--destructive-foreground: oklch(0.856 0.065 25.791);
--ring: oklch(0.146 0.011 53.546);
--chart-1: oklch(0.146 0.011 53.546);
--chart-2: oklch(0.138 0.014 7.686);
--chart-3: oklch(0.157 0.013 99.86);
--chart-4: oklch(0.171 0.023 9.954);
--chart-5: oklch(0.146 0.012 53.861);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.977 0.004 50.608);
--muted: oklch(0.232 0.039 10.965);
--muted-foreground: oklch(0.755 0.004 6.717);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.977 0.004 50.608);
--card: oklch(0 0 0);
--card-foreground: oklch(0.977 0.004 50.608);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.146 0.011 53.546);
--primary-foreground: oklch(0.718 0.061 49.66);
--secondary: oklch(0.138 0.014 7.686);
--secondary-foreground: oklch(0.677 0.083 9.67);
--accent: oklch(0.157 0.013 99.86);
--accent-foreground: oklch(0.785 0.075 99.371);
--destructive: oklch(0.613 0.214 30.383);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.146 0.011 53.546);
--chart-1: oklch(0.146 0.011 53.546);
--chart-2: oklch(0.138 0.014 7.686);
--chart-3: oklch(0.157 0.013 99.86);
--chart-4: oklch(0.171 0.023 9.954);
--chart-5: oklch(0.146 0.012 53.861);
}