Skip to content

CSS Variables and Tailwind Tokens

Hyvä UI leverages CSS variables (custom properties) and Tailwind tokens to simplify UI component development, making customization easier and more flexible.

For example, message styles in the UI are managed using a combination of CSS variables and Tailwind tokens, ensuring a consistent and scalable approach to styling.

A common use case for CSS variables is integrating dynamic PHP values into your CSS, allowing for seamless customization based on your application's logic.

If you're new to CSS variables or want to learn more, we have a dedicated page that explores this topic in depth: CSS Variables + TailwindCSS. This page covers detailed use cases and explains how to work effectively with both CSS variables and TailwindCSS.