Sabre is a shadcn/ui theme built around a deep green primary color (#15291e) with deep teal accents (#152928). The light mode uses a neutral background (#ffffff). Dark mode keeps the deep green primary (#15291e) on a green-tinted background (#050b07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #050b07black |
| Foreground | #030c07black | #f5faf7whitesmoke |
| Card | #ffffffwhite | #050b07black |
| Card foreground | #030c07black | #f5faf7whitesmoke |
| Popover | #ffffffwhite | #050b07black |
| Popover foreground | #030c07black | #f5faf7whitesmoke |
| Primary | #15291eblack | #15291eblack |
| Primary foreground | #a0cfb6silver | #a0cfb6silver |
| Secondary | #152915black | #152915black |
| Secondary foreground | #a2cfa0darkseagreen | #a2cfa0darkseagreen |
| Muted | #e2eae1gainsboro | #161e15black |
| Muted foreground | #474747darkslategray | #b8b8b8silver |
| Accent | #152928darkslategray | #152928darkslategray |
| Accent foreground | #a0cfcelightsteelblue | #a0cfcelightsteelblue |
| Destructive | #7a1f00maroon | #eb3b00orangered |
| Destructive foreground | #ffc2adlightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #15291eblack | #15291eblack |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.82:1 | AAA |
| Text on card | 19.82:1 | AAA |
| Primary button | 8.87:1 | AAA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 7.53:1 | AAA |
| Accent | 8.95:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 18.85:1 | AAA |
| Text on card | 18.85:1 | AAA |
| Primary button | 8.87:1 | AAA |
| Secondary button | 8.82:1 | AAA |
| Muted text | 8.63:1 | AAA |
| Accent | 8.95:1 | AAA |
| Destructive | 4.08:1 | AA Large |
Paste this into your globals.css to use Sabre in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.143 0.021 163.086);
--muted: oklch(0.928 0.014 144.523);
--muted-foreground: oklch(0.399 0 180);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.143 0.021 163.086);
--card: oklch(1 0 180);
--card-foreground: oklch(0.143 0.021 163.086);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.259 0.033 159.56);
--primary-foreground: oklch(0.815 0.061 161.397);
--secondary: oklch(0.256 0.045 143.411);
--secondary-foreground: oklch(0.81 0.081 143.949);
--accent: oklch(0.262 0.026 192.937);
--accent-foreground: oklch(0.821 0.049 193.688);
--destructive: oklch(0.386 0.131 36.361);
--destructive-foreground: oklch(0.864 0.076 39.225);
--ring: oklch(0.259 0.033 159.56);
--chart-1: oklch(0.259 0.033 159.56);
--chart-2: oklch(0.256 0.045 143.411);
--chart-3: oklch(0.262 0.026 192.937);
--chart-4: oklch(0.293 0.054 143.343);
--chart-5: oklch(0.261 0.036 159.209);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.139 0.013 163.469);
--foreground: oklch(0.98 0.007 163.269);
--muted: oklch(0.222 0.019 144.036);
--muted-foreground: oklch(0.781 0 180);
--popover: oklch(0.139 0.013 163.469);
--popover-foreground: oklch(0.98 0.007 163.269);
--card: oklch(0.139 0.013 163.469);
--card-foreground: oklch(0.98 0.007 163.269);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.259 0.033 159.56);
--primary-foreground: oklch(0.815 0.061 161.397);
--secondary: oklch(0.256 0.045 143.411);
--secondary-foreground: oklch(0.81 0.081 143.949);
--accent: oklch(0.262 0.026 192.937);
--accent-foreground: oklch(0.821 0.049 193.688);
--destructive: oklch(0.616 0.218 34.628);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.259 0.033 159.56);
--chart-1: oklch(0.259 0.033 159.56);
--chart-2: oklch(0.256 0.045 143.411);
--chart-3: oklch(0.262 0.026 192.937);
--chart-4: oklch(0.293 0.054 143.343);
--chart-5: oklch(0.261 0.036 159.209);
}