Tailwind CSS
用工具类快速编写样式。
Tailwind CSS lets you style a page without leaving your HTML. Small classes such as p-4, flex and text-lg each do one job, and together they build any design. The same markup can lay out left-to-right English and right-to-left Persian.
This track starts from basic HTML and CSS. You will set Tailwind up, learn its scales for spacing, colour and type, build layouts with flex and grid, make them responsive and interactive, lay them out right to left with logical utilities, and add your own design tokens. Then you go one level up with container queries, motion and state variants, and finish by building a bilingual dashboard. Every class you meet is a real Tailwind CSS 4 class, and you will see the CSS behind it.
- 课时
- 14
- 时长
- 2 小时
- 级别
- 初级
本课程的内容目前为英文。
- 铜牌 可挑战
- 银牌 可挑战
- 金牌 未解锁
准备好证明自己了吗?
三场考试正等着你:铜牌、银牌和金牌。
学完后你将能够
- Set up Tailwind CSS 4 in a project with one CSS import
- Style any element with spacing, colour, type, border and shadow utilities
- Build layouts with flex and grid utilities
- Make interfaces responsive and interactive with
md:,hover:,focus-visible:anddark: - Lay out Persian and English from the same markup with logical utilities
- Add your own design tokens with
@themeand keep markup tidy with components
学习旅程
1 第 1 单元Utility first
The utility-first idea, the setup, the scales for spacing, colour and type, and layout with flex and grid.
0 / 52 第 2 单元Real interfaces
Responsive layouts, hover and focus states, dark mode, right to left with logical utilities, and your own tokens.
0 / 53 第 3 单元Next level
Container queries, motion, styling from data and ARIA state, and a bilingual dashboard project.
0 / 4