DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeCheatsheetsTailwind CSS Cheatsheet

About Tailwind CSS Cheatsheet

Tailwind CSS Cheatsheet preview - Cheatsheets tool

Layout, spacing, colors, variants, and pro tricks. Part of the DevTools Surf developer suite. Browse more tools in the Cheatsheets collection.

Use Cases

  • Finding the right spacing class during rapid UI prototyping
  • Looking up responsive breakpoint prefixes for mobile-first design
  • Referencing color class names when implementing a design mockup
  • Reviewing dark mode variant syntax for theme implementation

Tips

  • Search by CSS property to find the matching Tailwind class
  • Check the variants section for hover, focus, and responsive prefixes
  • Review the spacing scale for consistent margin and padding values

Fun Facts

  • Tailwind CSS v1.0 was released in May 2019, and by 2024 it had become the second most popular CSS framework after Bootstrap, with over 80,000 GitHub stars.
  • Tailwind's JIT (Just-in-Time) engine, introduced in v2.1 (2021), generates only the CSS classes you actually use, reducing build sizes by up to 95%.
  • The Tailwind CSS configuration file can generate over 17 million unique class combinations when considering all variants, but JIT ensures only used classes are output.

FAQ

Which Tailwind version?
v3.4+. The core utility classes have been stable since v2; v3 added arbitrary values `[]` and JIT; v3.4 added container queries.
Does it cover arbitrary values?
Yes — `w-[calc(100%-2rem)]`, `bg-[#1a1a2e]`. Essential for one-off designs that don't fit the default scale.
What about responsive variants?
All five: sm, md, lg, xl, 2xl. Plus the mobile-first philosophy (default = mobile, variants scale up).
Dark mode?
Yes — both the `class` strategy (recommended) and the `media` strategy. Plus how to toggle in JS.

Related Cheatsheets Tools

Git CheatsheetDocker CheatsheetMakefile CheatsheetRegex CheatsheetMarkdown CheatsheetVim CheatsheetBash / Shell CheatsheetSQL Cheatsheet
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback