Now we can go deeper into the Unorthodox System I use.
Basically, I build utilities for each of the 4 categories:
- Typography
- Layouts
- Theming
- Effects
Then I put the utilities together to make the final piece. This is composition (which is a big word, but not a new concept).
The HTML of such a composed system would look somewhat like this:
<div class="layouts-util-1 layout-util2"> <h2 class="type-util theme-util">...</h2> <div class="type-util"> <p>...</p> <p>...</p> </div></div>Ok, that looks like a nightmare, but you get the idea. It makes more sense if we replace the pseudo-classes with actual class names.
<div class="grid-simple [--cols:2] max-w-standard mx-auto"> <h2 class="h2 text-yellow-500"> ... </h2> <div class="prose"> <p> ... </p> <p> ... </p> </div></div>But how does each one of these categories work? We’ll explore that in the following chapters.
Welcome! Unfortunately, you don’t have access to this lesson. To get access, please purchase the course or enroll in Magical Dev School.
Unlock this lesson