Octet is a shadcn/ui theme built around a teal primary color (#2cb599) with muted light teal accents (#e4ecea). The light mode uses a neutral background (#ffffff). Dark mode keeps the teal primary (#2cb599) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #000000black |
| Foreground | #020807black | #f9fbfamintcream |
| Card | #ffffffwhite | #000000black |
| Card foreground | #020807black | #f9fbfamintcream |
| Popover | #ffffffwhite | #000000black |
| Popover foreground | #020807black | #f9fbfamintcream |
| Primary | #2cb599lightseagreen | #2cb599lightseagreen |
| Primary foreground | #04100eblack | #04100eblack |
| Secondary | #e4ecealavender | #303635darkslategray |
| Secondary foreground | #425c57darkslategray | #c9cfcelightgrey |
| Muted | #e5f0eelavender | #0f1a18black |
| Muted foreground | #4b5351darkslategray | #acb4b2darkgray |
| Accent | #e4ecealavender | #303635darkslategray |
| Accent foreground | #425c57darkslategray | #c9cfcelightgrey |
| Destructive | #b52d12firebrick | #e94625chocolate |
| Destructive foreground | #fffbfasnow | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #2cb599lightseagreen | #2cb599lightseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.18:1 | AAA |
| Text on card | 20.18:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 6.02:1 | AA |
| Muted text | 6.78:1 | AA |
| Accent | 6.02:1 | AA |
| Destructive | 6.09:1 | AA |
| Text on background | 20.20:1 | AAA |
| Text on card | 20.20:1 | AAA |
| Primary button | 7.50:1 | AAA |
| Secondary button | 7.83:1 | AAA |
| Muted text | 8.42:1 | AAA |
| Accent | 7.83:1 | AAA |
| Destructive | 3.90:1 | AA Large |
Paste this into your globals.css to use Octet in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.125 0.015 183.02);
--muted: oklch(0.946 0.012 182.847);
--muted-foreground: oklch(0.435 0.01 182.519);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.125 0.015 183.02);
--card: oklch(1 0 180);
--card-foreground: oklch(0.125 0.015 183.02);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.695 0.12 175.58);
--primary-foreground: oklch(0.161 0.02 180.602);
--secondary: oklch(0.936 0.008 182.948);
--secondary-foreground: oklch(0.452 0.032 181.121);
--accent: oklch(0.936 0.008 182.948);
--accent-foreground: oklch(0.452 0.032 181.121);
--destructive: oklch(0.51 0.176 32.848);
--destructive-foreground: oklch(0.991 0.004 31.05);
--ring: oklch(0.695 0.12 175.58);
--chart-1: oklch(0.695 0.12 175.58);
--chart-2: oklch(0.936 0.008 182.948);
--chart-3: oklch(0.936 0.008 182.948);
--chart-4: oklch(0.958 0.005 183.031);
--chart-5: oklch(0.703 0.124 175.237);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(0.986 0.002 183.135);
--muted: oklch(0.205 0.016 180.857);
--muted-foreground: oklch(0.763 0.009 182.856);
--popover: oklch(0 0 0);
--popover-foreground: oklch(0.986 0.002 183.135);
--card: oklch(0 0 0);
--card-foreground: oklch(0.986 0.002 183.135);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.695 0.12 175.58);
--primary-foreground: oklch(0.161 0.02 180.602);
--secondary: oklch(0.326 0.007 182.569);
--secondary-foreground: oklch(0.849 0.006 182.999);
--accent: oklch(0.326 0.007 182.569);
--accent-foreground: oklch(0.849 0.006 182.999);
--destructive: oklch(0.626 0.206 33.092);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.695 0.12 175.58);
--chart-1: oklch(0.695 0.12 175.58);
--chart-2: oklch(0.326 0.007 182.569);
--chart-3: oklch(0.326 0.007 182.569);
--chart-4: oklch(0.356 0.008 182.552);
--chart-5: oklch(0.703 0.124 175.237);
}