Recall & Review
beginner
What is Tailwind CSS?
Tailwind CSS is a utility-first CSS framework that lets you style your web pages using small, reusable classes instead of writing custom CSS.
Click to reveal answer
beginner
How do you add Tailwind CSS to an Astro project?
You install Tailwind CSS via npm, create a tailwind.config.cjs file, add Tailwind directives to your CSS, and configure Astro to use PostCSS for processing.
Click to reveal answer
intermediate
What is the purpose of the
@tailwind base;, @tailwind components;, and @tailwind utilities; directives?These directives tell Tailwind to inject its base styles, component classes, and utility classes into your CSS file.
Click to reveal answer
intermediate
Why is it important to configure the
content array in tailwind.config.cjs?The <code>content</code> array tells Tailwind which files to scan for class names. This helps Tailwind remove unused styles and keep the CSS file small.Click to reveal answer
beginner
How does Tailwind CSS support responsive design?
Tailwind uses special prefixes like
sm:, md:, lg: to apply styles at different screen sizes, making it easy to build responsive layouts.Click to reveal answer
Which command installs Tailwind CSS in an Astro project?
✗ Incorrect
You install Tailwind CSS along with PostCSS and Autoprefixer as development dependencies using npm.
Where do you add Tailwind's CSS directives in an Astro project?
✗ Incorrect
Tailwind's directives like @tailwind base; are added in a CSS file that is imported globally.
What does the
content field in tailwind.config.cjs specify?✗ Incorrect
The content array lists files where Tailwind looks for class names to include in the final CSS.
Which prefix applies styles for medium screen sizes in Tailwind?
✗ Incorrect
The md: prefix targets medium screen sizes for responsive styling.
Why use Tailwind CSS in Astro projects?
✗ Incorrect
Tailwind helps style components fast using small utility classes without writing custom CSS.
Explain the steps to integrate Tailwind CSS into an Astro project.
Think about installation, configuration, and usage in Astro.
You got /5 concepts.
Describe how Tailwind CSS helps with responsive design in Astro projects.
Focus on how Tailwind classes change with screen sizes.
You got /4 concepts.