143 lines
4.8 KiB
HTML
143 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<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" />
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<title>Typography</title>
|
|
</head>
|
|
<body>
|
|
<!-- Font Family -->
|
|
<div class="font-sans">Tailwind is awesome</div>
|
|
<div class="font-serif">Tailwind is awesome</div>
|
|
<div class="font-mono">Tailwind is awesome</div>
|
|
|
|
<!-- Font Size -->
|
|
<div class="text-xs">extra small</div>
|
|
<div class="text-sm">small medium</div>
|
|
<div class="text-base">base size</div>
|
|
<div class="text-lg">large size</div>
|
|
<div class="text-xl">extra large size</div>
|
|
<div class="text-2xl">2 extra large size</div>
|
|
<div class="text-3xl">3 extra large size</div>
|
|
|
|
<!-- Font Weight -->
|
|
<div class="font-light">font-light</div>
|
|
<div class="font-normal">font-normal</div>
|
|
<div class="font-medium">font-medium</div>
|
|
<div class="font-semibold">font-semibold</div>
|
|
<div class="font-bold">font-bold</div>
|
|
|
|
<!-- Letter Spacing -->
|
|
<div class="tracking-tight">tracking-tight</div>
|
|
<div class="tracking-normal">tracking-normal</div>
|
|
<div class="tracking-tighter">tracking-tighter</div>
|
|
<div class="tracking-wide">tracking-wide</div>
|
|
<div class="tracking-wider">tracking-wider</div>
|
|
<div class="tracking-widest">tracking-widest</div>
|
|
|
|
<!-- Text Alignment -->
|
|
<div class="text-left">text-left</div>
|
|
<div class="text-center">text-center</div>
|
|
<div class="text-right">text-right</div>
|
|
|
|
<!-- Text Decoration -->
|
|
<div class="underline">underline</div>
|
|
|
|
|
|
|
|
<!-- Decoration Style -->
|
|
<div class="underline decoration-4">underline</div>
|
|
<div class="underline decoration-double">underline</div>
|
|
<div class="underline decoration-dotted">underline</div>
|
|
<div class="underline decoration-dashed">underline</div>
|
|
<div class="underline decoration-wavy">underline</div>
|
|
|
|
<!-- Decoration Offset -->
|
|
<div class="underline decoration-4 decoration-red-400 underline-offset-4">underline-offset-4 - Abstand der Linie (1-8)</div>
|
|
|
|
<!-- Text Transform -->
|
|
<div class="normal-case">normal-case</div>
|
|
<div class="uppercase">normal-case</div>
|
|
<div class="lowercase">normal-case</div>
|
|
<div class="capitalize">normal-case</div>
|
|
|
|
|
|
</body>
|
|
</html>
|
|
|
|
<!-- Font Family
|
|
font-sans
|
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", 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;
|
|
|
|
-->
|
|
|
|
<!--
|
|
Font Size
|
|
text-xs font-size: 0.75rem; /* 12px */
|
|
text-sm font-size: 0.875rem; /* 14px */
|
|
text-base font-size: 1rem; /* 16px */
|
|
text-lg font-size: 1.125rem; /* 18px */
|
|
text-xl font-size: 1.25rem; /* 20px */
|
|
text-2xl font-size: 1.5rem; /* 24px */
|
|
text-3xl font-size: 1.875rem; /* 30px */
|
|
text-4xl font-size: 2.25rem; /* 36px */
|
|
text-5xl font-size: 3rem; /* 48px */
|
|
text-6xl font-size: 3.75rem; /* 60px */
|
|
text-7xl font-size: 4.5rem; /* 72px */
|
|
text-8xl font-size: 6rem; /* 96px */
|
|
text-9xl font-size: 8rem; /* 128px */
|
|
-->
|
|
|
|
<!-- Font Weight
|
|
font-thin font-weight: 100;
|
|
font-extralight font-weight: 200;
|
|
font-light font-weight: 300;
|
|
font-normal font-weight: 400;
|
|
font-medium font-weight: 500;
|
|
font-semibold font-weight: 600;
|
|
font-bold font-weight: 700;
|
|
font-extrabold font-weight: 800;
|
|
font-black font-weight: 900;
|
|
-->
|
|
|
|
<!-- Letter Spacing
|
|
tracking-tighter letter-spacing: -0.05em;
|
|
tracking-tight letter-spacing: -0.025em;
|
|
tracking-normal letter-spacing: 0em;
|
|
tracking-wide letter-spacing: 0.025em;
|
|
tracking-wider letter-spacing: 0.05em;
|
|
tracking-widest letter-spacing: 0.1em;
|
|
-->
|
|
|
|
<!-- Text Alignment
|
|
text-left text-align: left;
|
|
text-center text-align: center;
|
|
text-right text-align: right;
|
|
text-justify text-align: justify;
|
|
-->
|
|
|
|
<!-- Text Decoration
|
|
decoration-auto text-decoration-thickness: auto;
|
|
decoration-from-font text-decoration-thickness: from-font;
|
|
decoration-0 text-decoration-thickness: 0px;
|
|
decoration-1 text-decoration-thickness: 1px;
|
|
decoration-2 text-decoration-thickness: 2px;
|
|
decoration-4 text-decoration-thickness: 4px;
|
|
decoration-8 text-decoration-thickness: 8px;
|
|
-->
|
|
|
|
<!-- Text Transform
|
|
uppercase text-transform: uppercase;
|
|
lowercase text-transform: lowercase;
|
|
capitalize text-transform: capitalize;
|
|
normal-case text-transform: none;
|
|
-->
|