Skip to content

Theming

DS one uses CSS custom properties for theming, allowing you to customize colors and styles without modifying component code.

<style>
:root {
--accent-color: #6366f1;
}
</style>

DS one automatically adapts to system dark mode preferences:

@media (prefers-color-scheme: dark) {
:root {
--accent-color: #818cf8;
}
}
<div style="--accent-color: #ef4444;">
<button-v1 variant="primary">Red Button</button-v1>
</div>
<div style="--accent-color: #10b981;">
<button-v1 variant="primary">Green Button</button-v1>
</div>

Common theme variables:

:root {
--accent-color: #0066cc;
--background-color: #ffffff;
--text-color: #000000;
--border-color: #e0e0e0;
}

For detailed theming documentation, see the Advanced Theming Guide.