Tailwind CSS 常用功能参考

2023-10-11

因为每次做网站的时候都需要参考 Tailwind CSS,所以将常用的粘贴在这里,以供参考:

字体

字体大小 Font Size

text-base text-lg text-3xl

https://tailwindcss.com/docs/font-size

字体颜色 Text Color

text-red-700

https://tailwindcss.com/docs/text-color

字体对齐 Text Center

text-center text-left

https://tailwindcss.com/docs/text-align

字体加粗 Font Weight

font-bold

https://tailwindcss.com/docs/font-weight

输入框

输入框input去边框

tailwind-input1

focus:outline-none

https://tailwindcss.com/docs/hover-focus-and-other-states