HTML & CSS · Senior · Question 42 of 75

How does Tailwind v4 fundamentally differ from v3?

Explanation

Tailwind v4 is a rewrite: it's included with a single @import "tailwindcss", tokens are defined in CSS via @theme and exposed as CSS variables, and you no longer list paths in content - sources are detected automatically. Builds are much faster, and styles use @layer, @property and color-mix(). Modern browsers are required.

Further reading

Problem with a question

HTML & CSS · Senior · question 42

Test yourself

Take the HTML & CSS · Senior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz