2 mins read
November 8, 2025
UnoCSS is an atomic CSS engine which is designed to be flexible and extensible. This makes the core is extremely lightweight (~6kb) because all the CSS utilities are provided via presets.
TailwindCSS JIT engine works like a massive pre-made dictionary:
tailwind.config.js for class strings.mt-4 to your element class, the engine sees the string mt-4.mt-4 in its massive dictionary. It finds the entry: mt-4 = margin-top: 1rem; then generates CSS and injects it.The slowness comes from loading and searching in that massive dictionary.
UnoCSS engine doesn’t have a dictionary in it core, it generates CSS on-demand:
preset-wind4 gives it a rule: “If you see a string that looks like mt-{number}, the rule is margin-top: {number / 4}rem;”.mt-4 to your element class, unlike TailwindCSS, UnoCSS does not do the searchingmt-4 against its list of rules. It quickly finds a match with the mt-{number} rule and generates the CSS by applying the rule’s logic: margin: 4 / 4 = 1rem;.By doing this way, UnoCSS saves a lot of time searching.
Performing TailwindCSS’s job is just one of the many jobs that UnoCSS can do: