0
0
Tailwindmarkup~5 mins

Tailwind installation and setup - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Tailwind CSS?
Tailwind CSS is a utility-first CSS framework that helps you build custom designs quickly by using small, reusable classes.
Click to reveal answer
beginner
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.
Click to reveal answer
beginner
Which command installs Tailwind CSS and its dependencies?
Run npm install -D tailwindcss postcss autoprefixer to install Tailwind and required tools.
Click to reveal answer
beginner
What file do you create to configure Tailwind CSS?
Create tailwind.config.js using npx tailwindcss init to customize Tailwind settings.
Click to reveal answer
beginner
How do you include Tailwind CSS styles in your CSS file?
Add these lines to your CSS file:<br>@tailwind base;<br>@tailwind components;<br>@tailwind utilities;
Click to reveal answer
What command initializes a new Node.js project for Tailwind?
Anpm init -y
Bnpm install tailwindcss
Cnpx tailwindcss init
Dnpm start
Which packages are installed to use Tailwind CSS with PostCSS?
Atailwindcss, bootstrap, autoprefixer
Breact, tailwindcss, sass
Cpostcss, sass, autoprefixer
Dtailwindcss, postcss, autoprefixer
What does the tailwind.config.js file do?
ARuns the Tailwind CSS server
BContains HTML templates
CConfigures Tailwind settings like colors and fonts
DStores JavaScript logic
Which directive is NOT part of including Tailwind in your CSS?
A@tailwind scripts;
B@tailwind components;
C@tailwind base;
D@tailwind utilities;
Why do you need PostCSS when using Tailwind?
ATo run JavaScript code
BTo process Tailwind’s CSS directives into real CSS
CTo create HTML files
DTo compile Sass files
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.