Skip to main content

Dashboard Theming

The Vendure dashboard uses a modern theming system based on CSS custom properties and Tailwind CSS . This guide shows you how to customize the colors and styles by modifying the theme variables in the Vite plugin.

The dashboard also uses the same theming methodology as shadcn/ui

It also uses the shadcn theme provider implementation for Vite

Using Themes in Your Components

The Vendure dashboard provides a simple way to access theme variables in your components. Here's how to use them:

Using Tailwind Classes

The easiest way to use theme colors is through Tailwind variable CSS classes:

Tsx

Customizing Theme Colors

You can customize the dashboard theme colors by modifying the theme configuration in your vite.config.mts file. Here's an example showing how to change the primary brand colors:

Typescript

Inspecting element colors in the browser

To identify the exact color values used by dashboard elements, you can use your browser's developer tools:

  • Right-click on any element and select "Inspect" to open the developer panel.
  • Navigate to the Styles tab.
  • From there, you can examine the CSS properties and see the actual color values (hex codes, RGB values, or CSS custom properties) being applied to that element.
inspection-gif

Available Theme Variables

The dashboard defines comprehensive theme variables that are automatically available as Tailwind classes:

Core Colors

VariableDescription
--backgroundMain background
--foregroundMain text color
--cardCard background
--card-foregroundCard text
--popoverPopover background
--popover-foregroundPopover text

Interactive Colors

VariableDescription
--primaryPrimary brand color
--primary-foregroundText on primary
--secondarySecondary actions
--secondary-foregroundText on secondary
--accentAccent elements
--accent-foregroundText on accent

Semantic Colors

VariableDescription
--destructiveError/danger actions
--destructive-foregroundText on destructive
--successSuccess states
--success-foregroundText on success
--mutedMuted elements
--muted-foregroundMuted text

Border and Input Colors

VariableDescription
--borderBorder color
--inputInput background
--ringFocus ring color

Chart Colors

VariableDescription
--chart-1Chart color 1
--chart-2Chart color 2
--chart-3Chart color 3
--chart-4Chart color 4
--chart-5Chart color 5
VariableDescription
--sidebarSidebar background
--sidebar-foregroundSidebar text
--sidebar-primarySidebar primary
--sidebar-primary-foregroundText on sidebar primary
--sidebar-accentSidebar accent
--sidebar-accent-foregroundText on sidebar accent
--sidebar-borderSidebar border
--sidebar-ringSidebar focus ring

Brand Colors

VariableDescription
--brandPrimary brand color
--brand-lighterLighter brand variant
--brand-darkerDarker brand variant
VariableDescription
dev-modeDev-mode ring
dev-mode-foregroundDev-mode foreground

Typography

VariableDescription
--font-sansSans-serif font
--font-monoMonospace font

Border Radius

VariableDescription
--radiusBase border radius
Was this chapter helpful?
Report Issue
Edited Feb 10, 2026ยทEdit this page