1<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
1<link href="https://unpkg.com/tailwindcss@2.2.4/dist/tailwind.min.css" rel="stylesheet">
1Tailwind is designed to be component friendly. It is so much easier
2to separate a site's elements into smaller components and not pollute
3the codebase with objects or extraneous CSS classes. Furthermore,
4every class is inlined in the component, making it much easier to read and
5understand.
1123456789101112131415161718<div class="grid grid-flow-col grid-rows-2 grid-cols-3 gap-4">
2 <div>
3 1
4 </div>
5 <div class="col-start-3">
6 2
7 </div>
8 <div>
9 3
10 </div>
11 <div>
12 4
13 </div>
14 <div class="row-start-1 col-start-2 col-span-2">
15 5
16 </div>
17 <div> 6 </div>
18</div>
19
20
11
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
2121
22<figure class="md:flex bg-gray-100 rounded-xl p-8 md:p-0">
23 <img class="w-32 h-32 md:w-48 md:h-auto md:rounded-none rounded-full mx-auto" src="/sarah-dayan.jpg" alt="" width="384" height="512">
24 <div class="pt-6 md:p-8 text-center md:text-left space-y-4">
25 <blockquote>
26 <p class="text-lg font-semibold">
27 “Tailwind CSS is the only framework that I've seen scale
28 on large teams. It’s easy to customize, adapts to any design,
29 and the build size is tiny.”
30 </p>
31 </blockquote>
32 <figcaption class="font-medium">
33 <div class="text-cyan-600">
34 Sarah Dayan
35 </div>
36 <div class="text-gray-500">
37 Staff Engineer, Algolia
38 </div>
39 </figcaption>
40 </div>
41</figure>
42
1<figure class="bg-gray-100 rounded-xl p-8">
2 <img class="w-32 h-32 rounded-full mx-auto" src="https://post.medicalnewstoday.com/wp-content/uploads/sites/3/2020/02/322868_1100-800x825.jpg" alt="" width="384" height="512">
3 <div class="pt-6 text-center space-y-4">
4 <blockquote>
5 <p class="text-lg font-semibold">
6 “Tailwind CSS is the only framework that I've seen scale
7 on large teams. It’s easy to customize, adapts to any design,
8 and the build size is tiny.”
9 </p>
10 </blockquote>
11 <figcaption class="font-medium">
12 <div class="text-cyan-600">
13 Sarah Dayan
14 </div>
15 <div class="text-gray-500">
16 Staff Engineer, Algolia
17 </div>
18 </figcaption>
19 </div>
20</figure>
21
22
11
22
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
2121
22<figure class="md:flex bg-gray-100 rounded-xl p-8 md:p-0">
23 <img class="w-32 h-32 md:w-48 md:h-auto md:rounded-none rounded-full mx-auto" src="/sarah-dayan.jpg" alt="" width="384" height="512">
24 <div class="pt-6 md:p-8 text-center md:text-left space-y-4">
25 <blockquote>
26 <p class="text-lg font-semibold">
27 “Tailwind CSS is the only framework that I've seen scale
28 on large teams. It’s easy to customize, adapts to any design,
29 and the build size is tiny.”
30 </p>
31 </blockquote>
32 <figcaption class="font-medium">
33 <div class="text-cyan-600">
34 Sarah Dayan
35 </div>
36 <div class="text-gray-500">
37 Staff Engineer, Algolia
38 </div>
39 </figcaption>
40 </div>
41</figure>
42