{
 "kind": "tool",
 "slug": "tailwindcss",
 "path": "tools/tailwindcss/",
 "name": "Tailwind CSS",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Styling and CSS",
   "tools/styling/"
  ]
 ],
 "lead": "Style pages with short class names.",
 "chips": [
  {
   "label": "Styling and CSS",
   "path": "tools/styling/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install tailwindcss"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/tailwindlabs/tailwindcss"
  },
  {
   "label": "Website",
   "href": "https://tailwindcss.com"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "MIT",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": "to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software",
   "note": "MIT allows use in paid and closed-source products.",
   "src": "https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 6, 2026. ",
   "src": "https://github.com/tailwindlabs/tailwindcss"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2,040 projects",
   "status": "info",
   "sub": "#1 of 53 in its category",
   "note": "Dependency in 2,040 public GitHub projects set up for AI coding agents that we scanned (32.6%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "2 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily; card checked Nov 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Tailwind CSS does",
   "parts": [
    {
     "t": "prose",
     "text": "Tailwind CSS is a free tool for styling web pages. You or your AI assistant add short class names like p-6 or text-center right on the page elements, instead of writing a separate style file. Tailwind then builds one small style file with only the classes you used."
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Style a new React or Vite app",
       "text": "The usual start for an app your assistant builds; one plugin line and one import, and every page can use the classes.",
       "idea": false
      },
      {
       "title": "Your brand colors as classes",
       "text": "Add your brand color once, and classes like bg-brand and text-brand appear for buttons, links and badges.",
       "idea": false
      },
      {
       "title": "Pages that fit phones and desktops",
       "text": "The same page shows one column on a phone and three on a laptop, by adding a screen size in front of a class.",
       "idea": false
      },
      {
       "title": "A dark version of the site",
       "text": "Add dark: in front of a color class, and the page switches colors in dark mode or when your own switch turns it on.",
       "idea": false
      },
      {
       "title": "Quick try-out in one HTML file",
       "text": "Test an idea or a layout in a single file with one script line, before setting up a real project.",
       "idea": false
      },
      {
       "title": "Styles for a site without Node.js",
       "text": "A plain HTML site, or one made by Python or PHP, gets its style file from Tailwind's single program, with nothing else to install.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Tailwind CSS popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "92",
       "of": "/ 100",
       "l": "Gid Score, #6 overall"
      },
      {
       "n": "19M",
       "l": "downloads a week, npm"
      },
      {
       "n": "98.7K",
       "l": "GitHub stars"
      },
      {
       "n": "2,040",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How Tailwind CSS is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "Tailwind CSS is a dependency in 2,040 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (41.9% of the 4,867 JavaScript/TypeScript ones), #1 of 53 in styling and css.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 7,817; those are left out of every share on this page.",
      "The most used alternative in our scan is Emotion (116 projects).",
      "Projects that use it most often also use React (79.6%), Lucide React (59.2%), clsx (58.1%).",
      "It is more common in projects set up for Junie (73.0%) than for OpenAI Codex (32.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "1,086 projects, 33.1%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "983 projects, 32.4%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "957 projects, 39.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "179 projects, 37.8%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "150 projects, 32.0%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "122 projects, 35.6%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      },
      {
       "l": "110 projects, 39.4%",
       "v": "Devin Desktop",
       "path": "agents/devin-desktop/"
      },
      {
       "l": "54 projects, 73.0%",
       "v": "Junie",
       "path": "agents/junie/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 79.6% of its projects",
       "v": "React",
       "path": "tools/react/"
      },
      {
       "l": "In 59.2% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 58.1% of its projects",
       "v": "clsx",
       "path": "tools/clsx/"
      },
      {
       "l": "In 56.8% of its projects",
       "v": "Tailwind Merge",
       "path": "tools/tailwind-merge/"
      },
      {
       "l": "In 49.7% of its projects",
       "v": "Class Variance Authority",
       "path": "tools/class-variance-authority/"
      },
      {
       "l": "In 50.9% of its projects",
       "v": "Next.js",
       "path": "tools/next/"
      },
      {
       "l": "In 72.1% of its projects",
       "v": "ESLint",
       "path": "tools/eslint/"
      },
      {
       "l": "In 88.3% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      }
     ]
    }
   ]
  },
  {
   "id": "profile",
   "nav": "Profile",
   "h2": "Tailwind CSS in practice",
   "parts": [
    {
     "t": "h3",
     "text": "Strengths"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Unused classes never reach production",
       "v": "The site says Tailwind removes all unused CSS when building for production. It claims \"most Tailwind projects ship less than 10kB of CSS to the client.\""
      },
      {
       "l": "The theme is just CSS variables",
       "v": "Fonts, text sizes and color scales are declared as variables like <code>--font-sans</code> or <code>--color-mint-500</code> inside <code>@theme</code>."
      },
      {
       "l": "Layers settle specificity",
       "v": "Generated CSS sits in <code>theme</code>, <code>base</code>, <code>components</code> and <code>utilities</code> layers. Your own components go in the <code>components</code> layer. The maintainers say this removes specificity fights."
      },
      {
       "l": "One prefix pattern for screens, dark mode and containers",
       "v": "A screen size in front of any utility scopes it to a breakpoint. <code>dark:</code> in front of a color applies it in dark mode. Tagging a parent <code>@container</code> lets children use <code>@sm:</code>-style variants."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Watch out for"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Shared styles mean repeated class strings",
       "v": "Headings that differ only by color carry the same classes three times. Samantha Ming writes that moving them into a CSS class \"kind of defeats the purpose\". She avoided it by making a Vue component for anything repeated."
      },
      {
       "l": "v4.3.3 fixed bugs in the Vite and PostCSS plugins",
       "v": "The v4.3.3 release lists several fixes under \"Fixed\". Before it, <code>@tailwindcss/vite</code> could trigger full page reloads. <code>@tailwindcss/postcss</code> could also miss rebuilds when Sass changed the input CSS. The same release fixed <code>--watch --poll</code> support in the CLI for unreliable file events. If you hit one of these on an older version, check that release first."
      }
     ]
    },
    {
     "t": "h3",
     "text": "Set theme fonts as CSS variables"
    },
    {
     "t": "tabs",
     "label": "Example",
     "items": [
      {
       "tab": "Css",
       "code": "@theme {\n--font-sans : \"Inter\" , sans-serif ;\n--font-mono : \"IBM Plex Mono\" , monospace ;\n}"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "profile",
   "h2": "More about Tailwind CSS",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Funding",
       "path": "tools/funding/",
       "items": [
        "Own page: https://tailwindcss.com/sponsor"
       ]
      },
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "tailwindcss: Use when designing/implementing UI with Tailwind CSS (layout, typography, responsive, theming, component patterns). Includes quick recipes a",
        "tailwind-css-patterns: Provides comprehensive Tailwind CSS utility-first styling patterns including responsive design, layout utilities, flexbox, grid, spacing, ty"
       ]
      },
      {
       "title": "Head to head",
       "items": [
        {
         "text": "Tailwind CSS vs Sass",
         "note": "used together in 59 projects",
         "path": "tools/compare/tailwind-css-vs-sass/"
        }
       ]
      },
      {
       "title": "Packages around it",
       "items": [
        "postcss: CSS transform pipeline",
        "autoprefixer: Vendor prefixes",
        "@tailwindcss/postcss: Tailwind PostCSS plugin",
        "@tailwindcss/vite: Tailwind Vite plugin",
        "@tailwindcss/typography: Prose styles plugin",
        "@tailwindcss/forms: Form styles plugin"
       ]
      },
      {
       "title": "More in Styling and CSS",
       "path": "tools/styling/",
       "items": [
        {
         "text": "Tailwind Merge",
         "path": "tools/tailwind-merge/"
        },
        {
         "text": "tailwind-variants",
         "path": "tools/tailwind-variants/"
        },
        {
         "text": "Fontsource Inter",
         "path": "tools/fontsource-variable-inter/"
        },
        {
         "text": "NativeWind",
         "path": "tools/nativewind/"
        },
        {
         "text": "postcss-import",
         "path": "tools/postcss-import/"
        },
        {
         "text": "Lightning CSS",
         "path": "tools/lightningcss/"
        },
        {
         "text": "mode-watcher",
         "path": "tools/mode-watcher/"
        },
        {
         "text": "sass-embedded",
         "path": "tools/sass-embedded/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Tailwind CSS",
       "me": true,
       "facts": [
        "MIT",
        "Gid 92",
        "19M/wk"
       ]
      },
      {
       "name": "Sass",
       "why": "Pick Sass when you prefer separate stylesheets with variables, nesting and mixins over classes in the page.",
       "path": "tools/sass/",
       "facts": [
        "MIT",
        "Gid 71",
        "44.8M/wk"
       ]
      },
      {
       "name": "Emotion",
       "why": "Pick Emotion when you want styles written inside React components as JavaScript, scoped to each component.",
       "path": "tools/emotion/",
       "facts": [
        "MIT",
        "Gid 77",
        "29.3M/wk"
       ]
      },
      {
       "name": "vanilla-extract",
       "why": "Pick vanilla-extract when you want styles written in TypeScript files that turn into plain CSS at build time.",
       "path": "tools/vanilla-extract-css/",
       "facts": []
      },
      {
       "name": "styled-components",
       "why": "CSS-in-JS library for styling React components with dynamic scoped styles.",
       "path": "tools/styled-components/",
       "facts": [
        "MIT",
        "Gid 75",
        "15.1M/wk"
       ]
      }
     ],
     "more": "Compare Tailwind CSS with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Set up Tailwind CSS v4 (tailwindcss and @tailwindcss/vite 4.3.5) in this Vite app with @import \"tailwindcss\" in the main CSS file, put brand colors in an @theme block, and write only complete class names, never ones built from pieces."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install Tailwind and its Vite plugin.",
       "code": "npm install tailwindcss @tailwindcss/vite",
       "src": "https://tailwindcss.com/docs/installation/using-vite"
      },
      {
       "text": "Add the plugin to vite.config.ts, then import Tailwind in your main CSS file.",
       "code": "@import \"tailwindcss\";\n",
       "src": "https://tailwindcss.com/docs/installation/using-vite"
      },
      {
       "text": "Run the dev server and use the classes in your pages.",
       "code": "npm run dev",
       "src": "https://tailwindcss.com/docs/installation/using-vite"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Rules for your agent"
    },
    {
     "t": "rules",
     "label": "Paste into AGENTS.md or CLAUDE.md",
     "text": "## Tailwind CSS\n- Style elements by composing utility classes in the markup (`flex`, `pt-4`, `text-center`) instead of writing new CSS rules.\n- For responsive styles, prefix a utility with a breakpoint (`sm:`, `md:`, `lg:`, `xl:`). For dark mode, put `dark:` in front of the color utility.\n- When children should react to their parent's size, mark the parent `@container` and use variants like `@sm:grid-cols-2`.\n- Put theme values (fonts, text sizes, colors) as CSS variables in an `@theme` block, e.g. `--font-sans` or `--color-mint-500`.\n- Use `@source` rules to point Tailwind at files it should scan for classes.\n- To respect reduced-motion preferences, the `motion-safe` variant can gate an animation; the team's Studio template uses it with Framer Motion's `useReducedMotion` to conditionally disable its navigation menu animation.\n- If `@tailwindcss/cli --watch` misses file changes, run it with `--watch --poll[=ms]`.\n"
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "@tailwind base; @tailwind components; @tailwind utilities;  (v3 lines in a v4 project)",
       "fix": "@import \"tailwindcss\";",
       "why": "Version 4 replaced the @tailwind lines with a normal CSS import."
      },
      {
       "dont": "className={`bg-${color}-600 hover:bg-${color}-500`}",
       "fix": "Map each prop value to a full class string: { blue: \"bg-blue-600 hover:bg-blue-500\", red: \"bg-red-600 hover:bg-red-500\" }",
       "why": "Tailwind reads files as plain text, so a class name assembled at runtime never gets its styles."
      },
      {
       "dont": "Editing tailwind.config.js in a v4 project and expecting it to load",
       "fix": "Put colors, fonts and sizes in @theme inside the CSS file, or load the old file with @config \"./tailwind.config.js\"",
       "why": "v4 no longer finds the JavaScript config by itself."
      },
      {
       "dont": "Shipping a live site with the Play CDN script tag",
       "fix": "Build the CSS with the Vite plugin, PostCSS plugin or Tailwind CLI and link the built file",
       "why": "The Play CDN is meant only for trying things out."
      },
      {
       "dont": "v3 names in a v4 project, like outline-none for a hidden focus outline, ring for a 3px ring, or tailwindcss as a PostCSS plugin",
       "fix": "outline-hidden, ring-3, and the @tailwindcss/postcss package",
       "why": "v4 renamed several utilities and moved the PostCSS plugin into its own package."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Can I use it in a paid product?",
       "a": "Yes. It is MIT-licensed.",
       "evidence": {
        "url": "https://github.com/tailwindlabs/tailwindcss/blob/main/LICENSE",
        "quote": "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction"
       }
      },
      {
       "q": "Where did tailwind.config.js go in version 4?",
       "a": "Settings now live in your CSS file in an @theme block. An old JavaScript config still works, but only if you load it with @config.",
       "evidence": {
        "url": "https://tailwindcss.com/docs/upgrade-guide",
        "quote": "JavaScript config files are still supported for backward compatibility, but they are no longer detected automatically in v4."
       }
      },
      {
       "q": "How do I move a project from version 3 to 4?",
       "a": "Run the official upgrade tool on a new branch, then review the changes; it needs Node.js 20 or newer.",
       "evidence": {
        "url": "https://tailwindcss.com/docs/upgrade-guide",
        "quote": "The upgrade tool requires Node.js 20 or higher, so ensure your environment is updated before running it."
       }
      },
      {
       "q": "Why does a class I added do nothing?",
       "a": "Usually the class name was built from pieces in code, so Tailwind never saw it. Write each full class name, for example in a lookup object.",
       "evidence": {
        "url": "https://tailwindcss.com/docs/detecting-classes-in-source-files",
        "quote": "Instead, make sure any class names you’re using exist in full"
       }
      },
      {
       "q": "Can I use it without Node.js?",
       "a": "Yes. The Tailwind command line tool is also offered as a standalone program.",
       "evidence": {
        "url": "https://tailwindcss.com/docs/installation/tailwind-cli",
        "quote": "The CLI is also available as a standalone executable if you want to use it without installing Node.js."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm tailwindcss"
  ],
  [
   "Category",
   "Styling and CSS"
  ],
  [
   "License",
   "MIT"
  ],
  [
   "Latest version",
   "v4.3.3, July 16, 2026"
  ],
  [
   "On GitHub since",
   "October 2017"
  ],
  [
   "Gid Score",
   "92.1"
  ],
  [
   "Rank in category",
   "#1 of 53"
  ],
  [
   "GitHub",
   "tailwindlabs/tailwindcss"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [
  "Version 4 needs recent browsers (Safari 16.4, Chrome 111, Firefox 128 or newer). Sites that must work in older browsers stay on version 3.4.",
  "The one-line script version is for trying things out only, not for a live site.",
  "It is not meant to be mixed with Sass, Less or Stylus; it handles imports, nesting and browser prefixes itself."
 ],
 "checked_line": "Read by AgentGid from 14 official pages, card checked Nov 10, 2026; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/tailwindlabs.png"
}