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
getThemeNamehelper 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.
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()],
},
})