DecaneDocs
ReferenceTheme
Reference

Theme

The modal theme is controlled through DecaneKit config and toggled at runtime via useDecane.

tsx
// Follow system preference (default)
<DecaneKit config={{ theme: "auto" }}>

// Toggle at runtime
const { theme, setTheme } = useDecane();

CSS custom properties

The SDK injects these tokens into document.head whenever the modal opens. Apply them anywhere in your own app.

--dc-bgbackground
--dc-surfacesurface
--dc-borderborder
--dc-texttext
--dc-text-secondarytext · secondary
--dc-text-mutedtext · muted
--dc-accentgold
--dc-accent-hovergold · hover
--dc-accent-texton-accent
--dc-dangerdanger