Language PreviewDTL is currently in alpha. Explore the language, try the playground, and learn how to use it.Alpha release coming soon.

Themes Example

This example demonstrates how to create multiple theme variants, including dark mode, high contrast, and brand variations.

Base Theme

Dark Theme

High Contrast Theme

Brand Theme

Complete Example

Best Practices

  • Keep base tokens semantic: Use names like "primary" not "blue"
  • Override only what changes: Don't duplicate unchanged tokens
  • Test accessibility: Ensure themes meet contrast requirements
  • Maintain consistency: Keep the same structure across themes

Related