Saudi is a shadcn/ui theme built around a green primary color (#48cb83) with neutral gray accents (#dbdcdb). The light mode uses a neutral background (#ffffff). Dark mode keeps the green primary (#48cb83) on a green-tinted background (#040c07).
| Token | Light | Dark |
|---|---|---|
| Background | #ffffffwhite | #040c07black |
| Foreground | #010402black | #f8fcfamintcream |
| Card | #ffffffwhite | #040c07black |
| Card foreground | #010402black | #f8fcfamintcream |
| Popover | #ffffffwhite | #040c07black |
| Popover foreground | #010402black | #f8fcfamintcream |
| Primary | #48cb83mediumseagreen | #48cb83mediumseagreen |
| Primary foreground | #103822darkgreen | #103822darkgreen |
| Secondary | #dbdcdbgainsboro | #273a2fdarkslategray |
| Secondary foreground | #414442darkslategray | #bfd4c8silver |
| Muted | #d2e0d8gainsboro | #1f2d26darkslategray |
| Muted foreground | #484b4adarkslategray | #b4b7b5silver |
| Accent | #dbdcdbgainsboro | #273a2fdarkslategray |
| Accent foreground | #414442darkslategray | #bfd4c8silver |
| Destructive | #782802saddlebrown | #fb6723tomato |
| Destructive foreground | #fdc8afpeachpuff | #000000black |
| Border | #ecefedwhitesmoke | #171c19black |
| Input | #ecefedwhitesmoke | #171c19black |
| Ring | #48cb83mediumseagreen | #48cb83mediumseagreen |
WCAG 2 contrast ratios between each background and its foreground color.
| Text on background | 20.59:1 | AAA |
| Text on card | 20.59:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 7.16:1 | AAA |
| Muted text | 6.44:1 | AA |
| Accent | 7.16:1 | AAA |
| Destructive | 6.70:1 | AA |
| Text on background | 19.17:1 | AAA |
| Text on card | 19.17:1 | AAA |
| Primary button | 6.32:1 | AA |
| Secondary button | 7.76:1 | AAA |
| Muted text | 7.08:1 | AAA |
| Accent | 7.76:1 | AAA |
| Destructive | 7.06:1 | AAA |
Paste this into your globals.css to use Saudi in your shadcn/ui project.
:root {
--radius: 0.5rem;
--background: oklch(1 0 180);
--foreground: oklch(0.099 0.015 162.648);
--muted: oklch(0.893 0.018 162.114);
--muted-foreground: oklch(0.411 0.005 162.334);
--popover: oklch(1 0 180);
--popover-foreground: oklch(0.099 0.015 162.648);
--card: oklch(1 0 180);
--card-foreground: oklch(0.099 0.015 162.648);
--border: oklch(0.948 0.004 162.522);
--input: oklch(0.948 0.004 162.522);
--primary: oklch(0.753 0.155 155.395);
--primary-foreground: oklch(0.304 0.06 155.884);
--secondary: oklch(0.893 0.002 162.567);
--secondary-foreground: oklch(0.382 0.004 162.339);
--accent: oklch(0.893 0.002 162.567);
--accent-foreground: oklch(0.382 0.004 162.339);
--destructive: oklch(0.393 0.12 40.389);
--destructive-foreground: oklch(0.873 0.07 46.107);
--ring: oklch(0.753 0.155 155.395);
--chart-1: oklch(0.753 0.155 155.395);
--chart-2: oklch(0.893 0.002 162.567);
--chart-3: oklch(0.893 0.002 162.567);
--chart-4: oklch(0.916 0.001 162.579);
--chart-5: oklch(0.761 0.162 155.032);
}
.dark {
--radius: 0.5rem;
--background: oklch(0.141 0.018 162.432);
--foreground: oklch(0.987 0.004 162.507);
--muted: oklch(0.282 0.023 160.384);
--muted-foreground: oklch(0.775 0.004 162.49);
--popover: oklch(0.141 0.018 162.432);
--popover-foreground: oklch(0.987 0.004 162.507);
--card: oklch(0.141 0.018 162.432);
--card-foreground: oklch(0.987 0.004 162.507);
--border: oklch(0.219 0.008 161.745);
--input: oklch(0.219 0.008 161.745);
--primary: oklch(0.753 0.155 155.395);
--primary-foreground: oklch(0.304 0.06 155.884);
--secondary: oklch(0.329 0.031 159.986);
--secondary-foreground: oklch(0.851 0.028 161.777);
--accent: oklch(0.329 0.031 159.986);
--accent-foreground: oklch(0.851 0.028 161.777);
--destructive: oklch(0.692 0.195 41.594);
--destructive-foreground: oklch(0 0 0);
--ring: oklch(0.753 0.155 155.395);
--chart-1: oklch(0.753 0.155 155.395);
--chart-2: oklch(0.329 0.031 159.986);
--chart-3: oklch(0.329 0.031 159.986);
--chart-4: oklch(0.361 0.035 159.903);
--chart-5: oklch(0.761 0.162 155.032);
}