Field Note

Tailwind CSS pre-processing

tailwind-css css pre-processing
Posted on Tuesday, June the 25th 2024
1 min read

Tailwind CSS is a PostCSS plugin and provides some custom CSS extensions.

For example, the @apply keyword allows putting classes on specific elements using a CSS selector. The following changes the font family of every h1 within the main element to the default serif font

main h1 {
    @apply font-serif
}
friedrichkurz.me

© 2025 Friedrich Kurz

Privacy Policy