Recall & Review
beginner
What is a Tailwind CSS preset?
A Tailwind CSS preset is a reusable configuration file that contains shared design tokens, plugins, and settings. It helps keep styles consistent across multiple projects by sharing the same base setup.
Click to reveal answer
intermediate
How do you share a Tailwind preset across projects?
You create a separate npm package with your Tailwind preset configuration. Then, install that package in each project and reference it in the tailwind.config.js file under the presets array.
Click to reveal answer
beginner
Why use Tailwind presets instead of copying config files?
Presets allow you to update shared styles in one place. All projects using the preset get the update automatically, avoiding mistakes and saving time compared to copying config files manually.
Click to reveal answer
beginner
What is the key field in tailwind.config.js to add a preset?
The key field is <code>presets</code>. It is an array where you import and add your preset package to extend your Tailwind configuration.Click to reveal answer
intermediate
Can Tailwind presets include plugins and custom utilities?
Yes! Presets can include plugins, custom utilities, theme extensions, and variants. This makes them powerful for sharing complex design systems across projects.
Click to reveal answer
What is the main benefit of using Tailwind presets across projects?
✗ Incorrect
Tailwind presets help share and update design settings easily across projects by centralizing configuration.
Where do you add a Tailwind preset in your project?
✗ Incorrect
Presets are added in the
presets array inside the tailwind.config.js file.How do you distribute a Tailwind preset to other projects?
✗ Incorrect
Publishing the preset as an npm package allows easy installation and updates across projects.
Can Tailwind presets include custom colors and fonts?
✗ Incorrect
Presets can extend the theme with custom colors, fonts, and other design tokens.
What happens when you update a Tailwind preset package?
✗ Incorrect
Updating the preset package and reinstalling it in projects applies the new styles everywhere.
Explain how to create and use a Tailwind preset to share styles across multiple projects.
Think about packaging config and referencing it in projects.
You got /5 concepts.
Describe the benefits of using Tailwind presets instead of copying config files between projects.
Focus on maintenance and consistency advantages.
You got /5 concepts.