Attribute is a shadcn/ui theme built around a vivid light green primary color (#bbfcce) with vivid light orange accents (#fccebb). The light mode uses a neutral background (#f8fcf9). Dark mode keeps the vivid light green primary (#bbfcce) on a neutral background (#000000).
| Token | Light | Dark |
|---|---|---|
| Background | #f8fcf9mintcream | #000000black |
| Foreground | #010402black | #ffffffwhite |
| Card | #f4fbf6mintcream | #030303black |
| Card foreground | #000000black | #ffffffwhite |
| Popover | #f8fcf9mintcream | #000000black |
| Popover foreground | #010402black | #ffffffwhite |
| Primary | #bbfccepaleturquoise | #bbfccepaleturquoise |
| Primary foreground | #011d0ablack | #011d0ablack |
| Secondary | #cebbfcthistle | #cebbfcthistle |
| Secondary foreground | #2a067fmidnightblue | #2a067fmidnightblue |
| Muted | #e5e3e8gainsboro | #19171cblack |
| Muted foreground | #585464dimgray | #a09babdarkgray |
| Accent | #fccebbpeachpuff | #fccebbpeachpuff |
| Accent foreground | #7f2a06saddlebrown | #7f2a06saddlebrown |
| Destructive | #740301maroon | #ed0602red |
| Destructive foreground | #feaba9lightpink | #ffffffwhite |
| Border | #e5e7eblavender | #1f2937darkslategray |
| Input | #e5e7eblavender | #1f2937darkslategray |
| Ring | #bbfccepaleturquoise | #bbfccepaleturquoise |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 19.89:1 | AAA |
| Text on card | 19.93:1 | AAA |
| Primary button | 15.15:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 5.75:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 6.60:1 | AA |
| Text on background | 21.00:1 | AAA |
| Text on card | 20.67:1 | AAA |
| Primary button | 15.15:1 | AAA |
| Secondary button | 8.47:1 | AAA |
| Muted text | 6.58:1 | AA |
| Accent | 6.57:1 | AA |
| Destructive | 4.52:1 | AA |
Paste this into your globals.css to use Attribute in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(0.987 0.006 155.75);
--foreground: oklch(0.098 0.016 155.351);
--muted: oklch(0.919 0.006 299.922);
--muted-foreground: oklch(0.455 0.027 299.025);
--popover: oklch(0.987 0.006 155.75);
--popover-foreground: oklch(0.098 0.016 155.351);
--card: oklch(0.981 0.009 155.689);
--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.935 0.09 153.876);
--primary-foreground: oklch(0.204 0.052 151.057);
--secondary: oklch(0.83 0.092 298.134);
--secondary-foreground: oklch(0.3 0.172 282.159);
--accent: oklch(0.887 0.058 44.438);
--accent-foreground: oklch(0.408 0.124 39.505);
--destructive: oklch(0.353 0.142 29.403);
--destructive-foreground: oklch(0.821 0.099 20.495);
--ring: oklch(0.935 0.09 153.876);
--chart-1: oklch(0.935 0.09 153.876);
--chart-2: oklch(0.83 0.092 298.134);
--chart-3: oklch(0.887 0.058 44.438);
--chart-4: oklch(0.866 0.072 298.631);
--chart-5: oklch(0.937 0.092 153.811);
}
.dark {
--radius: 0.5rem;
--background: oklch(0 0 0);
--foreground: oklch(1 0 180);
--muted: oklch(0.209 0.009 299.297);
--muted-foreground: oklch(0.699 0.024 299.448);
--popover: oklch(0 0 0);
--popover-foreground: oklch(1 0 180);
--card: oklch(0.092 0 180);
--card-foreground: oklch(1 0 180);
--border: oklch(0.278 0.03 256.848);
--input: oklch(0.278 0.03 256.848);
--primary: oklch(0.935 0.09 153.876);
--primary-foreground: oklch(0.204 0.052 151.057);
--secondary: oklch(0.83 0.092 298.134);
--secondary-foreground: oklch(0.3 0.172 282.159);
--accent: oklch(0.887 0.058 44.438);
--accent-foreground: oklch(0.408 0.124 39.505);
--destructive: oklch(0.596 0.243 29.304);
--destructive-foreground: oklch(1 0 180);
--ring: oklch(0.935 0.09 153.876);
--chart-1: oklch(0.935 0.09 153.876);
--chart-2: oklch(0.83 0.092 298.134);
--chart-3: oklch(0.887 0.058 44.438);
--chart-4: oklch(0.866 0.072 298.631);
--chart-5: oklch(0.937 0.092 153.811);
}