Theming
Components work without a theme file, but optional themes provide CSS variables for consistent color and motion.
ts
import '@datav-kit/themes/cyber-blue.css'Values resolve in this order:
- Explicit attribute or property.
- CSS variable on the host.
- Component fallback.
For example, dvk-border-box-1 can use explicit colors:
html
<dvk-border-box-1 colors="#235fa7,#4fd2dd"></dvk-border-box-1>Or inherit variables from a theme scope:
html
<section class="dvk-theme-cyber-blue">
<dvk-border-box-1></dvk-border-box-1>
</section>cyber-blue
neon-magenta