Skip to content
中文

Conteman theme

One set of CSS variables for light mode, dark mode and Tailwind CSS 4.

Updated

Live preview

Use the header switch or the button below. Color swatches and React components change together.

background
primary
secondary
muted

Install

npx shadcn add @conteman/theme

Configure "@conteman": "https://ui.conteman.com/r/{name}.json" in components.json first. Button, Input and Table install this registry:theme dependency automatically. Installing the theme updates existing variables; review the changes.

Enable dark mode

The shadcn initializer prepares Tailwind CSS 4 theme mappings. Keep the following in the entry stylesheet:

@import "tailwindcss";
@custom-variant dark (&:where(.dark, .dark *));

Toggle .dark on the root element to use the installed variables:

document.documentElement.classList.toggle("dark");

Tokens

The theme includes background, foreground, card, popover, primary, secondary, muted, accent, destructive, border, input, ring and paired foreground colors. Components use square corners. Values live in the cssVars.light and cssVars.dark fields in registry.json.

Nimbus integration

Nimbus ships persistent light/dark switching and system-theme support using data-mode="dark". The docs scope registry tokens to .conteman-preview and map Nimbus color variables to those tokens. Base UI portals carry the same scope. The bridge CSS is generated from the registry theme; installed components use standard .dark without a docs dependency.

Type to search…

↑↓ navigate↵ selectEsc close