CSS-in-JS
Writing component styles in JavaScript, where a library generates and injects the CSS while the page runs.
In more detail
CSS-in-JS made dynamic theming easy but costs JavaScript work in the browser on every render. CSS custom properties and utility classes achieve the same theming with plain CSS, which is why this course recommends them.
Related terms
- CSS custom property — A value you name yourself in CSS, such as --color-primary: #2563eb, and use elsewhere with var(--color-primary).
- Tailwind CSS — A CSS framework made of small single-purpose utility classes, such as bg-blue-600 or px-4, that you combine in markup.
- runtime — The period while a program is actually running, as opposed to when it is written, compiled or built; also the software that runs it.
Taught in
- CSS Custom Properties & Dynamic Theming Architecture — Design Systems & Component Engineering