Зміст курсу
Next.js 14
Next.js 14
Tailwind Styling
Tailwind CSS is a CSS framework that offers a collection of low-level utility classes. These classes can be added directly to your markup to create designs without writing CSS code from scratch. The key idea behind Tailwind is that by simply adding the appropriate set of classes, you can apply the required styles to your elements.
For example:
The button element will have a green background with white text. It will also have padding and rounded corners.
Back to the Project
Let's add one more element to our app with Tailwind styling. Copy the div
element below and paste it above the p
element in the app/page.tsx
file.
After making the changes, save them and check the live page. You should now see a white circular shape.
In Practice
Дякуємо за ваш відгук!