Texture is a shadcn/ui theme built around a light yellow primary color (#f2dfa6) with light blue accents (#a6b9f2). The light mode uses a neutral background (#fefdfb). Dark mode keeps the light yellow primary (#f2dfa6) on a neutral background (#040301).
| Token | Light | Dark |
|---|---|---|
| Background | #fefdfbsnow | #040301black |
| Foreground | #040301black | #fbfaf9snow |
| Card | #fefdfbsnow | #040301black |
| Card foreground | #040301black | #fbfaf9snow |
| Popover | #fefdfbsnow | #040301black |
| Popover foreground | #040301black | #fbfaf9snow |
| Primary | #f2dfa6palegoldenrod | #f2dfa6palegoldenrod |
| Primary foreground | #59460dsaddlebrown | #59460dsaddlebrown |
| Secondary | #a6b9f2lightsteelblue | #a6b9f2lightsteelblue |
| Secondary foreground | #0d2059midnightblue | #0d2059midnightblue |
| Muted | #d6d8dbgainsboro | #242529darkslategray |
| Muted foreground | #42454ddarkslategray | #b2b5bdsilver |
| Accent | #a6b9f2lightsteelblue | #a6b9f2lightsteelblue |
| Accent foreground | #0d2059midnightblue | #0d2059midnightblue |
| Destructive | #83230bsaddlebrown | #ed5631tomato |
| Destructive foreground | #fad1c7peachpuff | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #f2dfa6palegoldenrod | #f2dfa6palegoldenrod |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.29:1 | AAA |
| Text on card | 20.29:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 6.70:1 | AA |
| Accent | 7.93:1 | AAA |
| Destructive | 6.75:1 | AA |
| Text on background | 19.75:1 | AAA |
| Text on card | 19.75:1 | AAA |
| Primary button | 6.87:1 | AA |
| Secondary button | 7.93:1 | AAA |
| Muted text | 7.46:1 | AAA |
| Accent | 7.93:1 | AAA |
| Destructive | 3.50:1 | AA Large |
Paste this into your globals.css to use Texture in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.994 0.003 91.434);
--foreground: oklch(0.101 0.014 96.896);
--muted: oklch(0.881 0.005 271.358);
--muted-foreground: oklch(0.389 0.015 271.012);
--popover: oklch(0.994 0.003 91.434);
--popover-foreground: oklch(0.101 0.014 96.896);
--card: oklch(0.994 0.003 91.434);
--card-foreground: oklch(0.101 0.014 96.896);
--border: oklch(0.928 0.006 264.531);
--input: oklch(0.928 0.006 264.531);
--primary: oklch(0.905 0.076 91.813);
--primary-foreground: oklch(0.403 0.075 89.073);
--secondary: oklch(0.792 0.083 270.143);
--secondary-foreground: oklch(0.27 0.105 265.573);
--accent: oklch(0.792 0.083 270.143);
--accent-foreground: oklch(0.27 0.105 265.573);
--destructive: oklch(0.409 0.135 34.424);
--destructive-foreground: oklch(0.893 0.049 34.346);
--ring: oklch(0.905 0.076 91.813);
--chart-1: oklch(0.905 0.076 91.813);
--chart-2: oklch(0.792 0.083 270.143);
--chart-3: oklch(0.792 0.083 270.143);
--chart-4: oklch(0.823 0.07 270.424);
--chart-5: oklch(0.908 0.079 91.81);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.099 0.011 96.007);
--foreground: oklch(0.986 0.001 91.421);
--muted: oklch(0.265 0.007 271.162);
--muted-foreground: oklch(0.773 0.013 271.253);
--popover: oklch(0.099 0.011 96.007);
--popover-foreground: oklch(0.986 0.001 91.421);
--card: oklch(0.099 0.011 96.007);
--card-foreground: oklch(0.986 0.001 91.421);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.905 0.076 91.813);
--primary-foreground: oklch(0.403 0.075 89.073);
--secondary: oklch(0.792 0.083 270.143);
--secondary-foreground: oklch(0.27 0.105 265.573);
--accent: oklch(0.792 0.083 270.143);
--accent-foreground: oklch(0.27 0.105 265.573);
--destructive: oklch(0.651 0.193 34.996);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.905 0.076 91.813);
--chart-1: oklch(0.905 0.076 91.813);
--chart-2: oklch(0.792 0.083 270.143);
--chart-3: oklch(0.792 0.083 270.143);
--chart-4: oklch(0.823 0.07 270.424);
--chart-5: oklch(0.908 0.079 91.81);
}