Imperator Design
The library

Techniques, not templates

Every trick recreated from the source video as a live, self-contained demo. Search, filter, open, steal.

1 / 4

Dark Mode in Two Lines of CSS

No theme classes, no localStorage, no toggle wired to a click handler. color-scheme: light dark tells the browser this page renders either way, and light-dark() picks the right value per property — so the page follows the operating system on its own. The demo flips the container's own color-scheme so you can watch both halves without touching system settings.

cssdark modethemingcolor-schemelight-dark
2 / 4

Sun-to-Moon Dark Mode Toggle

A charming dark mode toggle switch where a radiant sun retracts its rays, shifts color, and a 'carving' circle slides across to elegantly transform it into a crescent moon, powered purely by CSS transitions.

animationtoggleswitchcssdark modetransitions
3 / 4

Designed Empty State Inbox

Transforms a bland 'no items' empty state into a welcoming screen with a stylized illustration, friendly microcopy, and a clear call-to-action button, ensuring the user always feels cared for, not lost.

dark modeui/uxbuttonsmicrocopyillustrationempty state
4 / 4

Automatic Light/Dark Theme with CSS `light-dark()`

This UI trick demonstrates how to implement a fully automatic light and dark mode theme using only CSS, leveraging the `color-scheme` property and the `light-dark()` function. It elegantly switches themes based on the user's operating system preference, requiring zero JavaScript and preventing any flash of unstyled content on load.

cssdark modevariablesthemingcolor-schemelight-dark