CSS custom properties that control the entire Pure Admin appearance. Override these in your theme to customize everything.

Core Colors

VariableDescription
--pc-primary-color Primary accent used for interactive elements, links, active states
--pc-primary-color-hover Primary hover state
--pc-primary-color-active Primary active/pressed state
--pc-primary-bg-subtle Subtle primary tint (selected rows, highlights)
--pc-text-color-1 Default body text color
--pc-text-color-2 Muted text color (.text-muted)
--pc-text-color-3 Subtle text color (.text-subtle — hints, placeholders)
--pc-text-color-4 Faint text color (.text-faint — disabled)
--pc-page-bg Page background
--pc-main-bg Main content area background
--pc-subtle-bg Subtle tinted background for panels
--pc-border-color Default border color

Semantic State Colors

VariableDescription
--pc-primary-color Primary brand color
--pc-secondary-color Secondary/neutral color
--pc-success-color Success/positive actions and states
--pc-warning-color Warning/caution states
--pc-danger-color Danger/error/destructive states
--pc-info-color Informational states
--pc-success-text-color Readable text in the role colour (also -warning/-danger/-info)

Theme Color Slots (1-9)

Nine customizable color slots for branding. Each slot auto-generates contrasting text.

VariableDescription
--pc-palette-1 Theme color 1 (used by pa-card--color-1, .bg-color-1, etc.)
--pc-palette-2 Theme color 2
--pc-palette-3 Theme color 3
--pc-palette-4 Theme color 4
--pc-palette-5 Theme color 5
--pc-palette-6 Theme color 6
--pc-palette-7 Theme color 7
--pc-palette-8 Theme color 8
--pc-palette-9 Theme color 9

Layout & Structure

VariableDescription
--pc-navbar-bg Navbar background
--pc-navbar-text Navbar text color
--pc-sidebar-bg Sidebar background
--pc-sidebar-text Sidebar text color
--pc-footer-bg Footer background
--pc-footer-border-color Footer top border
$sidebar-width Sidebar width, 28.8rem (SCSS, compile-time)

Typography

VariableDescription
--base-font-family Default font stack
--base-font-family-mono Monospace stack (code, .font-family-mono)
--base-line-height-normal Default line height (also -tight / -relaxed)
--base-font-size-base Unitless size multiplier for web components (also -2xs … -2xl)

Spacing Scale

VariableDefaultDescription
$spacing-xs 0.4rem Extra small (p-xs, m-xs, gap-xs)
$spacing-sm 0.8rem Small
$spacing-md 1.2rem Medium
$spacing-base 1.6rem Base (default)
$spacing-lg 2.4rem Large
$spacing-xl 3.2rem Extra large
$spacing-2xl 4.8rem 2X large

Component Variables

VariableDescription
--pa-card-bg Card background
--pa-card-header-bg Card header background
--pa-card-border-color Card border color
--pa-input-bg Input background
--pa-input-border Input border color
--pa-input-focus-border-color Input focus border color
--pa-table-header-bg Table header background
--pa-table-stripe Table striped row background
--pa-table-hover-bg Table hover row background
--pa-modal-overlay-bg Modal backdrop color
--pa-tooltip-bg Tooltip background
--pa-tooltip-text Tooltip text color

Overriding Variables

Create a custom theme by overriding these variables in your CSS. Use :root for global overrides or scope to .pc-mode-light / .pc-mode-dark for mode-specific values.

John Doe

Administrator

Settings

Press Ctrl+K to preview the palette.
Sidebar
Display
Profile Panel
Body text size. All elements scale proportionally.
Commands
🚀
Deploy to Environment
Deploy a branch to an environment
g d
👤
Assign to User
Assign an item to a team member
g a
🧭
Go to Page
Navigate to a page
g g
🎨
Switch Theme
Change the visual theme
g t
Search
📦
Products
Search products
:products
📋
Orders
Search orders
:orders
👥
Users
Search users
:users
🧾
Invoices
Search invoices
:invoices