[Tailwind CSS] 신기한 CSS 프레임워크

심지혜·2023년 9월 20일
0

React

목록 보기
8/8

TailwindCSS

추가적인 CSS 코드 작성없이 단순히 HTML 요소의 class 속성에 설정해주는 것만으로도 스타일링이 가능한 CSS 프레임워크

사용법

Background color

.bg-{color}-{shade}
colorsshade
black, white
gray, red, orange, yellow, green, teal, indigo, blue, purple, pink100 ~ 900

Text

Styling Text-Font

.font-{family}
Families
sans, serif, mono

Styling Text-Size

.text-{size}
SizesremPixels
xs0.75 rem12px
sm0.875 rem14px
base1 rem16px
lg1.125 rem18px
xl1.25 rem20px
2xl1.5 rem24px
3xl1.875 rem30px
4xl2.25 rem36px
5xl3 rem48px
6xl4 rem64px

Styling Text-Align

.text-{align}
Aligments
left, center, right, justify

Styling Text-Color

ColorsShades
black, white
gray, red, orange, yellow, green, teal, indigo, blue, purple, pink100 - 900

Styling Text-Italics

.italic
.not-italic

Styling Text-Font Weight

.font-{weight}
Weights
thin, extra, light, lightnormal, medium, semibold, bold, extrabold, black

Styling Text-Letter Spacing

.tracking-{spacing}
Spacings
tighter, tight, normal,wide, wider, widest

Styling Text-Decorations

.underline
.overline
.no-underine
.line-through

Styling Text-Transform

.uppercase
.lowercase
.capitalize
.normal-case

0개의 댓글