How do you handle dark mode in a design system?
To implement dark mode, use semantic color tokens like background-primary or text-secondary instead of hard-coded colors. Create a separate theme with equivalent values for each token. Prioritize contrast and readability—don’t just invert colors. Test across all components to ensure accessibility and visual balance. Document theme logic in your design system for cross-team alignment.