- 주어진 값 외에 다른 값을 사용하고 싶을 때에는 arbitrary value를 사용할 수 있습니다!
- 만약 모든 단위에 대해 arbitrary value를 사용하고 싶다면 원하시는 px을 class로 처리할 수 있도록 tailwind.config.js 파일을 커스터마이징 해야합니다.(수정해야 할 변수가 많아 권하지 않습니다.)
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>tailwindcss</title>
<script src="<https://cdn.tailwindcss.com>"></script>
</head>
<body>
<!-- <https://tailwindcss.com/docs/margin> -->
<!-- <https://tailwindcss.com/docs/padding> -->
<!-- <https://tailwindcss.com/docs/font-weight> -->
<!-- <https://tailwindcss.com/docs/text-color> -->
<div class="text-base">hello world</div>
<div class="text-lg">hello world</div>
<div class="text-2xl">hello world</div>
<div class="text-5xl p-3">hello world</div>
<div class="text-5xl pt-3">hello world</div>
<div class="text-5xl">hello world</div>
<br>
<br>
<div class="text-base">hello world</div>
<div class="text-base mt-3 mb-3">hello world</div>
<div class="text-base mt-3">hello world</div>
<br>
<br>
<div class="text-base">hello world</div>
<!-- my-3에서 y는 위, 아래 -->
<!-- mx-3에서 x는 왼쪽, 오른쪽 -->
<div class="text-base my-3">hello world</div>
<div class="text-base">hello world</div>
<!-- <https://tailwindcss.com/docs/list-style-type> -->
<div class="p-5">
<ul class="list-disc">
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
</ul>
</div>
<div class="p-5">
<ul class="list-disc list-inside">
<li>Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolore, dignissimos provident molestiae quo ipsa consectetur nulla repellendus harum? Error architecto corporis, laborum nam molestias modi similique natus dicta suscipit quis.</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
</ul>
</div>
<div class="p-5">
<ul class="list-decimal">
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
<li>hello world</li>
</ul>
</div>
<div class="w-32 h-32 bg-red-400"></div>
<br>
<div class="w-32 h-32 bg-red-400 rounded"></div>
<br>
<div class="w-32 h-32 bg-red-400 rounded-2xl"></div>
<br>
<div class="w-32 h-32 bg-red-400 rounded-full"></div>
<br>
<br>
<!-- rounded-full w24 -->
<!-- <https://tailwindcss.com/docs/border-radius> -->
<!-- <https://tailwindcss.com/docs/border-width> -->
<div class="border-t-4 border-red-400">hello world</div>
<br>
<div class="border-b-4 border-red-400">hello world</div>
<br>
<div class="border-l-4 border-red-400">hello world</div>
<br>
<div class="border-r-4 border-red-400">hello world</div>
<br>
<div class="border-4 border-red-400">hello world</div>
<!-- <https://tailwindcss.com/docs/adding-custom-styles#using-arbitrary-values> -->
<div class="text-[17px]">
hello world
</div>
<div class="mt-[17px]">
hello world
</div>
<div class="bg-[#4267B2] text-white">
facebook
</div>
</body>
</html>