Recall & Review
beginner
What is the main purpose of the Tailwind CSS configuration file?
The Tailwind CSS configuration file lets you customize default styles, add new colors, fonts, and control how Tailwind generates CSS. It helps you make Tailwind fit your project's design needs.
Click to reveal answer
beginner
Which file name is commonly used for Tailwind CSS configuration?
The common file name is
tailwind.config.js. It is a JavaScript file where you define your custom settings for Tailwind.Click to reveal answer
intermediate
In the Tailwind config file, what is the purpose of the
content array?The <code>content</code> array tells Tailwind which files to scan for class names. This helps Tailwind generate only the CSS you actually use, keeping your styles small and fast.Click to reveal answer
intermediate
What does the
theme section in the Tailwind config file control?The
theme section lets you customize design tokens like colors, spacing, fonts, and more. You can add new values or override defaults to match your design style.Click to reveal answer
intermediate
How do you extend the default Tailwind theme without replacing it?
You use the
extend key inside the theme section. This adds your custom values while keeping the original defaults intact.Click to reveal answer
What file does Tailwind CSS use by default for configuration?
✗ Incorrect
Tailwind uses
tailwind.config.js as its default configuration file.What is the role of the
content array in the Tailwind config file?✗ Incorrect
The
content array tells Tailwind which files to scan to find CSS classes you use.How do you add new colors to Tailwind without removing the default colors?
✗ Incorrect
Using
extend inside theme adds new colors while keeping defaults.Which language is used to write the Tailwind config file?
✗ Incorrect
Tailwind config files are JavaScript files, allowing dynamic customization.
What happens if you do not specify the
content array in Tailwind config?✗ Incorrect
Without
content, Tailwind includes all classes, increasing CSS size.Explain the structure of a basic Tailwind CSS configuration file and its main sections.
Think about how Tailwind knows which files to scan and how you customize styles.
You got /4 concepts.
Describe how you can customize colors in Tailwind without losing the default color palette.
Focus on the extend key inside the theme object.
You got /3 concepts.