The Hyvä Theme CSS File Directory Structure
In a Hyvä themes, the source CSS files are located in directories under web/tailwind.
- The
base/directory contains the Hyvä preflight CSS, with some better defaults than the default Tailwind preflight. It also serves as an example how to do classless styling. - The
components/directory contains styles for components such as toolbar, button, form, and messages. - The
generated/directory contains thehyva-source.cssandhyva-tokens.cssgenerated by the hyva-modules commandsnpx hyva-sourcesandnpx hyva-tokens. - The
utilities/directory contains miscellaneous files not fitting any other category. - THe
theme/directory contains page specific styles.
Versions of Hyvä theme before 1.4.0 were less structured.
If you are working on a build based on Hyvä 1.3.x or older you may encounter a different default directory layout.