01 tailwindcss
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<h1 class="text-3xl font-bold underline">
Hello world!
</h1>
<h1 class="text-[24px] font-[600] underline">Hello world!</h1>
</body>
</html>
-
기본 단위
- 숫자: 0.25rem. (ex:
w-4(1rem), h-10(2.5rem)
sm, md, lg, xl, 2xl, 3xl: small, middle, large, extra large, 2extra large, 3extra large
t, b, r, l, s, e: top, bottom, right, left, start, end. -(하이픈)이 붙을 때도 있음(ex: rounded-tl).
-
주요 클래스(ChatGPT 응답)
| 범주 | 클래스 | 설명 |
|---|
| 높이 | h-{size} | 높이 설정 (예: h-10, h-full) |
| 너비 | w-{size} | 너비 설정 (예: w-10, w-full) |
| 여백 (Margin) | m-{size} | 모든 방향에 여백 적용 |
| mt-{size}, mb-{size}, ml-{size}, mr-{size} | 각 방향별 여백 설정 |
| 패딩 (Padding) | p-{size} | 모든 방향에 패딩 적용 |
| pt-{size}, pb-{size}, pl-{size}, pr-{size} | 각 방향별 패딩 설정 |
| 테두리 | border | 기본 테두리 설정 |
| border-{color} | 테두리 색상 설정 |
| border-{width} | 테두리 두께 설정 |
| border-t, border-b, border-l, border-r | 특정 방향에 테두리 설정 |
| 테두리 곡률 | rounded, rounded-{size}, rounded-tl, rounded-br | 모서리 둥글게 처리 |
| 배경색 | bg-{color} | 배경색 설정 |
| bg-{color}-{intensity} | 특정 색상과 농도 설정 |
| 배경 투명도 | bg-opacity-{value} | 배경 투명도 설정 (0~100%) |
| 글자 크기 | text-{size} | 텍스트 크기 설정 |
| text-xs, text-sm, text-lg, text-xl 등 | 다양한 텍스트 크기 |
| 글자 색 | text-{color} | 텍스트 색상 설정 |
| 글꼴 | font-{family} | 글꼴 설정 |
| font-bold, font-medium, font-light 등 | 글꼴 두께 설정 |
| 텍스트 장식 | underline, line-through, no-underline | 텍스트 장식 (밑줄, 취소선 등) 설정 |
| 글자 간격 | tracking-tight, tracking-normal, tracking-wide | 글자 간격 설정 |
| 텍스트 높이 | leading-none, leading-tight, leading-loose | 텍스트 줄 간격 설정 |
| 텍스트 정렬 | text-left, text-center, text-right | 텍스트 정렬 설정 |
| 수직 정렬 | align-baseline, align-middle | 요소의 수직 정렬 설정 |
| 컬럼 | columns-{n} | 텍스트나 요소의 열 수 설정 |
| 반응형 | sm:, md:, lg:, xl: | 반응형 클래스 (화면 크기에 따라 적용) |
| 위치 | static, relative, absolute, fixed, sticky | 위치 설정 (정적, 상대적, 절대적, 고정, 고정) |
| 디스플레이 | block, inline, inline-block, hidden, flex, grid, inline-flex, inline-grid | 디스플레이 속성 설정 |
| 플렉스 | flex-row, flex-col | 플렉스 방향 설정 |
| justify-center, justify-between, justify-start, justify-end | 플렉스 아이템의 가로 정렬 설정 |
| items-center, items-start, items-end | 플렉스 아이템의 세로 정렬 설정 |
| 플렉스 래핑 | flex-wrap, flex-nowrap | 플렉스 아이템의 래핑 설정 |
| 순서 | order-{number} | 요소의 표시 순서 설정 (기본 0) |
| 숨김/보이기 | visible, invisible | 요소 보이기/숨기기 설정 |
| 그리드 | grid-cols-{n} | 그리드 열 개수 설정 |
| gap-{size} | 그리드 및 플렉스 항목 간 간격 설정 |
| 그리드 아이템 | col-span-{n}, row-span-{n} | 그리드 아이템의 열/행 병합 설정 |
| 오버플로우 | overflow-auto, overflow-hidden, overflow-scroll | 오버플로우 설정 |
| 반전 효과 | invert | 이미지 반전 효과 |
| 그라데이션 | bg-gradient-to-r, bg-gradient-to-t | 그라데이션 배경 설정 |
| 박스 그림자 | shadow, shadow-md, shadow-lg, shadow-xl | 박스 그림자 효과 설정 |
01-01 width, height, margin, padding
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://cdn.tailwindcss.com"></script>
<style>
div {
border: 1px solid gray;
}
</style>
</head>
<body>
<div class="w-10 h-10 m-10 p-10"></div>
<div class="w-[100px] h-[100px] m-[100px] p-[100px]"></div>
<div class="w-full max-w-[1000px] min-h-20 m-px p-0"></div>
</body>
</html>
- width & margin:
w-[], h-[]
| Class | Properties |
|---|
w-0 | width: 0px; |
w-px | width: 1px; |
w-auto | width: auto; |
w-full | width: 100%; |
w-screen | width: 100vw; |
w-svw | width: 100svw; |
w-lvw | width: 100lvw; |
w-dvw | width: 100dvw; |
w-min | width: min-content; |
w-max | width: max-content; |
w-fit | width: fit-content; |
※ 참고
https://tailwindcss.com/docs/width
https://tailwindcss.com/docs/height
- min & max:
min-w-[], max-h-[]
| Class | Properties |
|---|
min-w-0 | min-width: 0px; |
min-w-px | min-width: 1px; |
min-w-full | min-width: 100%; |
min-w-min | min-width: min-content; |
min-w-max | min-width: max-content; |
min-w-fit | min-width: fit-content; |
※ 참고
https://tailwindcss.com/docs/min-width
https://tailwindcss.com/docs/max-width
https://tailwindcss.com/docs/min-height
https://tailwindcss.com/docs/max-height
| Class | Properties |
|---|
m-0 | margin: 0px; |
m-px | margin: 1px; |
m-auto | margin: auto; |
mx-auto | margin-left: auto; margin-right: auto; |
my-auto | margin-top: auto; margin-bottom: auto; |
ms-auto | margin-inline-start: auto; |
me-auto | margin-inline-end: auto; |
mt-auto | margin-top: auto; |
mr-auto | margin-right: auto; |
mb-auto | margin-bottom: auto; |
ml-auto | margin-left: auto; |
※ 참고: https://tailwindcss.com/docs/margin
| Class | Properties |
|---|
p-0 | padding: 0px; |
p-px | padding: 1px; |
px-0 | padding-left: 0px; padding-right: 0px; |
py-0 | padding-top: 0px; padding-bottom: 0px; |
※ 참고: https://tailwindcss.com/docs/padding
01-02 border(width, style, color, radius)
| Class | Properties |
|---|
border-0 | border-width: 0px; |
border | border-width: 1px; |
border-x | border-left-width: 1px; border-right-width: 1px; |
border-y | border-top-width: 1px; border-bottom-width: 1px; |
border-s | border-inline-start-width: 1px; |
border-e | border-inline-end-width: 1px; |
border-t | border-top-width: 1px; |
border-r | border-right-width: 1px; |
border-b | border-bottom-width: 1px; |
border-l | border-left-width: 1px; |
※ 참고: https://tailwindcss.com/docs/border-width
| Class | Properties |
|---|
border-solid | border-style: solid; |
border-dashed | border-style: dashed; |
border-dotted | border-style: dotted; |
border-double | border-style: double; |
border-hidden | border-style: hidden; |
border-none | border-style: none; |
※ 참고: https://tailwindcss.com/docs/border-style
- border color:
border-[color]-[opacity] (opacity는 50, 100~900(100단위), 950 존재)
| Class | Properties |
|---|
border-inherit | border-color: inherit; |
border-current | border-color: currentColor; |
border-transparent | border-color: transparent; |
border-black | border-color: rgb(0 0 0 / var(--tw-border-opacity, 1)); |
border-white | border-color: rgb(255 255 255 / var(--tw-border-opacity, 1)); |
border-[color]-50 | border-color: rgb([] [] [] / var(--tw-border-opacity, 1)); |
border-[color]-[n00] | border-color: rgb([] [] [] / var(--tw-border-opacity, 1)); |
border-[color]-950 | border-color: rgb([] [] [] / var(--tw-border-opacity, 1)); |
※ 참고: https://tailwindcss.com/docs/border-color
- border radius:
rounded-[]
| Class | Properties |
|---|
rounded-none | border-radius: 0px; |
rounded | border-radius: 0.25rem; /* 4px */ |
rounded-sm | border-radius: 0.125rem; /* 2px */ |
rounded-full | border-radius: 9999px; |
rounded-s | border-start-start-radius: 0.25rem; /* 4px */ border-end-start-radius: 0.25rem; /* 4px */ |
rounded-ee | border-end-end-radius: 0.25rem; /* 4px */ |
※ 참고: https://tailwindcss.com/docs/border-radius
01-03 background(color, opacity, image, repeat, position)
- background-color:
bg-[color]-[opacity]
| Class | Properties |
|---|
bg-inherit | background-color: inherit; |
bg-current | background-color: currentColor; |
bg-transparent | background-color: transparent; |
bg-black | background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1)); |
bg-white | background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1)); |
bg-[color]-50 | background-color: rgb([] [] [] / var(--tw-bg-opacity, 1)); |
bg-[color]-[n00] | background-color: rgb([] [] [] / var(--tw-border-opacity, 1)); |
bg-[color]-950 | background-color: rgb([] [] [] / var(--tw-border-opacity, 1)); |
※ 참고: https://tailwindcss.com/docs/background-color
- background-opacity: color 클래스 뒤에 /[숫자]. 0 ~ 100
- ex)
bg-sky-500/100, bg-sky-500/50, bg-sky-500/[0.6]
※ 참고: https://tailwindcss.com/docs/background-color#changing-the-opacity
- background-image:
bg-gradient-to-[]
| Class | Properties |
|---|
bg-none | background-image: none; |
bg-gradient-to-t | background-image: linear-gradient(to top, var(--tw-gradient-stops)); |
bg-gradient-to-tr | background-image: linear-gradient(to top right, var(--tw-gradient-stops)); |
bg-gradient-to-r | background-image: linear-gradient(to right, var(--tw-gradient-stops)); |
bg-gradient-to-br | background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); |
bg-gradient-to-b | background-image: linear-gradient(to bottom, var(--tw-gradient-stops)); |
bg-gradient-to-bl | background-image: linear-gradient(to bottom left, var(--tw-gradient-stops)); |
bg-gradient-to-l | background-image: linear-gradient(to left, var(--tw-gradient-stops)); |
bg-gradient-to-tl | background-image: linear-gradient(to top left, var(--tw-gradient-stops)); |
※ 참고: https://tailwindcss.com/docs/background-image
- background repeat:
bg-repeat-[]
| Class | Properties |
|---|
bg-repeat | background-repeat: repeat; |
bg-no-repeat | background-repeat: no-repeat; |
bg-repeat-x | background-repeat: repeat-x; |
bg-repeat-y | background-repeat: repeat-y; |
bg-repeat-round | background-repeat: round; |
bg-repeat-space | background-repeat: space; |
※ 참고: https://tailwindcss.com/docs/background-repeat
- background position:
bg-[position]
| Class | Properties |
|---|
bg-bottom | background-position: bottom; |
bg-center | background-position: center; |
bg-left | background-position: left; |
bg-left-bottom | background-position: left bottom; |
bg-left-top | background-position: left top; |
bg-right | background-position: right; |
bg-right-bottom | background-position: right bottom; |
bg-right-top | background-position: right top; |
bg-top | background-position: top; |
※ 참고: https://tailwindcss.com/docs/background-position
01-04 Typography(size, color, weight, line height, align, family)
| Class | font-size | line-height |
|---|
| text-xs | 0.75rem; / 12px / | 1rem; / 16px / |
| text-sm | 0.875rem; / 14px / | 1.25rem; / 20px / |
| text-base | 1rem; / 16px / | 1.5rem; / 24px / |
| text-lg | 1.125rem; / 18px / | 1.75rem; / 28px / |
| text-xl | 1.25rem; / 20px / | 1.75rem; / 28px / |
| text-9xl | 8rem; / 128px / | 1; |
※ 참고: https://tailwindcss.com/docs/font-size
- font color:
text-[color]-[opacity]
| Class | Properties |
|---|
| text-inherit | color: inherit; |
| text-current | color: currentColor; |
| text-transparent | color: transparent; |
| text-[color]-[opacity] | color: rgb([] [] [] / var(--tw-text-opacity, 1)); |
※ 참고: https://tailwindcss.com/docs/text-color
| Class | Properties |
|---|
| font-thin | 100 |
| font-extralight | 200 |
| font-light | 300 |
| font-normal | 400 |
| font-medium | 500 |
| font-semibold | 600 |
| font-bold | 700 |
| font-extrabold | 800 |
| font-black | 900 |
※ 참고: https://tailwindcss.com/docs/font-weight
| Class | Properties |
|---|
| leading-3 | 0.75rem; / 12px / |
| leading-10 | 2.5rem; / 40px / |
| leading-none | 1; |
| leading-tight | 1.25; |
| leading-snug | 1.375; |
| leading-normal | 1.5; |
| leading-relaxed | 1.625; |
| leading-loose | 2; |
※ 참고: https://tailwindcss.com/docs/line-height
| Class | Properties |
|---|
| text-left | left; |
| text-center | center; |
| text-right | right; |
| text-justify | justify; |
| text-start | start; |
| text-end | end; |
※ 참고: https://tailwindcss.com/docs/text-align
| Class | Properties |
|---|
| align-baseline | baseline; |
| align-top | top; |
| align-middle | middle; |
| align-bottom | bottom; |
| align-text-top | text-top; |
| align-text-bottom | text-bottom; |
| align-sub | sub; |
| align-super | super; |
※ 참고: https://tailwindcss.com/docs/vertical-align
| Class | Properties |
|---|
| font-sans | font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; |
| font-serif | font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; |
| font-mono | font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; |
※ 참고: https://tailwindcss.com/docs/font-family
01-06 Pseudo Class & Pseudo Element
| Class | 예시 코드 |
|---|
hover | hover:bg-blue-500 |
focus | focus:ring-2 focus:ring-blue-500 |
active | active:bg-blue-700 |
visited | visited:text-purple-500 |
first-child | first-child:text-red-500 |
last-child | last-child:text-green-500 |
nth-child | nth-child(2):text-blue-500 |
even | even:bg-gray-100 |
odd | odd:bg-gray-200 |
disabled | disabled:bg-gray-300 |
checked | checked:bg-green-500 |
focus-visible | focus-visible:outline-none |
group-hover | group hover:bg-gray-200 group-hover:text-red-500 |
group-focus | group focus:bg-blue-500 group-focus:text-white |
before | before:content-['Hello'] before:text-lg |
after | after:content-['!'] after:text-xl |
first-letter | first-letter:text-4xl |
first-line | first-line:font-bold |
placeholder | placeholder:text-gray-400 |
selection | selection:bg-yellow-300 |
backdrop | backdrop:bg-black backdrop:bg-opacity-50 |
※ 참고: https://tailwindcss.com/docs/hover-focus-and-other-states#appendix
01-06 반응형
| Breakpoint prefix | Minimum width | CSS |
|---|
| sm | 640px | @media (min-width: 640px) { ... } |
| md | 768px | @media (min-width: 768px) { ... } |
| lg | 1024px | @media (min-width: 1024px) { ... } |
| xl | 1280px | @media (min-width: 1280px) { ... } |
| 2xl | 1536px | @media (min-width: 1536px) { ... } |
※ 참고: https://tailwindcss.com/docs/responsive-design
| Breakpoint prefix | Maximum width | CSS |
|---|
| max-sm | 639px | @media not all and (min-width: 640px) { ... } |
| max-md | 767px | @media not all and (min-width: 768px) { ... } |
| max-lg | 1023px | @media not all and (min-width: 1024px) { ... } |
| max-xl | 1279px | @media not all and (min-width: 1280px) { ... } |
| max-2xl | 1535px | @media not all and (min-width: 1536px) { ... } |
※ 참고: https://tailwindcss.com/docs/responsive-design#targeting-a-breakpoint-range
- 임의값:
min-[], max-[]
- ex)
<div class="min-[320px]:text-center max-[600px]:bg-sky-300">
※ 참고: https://tailwindcss.com/docs/responsive-design#arbitrary-values
01-07 display
| Class | Properties |
|---|
| block | display: block; |
| inline-block | display: inline-block; |
| inline | display: inline; |
| flex | display: flex; |
| inline-flex | display: inline-flex; |
| table | display: table; |
| inline-table | display: inline-table; |
| table-caption | display: table-caption; |
| table-cell | display: table-cell; |
| table-column | display: table-column; |
| table-column-group | display: table-column-group; |
| table-footer-group | display: table-footer-group; |
| table-header-group | display: table-header-group; |
| table-row-group | display: table-row-group; |
| table-row | display: table-row; |
| flow-root | display: flow-root; |
| grid | display: grid; |
| inline-grid | display: inline-grid; |
| contents | display: contents; |
| list-item | display: list-item; |
| hidden | display: none; |
※ 참고: https://tailwindcss.com/docs/display
01-08 flex
| Class | Properties |
|---|
| flex | display: flex; |
| flex-1 | flex: 1 1 0%; |
| flex-auto | flex: 1 1 auto; |
| flex-initial | flex: 0 1 auto; |
| flex-none | flex: none; |
※ 참고: https://tailwindcss.com/docs/flex
| Class | Properties |
|---|
| basis-0 | flex-basis: 0px; |
| basis-1 | flex-basis: 0.25rem; / 4px / |
| basis-2 | flex-basis: 0.5rem; / 8px / |
| basis-3 | flex-basis: 0.75rem; / 12px / |
| basis-4 | flex-basis: 1rem; / 16px / |
| basis-5 | flex-basis: 1.25rem; / 20px / |
| basis-6 | flex-basis: 1.5rem; / 24px / |
| basis-7 | flex-basis: 1.75rem; / 28px / |
※ 참고: https://tailwindcss.com/docs/flex-basis
| Class | Properties |
|---|
| flex-wrap | flex-wrap: wrap; |
| flex-wrap-reverse | flex-wrap: wrap-reverse; |
| flex-nowrap | flex-wrap: nowrap; |
※ 참고: https://tailwindcss.com/docs/flex-wrap
| Class | Properties |
|---|
| flex-row | flex-direction: row; |
| flex-row-reverse | flex-direction: row-reverse; |
| flex-col | flex-direction: column; |
| flex-col-reverse | flex-direction: column-reverse; |
※ 참고: https://tailwindcss.com/docs/flex-direction
| Class | Properties |
|---|
| grow | flex-grow: 1; |
| grow-0 | flex-grow: 0; |
| shrink | flex-shrink: 1; |
| shrink-0 | flex-shrink: 0; |
※ 참고
https://tailwindcss.com/docs/flex-grow
https://tailwindcss.com/docs/flex-shrink
- justify-content, justify-items:
justify-[]
| Class | Properties |
|---|
| justify-normal | justify-content: normal; |
| justify-start | justify-content: flex-start; |
| justify-end | justify-content: flex-end; |
| justify-center | justify-content: center; |
| justify-between | justify-content: space-between; |
| justify-around | justify-content: space-around; |
| justify-evenly | justify-content: space-evenly; |
| justify-stretch | justify-content: stretch; |
| ------------------------ | ------------------------- |
| justify-items-start | justify-items: start; |
| justify-items-end | justify-items: end; |
| justify-items-center | justify-items: center; |
| justify-items-stretch | justify-items: stretch; |
※ 참고
https://tailwindcss.com/docs/justify-content
https://tailwindcss.com/docs/justify-items
- align-content, align-items, align-self:
content-[], items-[], self-[]
| Class | Properties |
|---|
| content-normal | align-content: normal; |
| content-center | align-content: center; |
| content-start | align-content: flex-start; |
| content-end | align-content: flex-end; |
| content-between | align-content: space-between; |
| content-around | align-content: space-around; |
| content-evenly | align-content: space-evenly; |
| content-baseline | align-content: baseline; |
| content-stretch | align-content: stretch; |
| ----------------------- | ----------------------- |
| items-start | align-items: flex-start; |
| items-end | align-items: flex-end; |
| items-center | align-items: center; |
| items-baseline | align-items: baseline; |
| items-stretch | align-items: stretch; |
| ----------------------- | ----------------------- |
| self-auto | align-self: auto; |
| self-start | align-self: flex-start; |
| self-end | align-self: flex-end; |
| self-center | align-self: center; |
| self-stretch | align-self: stretch; |
| self-baseline | align-self: baseline; |
※ 참고
https://tailwindcss.com/docs/align-content
https://tailwindcss.com/docs/align-items
| Class | Properties |
|---|
| order-none | order: 0; |
| order-1 | order: 1; |
| order-12 | order: 12; |
| order-first | order: -9999; |
| order-last | order: 9999; |
※ 참고: https://tailwindcss.com/docs/order
01-09 grid
- grid-auto-flow:
grid-flow-[]
| Class | Properties |
|---|
| grid-flow-row | grid-auto-flow: row; |
| grid-flow-col | grid-auto-flow: column; |
| grid-flow-dense | grid-auto-flow: dense; |
| grid-flow-row-dense | grid-auto-flow: row dense; |
| grid-flow-col-dense | grid-auto-flow: column dense; |
※ 참고: https://tailwindcss.com/docs/grid-auto-flow
- grid columns:
auto-cols-[], col-span-[], grid-cols-[]
| Class | Properties |
|---|
| auto-cols-auto | grid-auto-columns: auto; |
| auto-cols-min | grid-auto-columns: min-content; |
| auto-cols-max | grid-auto-columns: max-content; |
| auto-cols-fr | grid-auto-columns: minmax(0, 1fr); |
| ------------------------- | --------------------------------------------------- |
| col-auto | grid-column: auto; |
| col-span-1 | grid-column: span 1 / span 1; |
| col-span-7 | grid-column: span 7 / span 7; |
| ------------------------- | --------------------------------------------------- |
| grid-cols-1 | grid-template-columns: repeat(1, minmax(0, 1fr)); |
| grid-cols-8 | grid-template-columns: repeat(8, minmax(0, 1fr)); |
※ 참고
https://tailwindcss.com/docs/grid-auto-columns
https://tailwindcss.com/docs/grid-column
https://tailwindcss.com/docs/grid-template-columns
- grid rows:
auto-rows-[], grid-rows-[], row-span-[]
| Class | Properties |
|---|
| auto-rows-auto | grid-auto-rows: auto; |
| auto-rows-min | grid-auto-rows: min-content; |
| auto-rows-max | grid-auto-rows: max-content; |
| auto-rows-fr | grid-auto-rows: minmax(0, 1fr); |
| ------------------------- | ------------------------------------------------------- |
| row-auto | grid-row: auto; |
| row-span-1 | grid-row: span 1 / span 1; |
| row-span-7 | grid-row: span 7 / span 7; |
| ------------------------- | ------------------------------------------------------- |
| grid-rows-1 | grid-template-rows: repeat(1, minmax(0, 1fr)); |
| grid-rows-8 | grid-template-rows: repeat(8, minmax(0, 1fr)); |
※ 참고
https://tailwindcss.com/docs/grid-auto-rows
https://tailwindcss.com/docs/grid-row
https://tailwindcss.com/docs/grid-template-rows
| Class | Properties |
|---|
| gap-0 | gap: 0px; |
| gap-x-0 | column-gap: 0px; |
| gap-y-0 | row-gap: 0px; |
| gap-px | gap: 1px; |
| gap-0.5 | gap: 0.125rem; / 2px / |
| gap-96 | gap: 24rem; / 384px / |
※ 참고: https://tailwindcss.com/docs/gap
02 daisyUI
<!DOCTYPE html>
<html lang="ko" data-theme="cupcake">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
href="https://cdn.jsdelivr.net/npm/daisyui@4.12.23/dist/full.min.css"
rel="stylesheet"
type="text/css"
/>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<button type="button" class="btn">Button</button>
<button type="button" class="btn bg-cyan-300 w-[50dvh]">Button</button>
</body>
</html>
※ daisyUI는 정리하면서 공부하는 것보다 docs로 Preview를 보면서 하는 것이 공부에 더 도움되어 따로 정리하지 않음.
03 bootstrap
- 강의에서 정확히 소개만 하고 넘어가 추후 정리 예정
출처
한국경제신문 K-Digital Training - toss bank
tailwindcss: tailwindcss docs
daisyUI: daisyUI docs
bootstrap: bootstrap docs