Recall & Review
beginner
What does JIT stand for in Tailwind CSS?
JIT stands for Just-In-Time. It means Tailwind generates CSS styles only when they are needed, making the build faster and the CSS file smaller.
Click to reveal answer
beginner
How does on-demand generation improve Tailwind CSS performance?
On-demand generation creates CSS classes only for the styles you use in your HTML or templates, reducing unused CSS and speeding up loading times.
Click to reveal answer
intermediate
What is the main difference between Tailwind's JIT mode and the traditional build mode?
Traditional mode generates all possible CSS classes upfront, while JIT mode generates classes as you write them, making development faster and CSS smaller.
Click to reveal answer
intermediate
How do you enable JIT mode in Tailwind CSS?
In Tailwind CSS v3 and later, JIT mode is enabled by default. For earlier versions, you add 'mode: "jit"' in the tailwind.config.js file.
Click to reveal answer
beginner
Why is JIT mode helpful during development?
JIT mode gives instant feedback by generating styles as you type, so you see changes immediately without waiting for a full rebuild.
Click to reveal answer
What happens when you use a new class in Tailwind CSS with JIT mode enabled?
✗ Incorrect
With JIT mode, Tailwind generates CSS for new classes as soon as you use them.
Which Tailwind CSS version has JIT mode enabled by default?
✗ Incorrect
Tailwind CSS version 3.0 and later have JIT mode enabled by default.
What is a benefit of on-demand CSS generation?
✗ Incorrect
On-demand generation creates only the CSS you use, making files smaller.
How does JIT mode affect development speed?
✗ Incorrect
JIT mode speeds up development by generating styles instantly as you write code.
If you want to use a class not in your HTML, what must you do in JIT mode?
✗ Incorrect
Classes not found in your files must be safelisted to be generated in JIT mode.
Explain how Tailwind CSS JIT mode works and why it is useful.
Think about when CSS classes are created and how that helps your workflow.
You got /4 concepts.
Describe the difference between traditional Tailwind CSS builds and JIT mode.
Focus on when CSS is generated in each mode.
You got /4 concepts.