Recall & Review
beginner Click to reveal answer
What is Tailwind CSS?
Tailwind CSS is a utility-first CSS framework that helps you build custom designs quickly by using small, reusable classes.
beginner Click to reveal answer
Name the first step to install Tailwind CSS in a new project.
Initialize your project with
npm init -y to create a package.json file.beginner Click to reveal answer
Which command installs Tailwind CSS and its dependencies?
Run
npm install -D tailwindcss postcss autoprefixer to install Tailwind and required tools.beginner Click to reveal answer
What file do you create to configure Tailwind CSS?
Create
tailwind.config.js using npx tailwindcss init to customize Tailwind settings.beginner Click to reveal answer
How do you include Tailwind CSS styles in your CSS file?
Add these lines to your CSS file:
@tailwind base;@tailwind components;@tailwind utilities;What command initializes a new Node.js project for Tailwind?
✗ Incorrect
You use
npm init -y to create a package.json file which is needed before installing packages.Which packages are installed to use Tailwind CSS with PostCSS?
✗ Incorrect
Tailwind CSS requires
postcss and autoprefixer to process styles correctly.What does the
tailwind.config.js file do?✗ Incorrect
The config file lets you customize Tailwind’s default design system.
Which directive is NOT part of including Tailwind in your CSS?
✗ Incorrect
There is no
@tailwind scripts; directive in Tailwind CSS.Why do you need PostCSS when using Tailwind?
✗ Incorrect
PostCSS processes Tailwind’s special CSS commands into normal CSS the browser understands.
Explain the basic steps to install and set up Tailwind CSS in a new project.
Think about npm commands and configuration files.
You got /4 concepts.
Describe the role of the
tailwind.config.js file and why it is important.It’s like a settings file for your design system.
You got /4 concepts.
