Complete the code to import Tailwind CSS styles in a Next.js app.
import '[1]/globals.css';
In Next.js, global styles including Tailwind CSS are usually imported from the styles folder.
Complete the code to add Tailwind directives in the CSS file.
@tailwind base;
@tailwind components;
@tailwind [1];The @tailwind utilities; directive adds Tailwind's utility classes to your CSS.
Fix the error in the Tailwind config export statement.
export default [1] content: ['./app/**/*.{js,ts,jsx,tsx}'], theme: { extend: {} } }
The export default statement must be followed by an object literal starting with {.
Fill both blanks to configure Tailwind to scan the correct folders.
content: ['./[1]/**/*.{js,ts,jsx,tsx}', './[2]/**/*.{js,ts,jsx,tsx}']
Tailwind scans both the app and pages folders for class names in Next.js projects.
Fill all three blanks to add Tailwind classes to a Next.js component.
export default function Button() {
return <button className="[1] [2] [3]">Click me</button>;
}These classes add a blue background, white text, and padding to the button.
