DocsBlog
  • 1.6.0

  • Day

    Night

    Preview

    Switch mode
  • Cerberus

    Acheron

    Elysium

    Oceanus

Get Started
Components
Data Grid
Signals
Styling
Theming

Overview

Get StartedInstallationFAQContributing

AI

LLMS.txtContext 7

Presets

Themes

Theme Presets

Learn how to use different themes in Cerberus

Note

Every theme listed is featured on this website in the theme selector menu located in the top right corner.

Cerberus has a set of additional theme presets that you can use to quickly apply a consistent look and feel to your application.

You can either use the official theme presets or create your own theme and submit it as a pull request to the Cerberus GitHub repository.

List of Cerberus Themes

  • @cerberus/preset-cerberus-theme: the base theme which comes built-in with Cerberus
  • @cerberus/preset-acheron-theme: A earthy toned theme
  • @cerberus/preset-elysium-theme: A high-contrast theme
  • @cerberus/preset-oceanus-theme: A blue theme

Contents

A theme preset should contains the following configuration updates and helpers:

  • Semantic Tokens
  • Theme-specific condition using the naming convention [themeName]Theme
  • A getThemeName helper function

Package Naming

Theme packages should be named @cerberus/preset-[themeName]-theme.

Using Official Theme Presets

To use any of the official theme presets, install the package and update your panda.config.ts file accordingly.

// panda.config.ts
import { defineConfig } from '@pandacss/dev'
import { cerberusPreset, cerberusConfig } from '@cerberus/panda-preset'
import {
acheronTheme,
getAcheronThemeName,
} from '@cerberus/preset-acheron-theme'

export default defineConfig({
  ...cerberusConfig,

  include: ['./src/**/*.{ts,tsx,js,jsx}'],
  exclude: [],
  
  presets: [cerberusPreset(), acheronTheme],
  
  staticCss: {
    themes: ['cerberus', getAcheronThemeName()],
  },
})

On this page

Loading...

Loading...

Loading...

Loading...

Theme Presets

On this page

  • List of Cerberus Themes
  • Contents
  • Package Naming
  • Using Official Theme Presets
  • Edit this page on Github