Present is a shadcn/ui theme built around a muted indigo primary color (#9c9cba) with muted yellow accents (#baba9c). The light mode uses a neutral background (#f8f8fc). Dark mode keeps the muted indigo primary (#9c9cba) on a neutral background (#020204).
| Token | Light | Dark |
|---|---|---|
| Background | #f8f8fcghostwhite | #020204black |
| Foreground | #020208black | #f5f5f9whitesmoke |
| Card | #f8f8fcghostwhite | #020204black |
| Card foreground | #020208black | #f5f5f9whitesmoke |
| Popover | #f8f8fcghostwhite | #020204black |
| Popover foreground | #020208black | #f5f5f9whitesmoke |
| Primary | #9c9cbadarkgray | #9c9cbadarkgray |
| Primary foreground | #0f0f15black | #0f0f15black |
| Secondary | #baba9cdarkgray | #baba9cdarkgray |
| Secondary foreground | #15150fblack | #15150fblack |
| Muted | #f5f5ealinen | #15150ablack |
| Muted foreground | #757557dimgray | #a8a88adarkgray |
| Accent | #baba9cdarkgray | #baba9cdarkgray |
| Accent foreground | #15150fblack | #15150fblack |
| Destructive | #680e08maroon | #df1f11crimson |
| Destructive foreground | #f9afaalightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #9c9cbadarkgray | #9c9cbadarkgray |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.46:1 | AAA |
| Text on card | 19.46:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 4.30:1 | AA Large |
| Accent | 9.23:1 | AAA |
| Destructive | 7.07:1 | AAA |
| Text on background | 19.11:1 | AAA |
| Text on card | 19.11:1 | AAA |
| Primary button | 7.14:1 | AAA |
| Secondary button | 9.23:1 | AAA |
| Muted text | 7.58:1 | AAA |
| Accent | 9.23:1 | AAA |
| Destructive | 4.84:1 | AA |
Paste this into your globals.css to use Present in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.979 0.006 286.284);
--foreground: oklch(0.094 0.022 281.385);
--muted: oklch(0.967 0.014 106.654);
--muted-foreground: oklch(0.555 0.045 107.777);
--popover: oklch(0.979 0.006 286.284);
--popover-foreground: oklch(0.094 0.022 281.385);
--card: oklch(0.979 0.006 286.284);
--card-foreground: oklch(0.094 0.022 281.385);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.702 0.044 285.211);
--primary-foreground: oklch(0.17 0.013 284.895);
--secondary: oklch(0.781 0.042 107.323);
--secondary-foreground: oklch(0.194 0.012 107.504);
--accent: oklch(0.781 0.042 107.323);
--accent-foreground: oklch(0.194 0.012 107.504);
--destructive: oklch(0.336 0.124 29.53);
--destructive-foreground: oklch(0.822 0.087 23.702);
--ring: oklch(0.702 0.044 285.211);
--chart-1: oklch(0.702 0.044 285.211);
--chart-2: oklch(0.781 0.042 107.323);
--chart-3: oklch(0.781 0.042 107.323);
--chart-4: oklch(0.801 0.038 107.219);
--chart-5: oklch(0.696 0.051 284.984);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.081 0.011 283.68);
--foreground: oklch(0.972 0.006 286.293);
--muted: oklch(0.19 0.02 108.129);
--muted-foreground: oklch(0.724 0.043 107.417);
--popover: oklch(0.081 0.011 283.68);
--popover-foreground: oklch(0.972 0.006 286.293);
--card: oklch(0.081 0.011 283.68);
--card-foreground: oklch(0.972 0.006 286.293);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.702 0.044 285.211);
--primary-foreground: oklch(0.17 0.013 284.895);
--secondary: oklch(0.781 0.042 107.323);
--secondary-foreground: oklch(0.194 0.012 107.504);
--accent: oklch(0.781 0.042 107.323);
--accent-foreground: oklch(0.194 0.012 107.504);
--destructive: oklch(0.577 0.223 29.73);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.702 0.044 285.211);
--chart-1: oklch(0.702 0.044 285.211);
--chart-2: oklch(0.781 0.042 107.323);
--chart-3: oklch(0.781 0.042 107.323);
--chart-4: oklch(0.801 0.038 107.219);
--chart-5: oklch(0.696 0.051 284.984);
}