Tailwind CSS Style Guide
Visual Reference & Cheat Sheet
An open-source Tailwind CSS reference by Winkelstraat.nl — powering designer fashion e-commerce with modern web technology. Built by the engineering team at Winkelstraat.nl using Tailwind CSS and Vue.js to deliver a fast, accessible shopping experience for luxury fashion.
Every example on this page is styled exclusively with Tailwind utility classes.
Typography
Font sizes, weights, line heights, and letter spacing utilities.
Font Sizes
text-xsThe quick brown fox (0.75rem)text-smThe quick brown fox (0.875rem)text-baseThe quick brown fox (1rem)text-lgThe quick brown fox (1.125rem)text-xlThe quick brown fox (1.25rem)text-2xlThe quick brown fox (1.5rem)text-3xlThe quick brown fox (1.875rem)text-4xlThe quick brown fox (2.25rem)text-5xlThe quick brown fox (3rem)text-6xlThe quick brown fox (3.75rem)Font Weights
font-thinAa Bb Cc (100)font-extralightAa Bb Cc (200)font-lightAa Bb Cc (300)font-normalAa Bb Cc (400)font-mediumAa Bb Cc (500)font-semiboldAa Bb Cc (600)font-boldAa Bb Cc (700)font-extraboldAa Bb Cc (800)font-blackAa Bb Cc (900)Line Heights
leading-none
Line height 1. Text sits tightly together with no extra space between lines at all.
leading-tight
Line height 1.25. Text sits fairly tightly together with minimal space between lines.
leading-normal
Line height 1.5. The default line height providing comfortable reading spacing.
leading-relaxed
Line height 1.625. A bit more generous spacing, great for body text and long reads.
leading-loose
Line height 2. Very spacious, works well for large type or special layouts.
Letter Spacing
tracking-tighterLetter spacing -0.05emtracking-tightLetter spacing -0.025emtracking-normalLetter spacing 0emtracking-wideLetter spacing 0.025emtracking-widerLetter spacing 0.05emtracking-widestLetter spacing 0.1emColors
Tailwind's default color palette. Each swatch shows the class name and hex value.
Slate
50
#f8fafc
100
#f1f5f9
200
#e2e8f0
300
#cbd5e1
400
#94a3b8
500
#64748b
600
#475569
700
#334155
800
#1e293b
900
#0f172a
950
#020617
Gray
50
#f9fafb
100
#f3f4f6
200
#e5e7eb
300
#d1d5db
400
#9ca3af
500
#6b7280
600
#4b5563
700
#374151
800
#1f2937
900
#111827
950
#030712
Red
50
#fef2f2
100
#fee2e2
200
#fecaca
300
#fca5a5
400
#f87171
500
#ef4444
600
#dc2626
700
#b91c1c
800
#991b1b
900
#7f1d1d
950
#450a0a
Orange
50
100
200
300
400
500
600
700
800
900
950
Yellow
50
100
200
300
400
500
600
700
800
900
950
Green
50
100
200
300
400
500
600
700
800
900
950
Teal
50
100
200
300
400
500
600
700
800
900
950
Blue
50
#eff6ff
100
#dbeafe
200
#bfdbfe
300
#93c5fd
400
#60a5fa
500
#3b82f6
600
#2563eb
700
#1d4ed8
800
#1e40af
900
#1e3a8a
950
#172554
Indigo
50
100
200
300
400
500
600
700
800
900
950
Purple
50
100
200
300
400
500
600
700
800
900
950
Pink
50
100
200
300
400
500
600
700
800
900
950
Usage: bg-{color}-{shade} · text-{color}-{shade} · border-{color}-{shade}
Spacing
Padding and margin utilities. The colored area shows the content; the outer border shows the total space consumed.
Padding Scale
p-0p-1p-2p-3p-4p-5p-6p-8p-10p-12Margin Scale
m-0m-2m-4m-8Directional: pt- pr- pb- pl- px- py- · Same for m
Flexbox & Grid
Common layout patterns using flex and grid utilities.
Flex: Center
flex items-center justify-centerFlex: Space Between
flex items-center justify-betweenFlex: Wrap
flex flex-wrap gap-3Flex: Column
flex flex-col gap-2Grid: 2 Columns
grid grid-cols-2 gap-3Grid: 3 Columns
grid grid-cols-3 gap-3Grid: 4 Columns (Responsive)
grid grid-cols-2 md:grid-cols-4 gap-3Borders & Rounded
Border widths and border-radius utilities.
Border Width
border-0borderborder-2border-4border-8Border Radius
rounded-none0px
rounded-sm2px
rounded4px
rounded-md6px
rounded-lg8px
rounded-xl12px
rounded-2xl16px
rounded-3xl24px
rounded-full9999px
Directional: rounded-t- rounded-r- rounded-b- rounded-l- rounded-tl- etc.
Shadows
Box shadow utilities from subtle to dramatic.
shadow-smSubtle shadow for flat elements.
shadowDefault shadow for cards.
shadow-mdMedium depth for dropdowns.
shadow-lgProminent shadow for modals.
shadow-xlStrong depth for overlays.
shadow-2xlMaximum depth for emphasis.
shadow-innerInset shadow for inputs.
shadow-noneRemove shadow entirely.
Responsive Breakpoints
Tailwind uses a mobile-first approach. Prefix any utility with a breakpoint to apply it at that screen size and above.
| Prefix | Min 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) |
Example: class="text-sm md:text-base lg:text-lg"
Live Responsive Demo
Resize your browser to see the breakpoint change.
Common Patterns
Practical component examples you can copy directly into your project.
Card Component
Featured
Card Title
This is a versatile card pattern commonly used for product listings, blog posts, and content previews.
<div class="max-w-sm bg-white rounded-xl shadow-lg overflow-hidden border border-gray-100">
<div class="h-48 bg-gradient-to-br from-blue-400 to-purple-500"></div>
<div class="p-5">
<p class="text-xs font-semibold text-blue-600 uppercase tracking-wide">Featured</p>
<h4 class="text-lg font-bold text-gray-900 mt-1">Card Title</h4>
<p class="text-sm text-gray-500 mt-2 leading-relaxed">Description text here.</p>
<div class="mt-4 flex items-center justify-between">
<span class="text-lg font-bold text-gray-900">€129.00</span>
<button class="bg-gray-900 text-white text-sm px-4 py-2 rounded-lg hover:bg-gray-700 transition-colors">Add to Cart</button>
</div>
</div>
</div>
Button Set
<!-- Primary -->
<button class="bg-gray-900 text-white text-sm font-medium px-5 py-2.5 rounded-lg hover:bg-gray-700 transition-colors">Primary</button>
<!-- Outline -->
<button class="bg-white text-gray-700 text-sm font-medium px-5 py-2.5 rounded-lg border border-gray-300 hover:bg-gray-50 transition-colors">Outline</button>
<!-- Disabled -->
<button class="bg-gray-200 text-gray-400 text-sm font-medium px-5 py-2.5 rounded-lg cursor-not-allowed" disabled>Disabled</button>
Navigation Bar
<nav class="bg-gray-900 text-white px-6 py-4 flex items-center justify-between">
<div class="flex items-center gap-2">
<div class="w-8 h-8 bg-white rounded-lg flex items-center justify-center">
<span class="text-gray-900 font-black text-sm">W</span>
</div>
<span class="font-bold text-lg">Brand</span>
</div>
<div class="hidden sm:flex items-center gap-6 text-sm">
<a href="#" class="text-white hover:text-gray-300">Home</a>
<a href="#" class="text-gray-400 hover:text-white">Products</a>
<a href="#" class="text-gray-400 hover:text-white">About</a>
</div>
<button class="bg-white text-gray-900 text-sm font-medium px-4 py-2 rounded-lg">Sign In</button>
</nav>
Form Input Group
<div>
<label class="block text-sm font-medium text-gray-700 mb-1">Email Address</label>
<input type="email" placeholder="you@example.com"
class="w-full px-4 py-2.5 border border-gray-300 rounded-lg text-sm
focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500
transition-shadow">
</div>
<button class="w-full bg-blue-600 text-white text-sm font-medium px-5 py-2.5 rounded-lg
hover:bg-blue-500 transition-colors">Sign In</button>