Make it feel like you.

Neutral by default, with 15 ready-made themes. Each theme is one CSS file that sets every token for light and dark. No JavaScript.

Surface

--sprout-surface

Canvas

--sprout-canvas

Primary

--sprout-primary

Text

--sprout-text

Themes

Each card below is themed on its own with data-sprout-theme. Pick a theme for the whole site from the header.

Use a theme

Import the theme file after Sprõut's styles. Then set the attribute on your document root. You can import more than one theme and switch the attribute at runtime.

app.cssCSS
@import "tailwindcss";
@import "@tulipfarm/sprout/styles.css";
@import "@tulipfarm/sprout/themes/claude.css";

/* On your document root: */
/* <html data-sprout-theme="claude"> */

The default follows the system color preference. Set class="light"or class="dark" on your document root to choose explicitly.

Make your own

A theme is one file. Copy any theme, change the slug in its selectors, and edit the values. The font and radius apply in both modes. The colors come in a light block and a dark block. The dark block appears twice: once forclass="dark" and once for the system preference.

themes/claude.cssCSS
/* Claude: Warm paper and clay orange.
 *
 * One file is the whole theme: font, radius, and every color token for light
 * and dark. Import it after "@tulipfarm/sprout/styles.css", then set
 * data-sprout-theme="claude" on <html>, or on any element to theme only
 * that subtree.
 */
@layer base {
  [data-sprout-theme='claude'] {
    --sprout-font: ui-serif, Georgia, 'Times New Roman', serif;
    --sprout-radius-control: 0.5rem;
    --sprout-radius-panel: 0.875rem;
  }

  [data-sprout-theme='claude'],
  .light[data-sprout-theme='claude'],
  .light [data-sprout-theme='claude'] {
    --sprout-canvas: oklch(0.966 0.0093 99.98);
    --sprout-surface: oklch(0.9818 0.0054 95.1);
    --sprout-hover: oklch(0.9465 0.0058 84.57);
    --sprout-active: oklch(0.9243 0.0068 97.36);
    --sprout-text: oklch(0.3438 0.0269 95.72);
    --sprout-muted: oklch(0.5233 0.0093 99.01);
    --sprout-line: oklch(0.893 0.015 98.31);
    --sprout-border: oklch(0.6826 0.0148 93.05);
    --sprout-border-strong: oklch(0.6059 0.0166 94.31);
    --sprout-input: oklch(0.8883 0.0084 91.49);
    --sprout-primary: oklch(0.5684 0.1396 40.44);
    --sprout-primary-hover: oklch(0.5191 0.126 40.74);
    --sprout-primary-active: oklch(0.4752 0.1139 40.25);
    --sprout-on-primary: oklch(1 0 0);
    --sprout-focus: oklch(0.5684 0.1396 40.44);
    --sprout-danger: oklch(0.51 0.1702 23.08);
    --sprout-danger-hover: oklch(0.4523 0.1506 23.05);
    --sprout-on-danger: oklch(0.9845 0.0075 17.28);
    --sprout-info: oklch(0.4964 0.1548 257.9);
    --sprout-info-subtle: oklch(0.9571 0.0174 264.49);
    --sprout-danger-subtle: oklch(0.9612 0.0163 12.78);
    --sprout-success: oklch(0.4648 0.11 150.58);
    --sprout-success-subtle: oklch(0.9557 0.0174 153.56);
    --sprout-warning: oklch(0.4793 0.1104 58.6);
    --sprout-warning-subtle: oklch(0.962 0.0305 81.76);
    --sprout-primary-subtle: color-mix(in oklab, var(--sprout-primary) 10%, var(--sprout-surface));
    --sprout-secondary: oklch(0.9425 0.0068 97.35);
    --sprout-overlay: oklch(0.1822 0 0 / 0.35);
  }

  .dark[data-sprout-theme='claude'],
  .dark [data-sprout-theme='claude'] {
    --sprout-canvas: oklch(0.2679 0.0036 106.64);
    --sprout-surface: oklch(0.3085 0.0035 106.6);
    --sprout-hover: oklch(0.3705 0.005 106.64);
    --sprout-active: oklch(0.4057 0.0036 84.57);
    --sprout-text: oklch(0.9663 0.008 98.88);
    --sprout-muted: oklch(0.7713 0.0169 99.07);
    --sprout-line: oklch(0.3859 0.0084 97.54);
    --sprout-border: oklch(0.6264 0.006 95.15);
    --sprout-border-strong: oklch(0.7108 0.0071 106.58);
    --sprout-input: oklch(0.4558 0.0048 106.59);
    --sprout-primary: oklch(0.6724 0.1308 38.76);
    --sprout-primary-hover: oklch(0.7089 0.1146 38.59);
    --sprout-primary-active: oklch(0.7401 0.099 38.97);
    --sprout-on-primary: oklch(0.2357 0.0024 67.71);
    --sprout-focus: oklch(0.6724 0.1308 38.76);
    --sprout-danger: oklch(0.7753 0.1327 17.15);
    --sprout-danger-hover: oklch(0.8276 0.0966 16.16);
    --sprout-on-danger: oklch(0.2485 0.0691 18.42);
    --sprout-info: oklch(0.7761 0.0984 258.14);
    --sprout-info-subtle: oklch(0.2941 0.0492 262.74);
    --sprout-danger-subtle: oklch(0.2814 0.0388 12.06);
    --sprout-success: oklch(0.7972 0.1124 152.77);
    --sprout-success-subtle: oklch(0.2936 0.0393 153.58);
    --sprout-warning: oklch(0.838 0.0994 77.64);
    --sprout-warning-subtle: oklch(0.2893 0.0288 73);
    --sprout-primary-subtle: color-mix(in oklab, var(--sprout-primary) 16%, var(--sprout-surface));
    --sprout-secondary: oklch(0.3781 0.005 106.64);
    --sprout-overlay: oklch(0.1344 0 0 / 0.65);
  }

  @media (prefers-color-scheme: dark) {
    :root:not(.light):not(.dark)[data-sprout-theme='claude'],
    :root:not(.light):not(.dark) [data-sprout-theme='claude'] {
      --sprout-canvas: oklch(0.2679 0.0036 106.64);
      --sprout-surface: oklch(0.3085 0.0035 106.6);
      --sprout-hover: oklch(0.3705 0.005 106.64);
      --sprout-active: oklch(0.4057 0.0036 84.57);
      --sprout-text: oklch(0.9663 0.008 98.88);
      --sprout-muted: oklch(0.7713 0.0169 99.07);
      --sprout-line: oklch(0.3859 0.0084 97.54);
      --sprout-border: oklch(0.6264 0.006 95.15);
      --sprout-border-strong: oklch(0.7108 0.0071 106.58);
      --sprout-input: oklch(0.4558 0.0048 106.59);
      --sprout-primary: oklch(0.6724 0.1308 38.76);
      --sprout-primary-hover: oklch(0.7089 0.1146 38.59);
      --sprout-primary-active: oklch(0.7401 0.099 38.97);
      --sprout-on-primary: oklch(0.2357 0.0024 67.71);
      --sprout-focus: oklch(0.6724 0.1308 38.76);
      --sprout-danger: oklch(0.7753 0.1327 17.15);
      --sprout-danger-hover: oklch(0.8276 0.0966 16.16);
      --sprout-on-danger: oklch(0.2485 0.0691 18.42);
      --sprout-info: oklch(0.7761 0.0984 258.14);
      --sprout-info-subtle: oklch(0.2941 0.0492 262.74);
      --sprout-danger-subtle: oklch(0.2814 0.0388 12.06);
      --sprout-success: oklch(0.7972 0.1124 152.77);
      --sprout-success-subtle: oklch(0.2936 0.0393 153.58);
      --sprout-warning: oklch(0.838 0.0994 77.64);
      --sprout-warning-subtle: oklch(0.2893 0.0288 73);
      --sprout-primary-subtle: color-mix(in oklab, var(--sprout-primary) 16%, var(--sprout-surface));
      --sprout-secondary: oklch(0.3781 0.005 106.64);
      --sprout-overlay: oklch(0.1344 0 0 / 0.65);
    }
  }
}

Override in your stylesheet

Place overrides after imports. Use root variables for runtime theme values or Tailwind's @theme inline for utility mappings. Sprõut does not set global fonts or page styles. Built-in themes write colours in OKLCH, so lightness steps look even across hues; do the same in overrides.

Theme overridesCSS
@import "tailwindcss";
@import "@tulipfarm/sprout/styles.css";

:root {
  --sprout-primary: oklch(0.4496 0.0722 236.42);
  --sprout-primary-hover: oklch(0.3842 0.0608 237.59);
  --sprout-on-primary: oklch(0.9855 0.0075 241.66);
  --sprout-radius-control: 0.5rem;
  --sprout-sidebar-width: 16rem;
  --sprout-sidebar-mobile-width: 18rem;
  --sprout-sidebar-icon-width: 3.5rem;
  --sprout-bar-height: 44px; /* sidebar header; match your top bar */
  --sprout-font: "Your font", system-ui, sans-serif;
}

.dark {
  --sprout-primary: oklch(0.8394 0.0611 232.64);
  --sprout-primary-hover: oklch(0.8906 0.0452 231.68);
  --sprout-on-primary: oklch(0.2807 0.0396 236.14);
}

Tokens for your own chrome

Some tokens exist so your app's own sidebar, menus and text can match Sprõut without copying colors. Each one follows another token until a theme sets it.

  • --sprout-sidebar: sidebar and drawer background. Follows --sprout-canvas.
  • --sprout-popover: menus, popovers and tooltips. Follows --sprout-surface.
  • --sprout-body: long-form body text. Follows --sprout-text.
  • --sprout-faint: decorative text and icons, not for content.
  • --sprout-primary-text: primary-colored text and links. Follows --sprout-primary.

Mobile drawers and theme scope

The mobile drawer and tooltips render in portals under the document body. Define your theme on the document root so it reaches overlays. For a theme limited to a subtree, put data-sprout-theme on that subtree and pass a container inside it to Sidebar through portalContainer.

Overlay layers use 40 for the backdrop, 50 for the drawer, and 60 for tooltips. Keep application chrome below those layers. Theme persistence and mode controls belong to your app; Sprõut has no theme provider.

Keep contrast intact

Change foreground and background pairs together. Verify text contrast, visible focus, and control borders in both light and dark modes after changing colors.