Skip to content

Theme settings

Presets

Examples with current theme configuration:

Theme nesting
Theme layers is fun!

Current theme configuration:

json
{
  "surface": {
    "bg": "#191A23",
    "text": "#ffffff"
  },
  "accent": {
    "bg": "#2b6be3",
    "text": "#ffffff"
  }
}

Usage to set base theme with current configuration:

js
const {
  setBaseTheme
} = useBaseTheme()

setBaseTheme({
  surface: {
    bg: "#191A23",
    text: "#ffffff",
  },
  accent: {
    bg: "#2b6be3",
    text: "#ffffff",
  },
})

Usage to create a new theme layer with current configuration:

js
const { className } = useThemeLayer({
  surface: {
    bg: "#191A23",
    text: "#ffffff",
  },
  accent: {
    bg: "#2b6be3",
    text: "#ffffff",
  },
})