Dark Mode
Utilities
Registry Architecture
Award-winning web interfaces frequently feature dark aesthetics with high-contrast typography and subtle luminescent border highlights. Jolocky sections are dark-mode first by default.
Next.js Implementation Guide#
Follow our comprehensive guide to set up next-themes and a theme toggle button in Next.js App Router:
How Dark Mode Works in Jolocky#
Jolocky uses standard CSS custom properties defined in your global stylesheet.
- The root
:rootselector holds the light mode color values. - The
.darkselector overrides the variables with darker surface tones and higher contrast text. - Tailwind CSS detects the
.darkclass using the custom variant selector:
@custom-variant dark (&:is(.dark *));All Jolocky sections automatically react to the theme change without requiring separate component variants or duplicate markup.