🚀 Monorepo Fullstack Starter
Packages

Tailwind Config (@repo/tailwind-config)

The shared Tailwind CSS v4 theme and design tokens.

The @repo/tailwind-config package centralizes the design system. All apps import from it so they share the same colors, fonts, spacing, and utilities.

How Apps Use It

Each app imports the shared stylesheet in its CSS entry point:

@import '@repo/tailwind-config/global.css';

And adds the package as a dependency in package.json:

{
  "dependencies": {
    "@repo/tailwind-config": "workspace:*"
  }
}

Color System

The theme uses oklch colors with an amber primary accent. Colors are defined as CSS custom properties:

TokenLightDark
--primaryAmber 500Amber 500
--backgroundWhiteNear black
--foregroundNear blackNear white
--mutedGray 100Gray 800
--accentGray 100Gray 700
--borderGray 200White 10%

Font

The project uses Outfit as the primary sans-serif font, loaded via Google Fonts in each app's layout.

Customizing the Theme

Changing Colors

Edit packages/tailwind-config/global.css. The :root selector has light mode colors, and .dark has dark mode colors:

:root {
  --primary: oklch(0.769 0.188 70);  /* Amber */
  --background: oklch(1 0 0);        /* White */
  /* ... */
}

.dark {
  --primary: oklch(0.769 0.188 70);  /* Same amber */
  --background: oklch(0.145 0 0);    /* Dark */
  /* ... */
}

Changing the Font

Update the --font-sans variable in the @theme inline block:

@theme inline {
  --font-sans: 'Your Font', ui-sans-serif, system-ui, sans-serif;
}

Then update each app's layout to load the new font from Google Fonts.

Dark Mode

Dark mode is implemented with the CSS class strategy (.dark on the root element). The next-themes package handles the toggle in Next.js apps.

On this page