Straight is a shadcn/ui theme built around a light green primary color (#d7eec9) with light pink accents (#eec9d7). The light mode uses a neutral background (#fcfefb). Dark mode keeps the light green primary (#d7eec9) on a green-tinted background (#091004).
| Token | Light | Dark |
|---|---|---|
| Background | #fcfefbwhite | #091004black |
| Foreground | #000000black | #fafcf8snow |
| Card | #fcfefbwhite | #091004black |
| Card foreground | #000000black | #fafcf8snow |
| Popover | #fcfefbwhite | #091004black |
| Popover foreground | #000000black | #fafcf8snow |
| Primary | #d7eec9gainsboro | #d7eec9gainsboro |
| Primary foreground | #0d1707black | #0d1707black |
| Secondary | #c9d7eegainsboro | #c9d7eegainsboro |
| Secondary foreground | #203a65darkslategray | #203a65darkslategray |
| Muted | #dee4edlavender | #121821black |
| Muted foreground | #464749darkslategray | #b6b7b9silver |
| Accent | #eec9d7pink | #eec9d7pink |
| Accent foreground | #65203asaddlebrown | #65203asaddlebrown |
| Destructive | #db4906orangered | #f96824tomato |
| Destructive foreground | #ffffffwhite | #000000black |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #d7eec9gainsboro | #d7eec9gainsboro |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.70:1 | AAA |
| Text on card | 20.70:1 | AAA |
| Primary button | 14.82:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 7.25:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 4.23:1 | AA Large |
| Text on background | 18.70:1 | AAA |
| Text on card | 18.70:1 | AAA |
| Primary button | 14.82:1 | AAA |
| Secondary button | 7.77:1 | AAA |
| Muted text | 8.89:1 | AAA |
| Accent | 7.65:1 | AAA |
| Destructive | 7.03:1 | AAA |
Paste this into your globals.css to use Straight in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.995 0.004 133.016);
--foreground: oklch(0 0 0);
--muted: oklch(0.916 0.014 259.946);
--muted-foreground: oklch(0.398 0.003 259.942);
--popover: oklch(0.995 0.004 133.016);
--popover-foreground: oklch(0 0 0);
--card: oklch(0.995 0.004 133.016);
--card-foreground: oklch(0 0 0);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.922 0.055 133.411);
--primary-foreground: oklch(0.191 0.034 134.237);
--secondary: oklch(0.875 0.035 259.932);
--secondary-foreground: oklch(0.352 0.081 259.488);
--accent: oklch(0.871 0.046 353.037);
--accent-foreground: oklch(0.358 0.103 0.023);
--destructive: oklch(0.604 0.192 38.789);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.922 0.055 133.411);
--chart-1: oklch(0.922 0.055 133.411);
--chart-2: oklch(0.875 0.035 259.932);
--chart-3: oklch(0.871 0.046 353.037);
--chart-4: oklch(0.902 0.027 259.941);
--chart-5: oklch(0.924 0.058 133.436);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.161 0.028 132.556);
--foreground: oklch(0.987 0.005 133.02);
--muted: oklch(0.206 0.021 259.792);
--muted-foreground: oklch(0.78 0.003 259.938);
--popover: oklch(0.161 0.028 132.556);
--popover-foreground: oklch(0.987 0.005 133.02);
--card: oklch(0.161 0.028 132.556);
--card-foreground: oklch(0.987 0.005 133.02);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.922 0.055 133.411);
--primary-foreground: oklch(0.191 0.034 134.237);
--secondary: oklch(0.875 0.035 259.932);
--secondary-foreground: oklch(0.352 0.081 259.488);
--accent: oklch(0.871 0.046 353.037);
--accent-foreground: oklch(0.358 0.103 0.023);
--destructive: oklch(0.691 0.193 41.71);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.922 0.055 133.411);
--chart-1: oklch(0.922 0.055 133.411);
--chart-2: oklch(0.875 0.035 259.932);
--chart-3: oklch(0.871 0.046 353.037);
--chart-4: oklch(0.902 0.027 259.941);
--chart-5: oklch(0.924 0.058 133.436);
}