.border-{thickness}
Thicknesses | Pixel |
---|---|
0 EMPTY 2 4 8 | 0px 1px 2px 4px 8px |
.border-{side}-{thickness}
Sides ( 특정 방향 ) | Thicknesses | Pixel |
---|---|---|
t, b, l, r | 0 EMPTY 2 4 8 | 0px 1px 2px 4px 8px |
.border-{color}-{shade}
Colors | Shades |
---|---|
black, white | |
gray, red, orange, yellow, green, teal, indigo, blue, purple, pink... | 100 - 900 |
.border-{style}
Styles | |
---|---|
solid dashed dotted double hidden none | border-style: solid; border-style: dashed; border-style: dotted; border-style: double; border-style: hidden; border-style: none; |
.rounded-{radius}
Radiuses | rems | Pixes |
---|---|---|
sm Empty md lg xl~3xl full none | 0.125 rem 0.25 rem 0.375 rem 0.5 rem 0.75 ~ 1.5 rem- - 0 | 2px 4px 6px 8px 12px~16px 9999px 0px |
.rounded-{side}-{radius}
Sides | Pixel |
---|---|
t r b l tl tr br bl | top-left & top-right top-right & bottom-right bottom-left & bottom-right top-left & bottom-left top-left top-right bottom-right bottom-left |
<!DOCTYPE html>
<html lang="en">
<body>
<div class="w-16 h-16 border-r-8 border-blue-700"></div>
<div class="w-16 h-16 border-8 border-blue-700 border-dotted"></div>
<div class="w-16 h-16 border-4 border-blue-700 rounded-md"></div>
<div class="w-16 h-16 border-4 border-blue-700 rounded-full"></div>
<div class="w-16 h-16 border-4 border-blue-700 rounded-tl-full"></div>
</body>
</html>
.{display}
Display Modes | |
---|---|
block inline inline-block flex gride inline-flex table table-row table-cell hidden |
<!DOCTYPE html>
<html lang="en">
<body>
<div>
Hello
<div class="inline-block">world!</div>
</div>
<div>
Hello
<div class="hidden">world!</div>
</div>
</body>
</html>
.flex
.justify-{alignment}
Alignments | |
---|---|
start center end between around evenly | Default |
.justify-items-{alignment}
Alignments | |
---|---|
stretch start center end<br / | Default - fill container |
.flex-{direction}
Directions | |
---|---|
row row-reverse col col-reverse | Default |
.flex-{wrap}
Wrap Modes | |
---|---|
no-wrap wrap wrap-reverse | Default |
<!DOCTYPE html>
<html lang="en">
<body>
<div class="flex justify-center">
<div class="bg-red-500 w-16 h-16">1</div>
<div class="bg-blue-500 w-16 h-16">2</div>
<div class="bg-green-500 w-16 h-16">3</div>
</div>
<br />
<div class="flex flex-col">
<div class="bg-red-500 w-16 h-16">1</div>
<div class="bg-blue-500 w-16 h-16">2</div>
<div class="bg-green-500 w-16 h-16">3</div>
</div>
<br />
<div class="h-60 flex flex-wrap">
<div class="bg-green-180 w-1/3 h-1/3">A</div>
<div class="bg-green-200 w-1/3 h-1/3">B</div>
<div class="bg-green-300 w-1/3 h-1/3">C</div>
<div class="bg-green-400 w-1/3 h-1/3">D</div>
<div class="bg-green-500 w-1/3 h-1/3">E</div>
<div class="bg-green-600 w-1/3 h-1/3">F</div>
<div class="bg-green-700 w-1/3 h-1/3">G</div>
<div class="bg-green-800 w-1/3 h-1/3">H</div>
<div class="bg-green-900 w-1/3 h-1/3">I</div>
</div>
</body>
</html>