Pure UI
DocsComponentsBlocksNEW
141

Docs

IntroductionGet Started
Installation
Theming

Components

AccordionAvatarBadgeButtonButton GroupCalendarCardCheckboxCollapsibleCombobox
Detached Triggers
DialogInputInput GroupInput OTPKbdLabelMenuNumber FieldPopoverRadio GroupNEWScroll AreaSelectSeparatorSheetSpinnerSwitchTabsNEWTextareaToastTooltip

Theming

Customize Pure UI's design system with CSS variables and global styles

Theming allows you to maintain a consistent look and feel across your application.

Pure UI uses CSS variables for theming. You can customize everything from colors to component styles using standard CSS.

How It Works

Pure UI's theming system is built on top of Tailwind CSS v4's theme. When you import tailwindcss, it:

  1. Uses Tailwind's built-in color palettes (like --color-neutral-*)
  2. Maps them to semantic variables for easier use
  3. Automatically switches between light and dark themes
  4. Uses CSS layers and the @theme directive for organization

The system follows a simple naming pattern:

  • Colors without a suffix are backgrounds (e.g., --accent)
  • Colors with --foreground are for text on that background (e.g., --accent-foreground)
<div className="bg-accent text-accent-foreground">Hello</div>

List of Variables

UI Colors

Copy Color

Background

Copy Color

Foreground

Copy Color

Card

Copy Color

Card Foreground

Copy Color

Popover

Copy Color

Popover Foreground

Copy Color

Primary

Copy Color

Primary Foreground

Copy Color

Secondary

Copy Color

Secondary Foreground

Copy Color

Muted

Copy Color

Muted Foreground

Copy Color

Accent

Copy Color

Accent Foreground

Copy Color

Destructive

Copy Color

Destructive Foreground

Copy Color

Info

Copy Color

Info Foreground

Copy Color

Success

Copy Color

Success Foreground

Copy Color

Warning

Copy Color

Warning Foreground

Copy Color

Border

Copy Color

Input

Copy Color

Ring

Chart Colors

Copy Color

Chart 1

Copy Color

Chart 2

Copy Color

Chart 3

Copy Color

Chart 4

Copy Color

Chart 5

Sidebar Colors

Copy Color

Sidebar

Copy Color

Sidebar Foreground

Copy Color

Sidebar Primary

Copy Color

Sidebar Primary Foreground

Copy Color

Sidebar Accent

Copy Color

Sidebar Accent Foreground

Copy Color

Sidebar Border

Copy Color

Sidebar Ring