工具 指南
Developer 免费 无需注册

CSS to Tailwind Converter

Convert CSS properties to the nearest Tailwind CSS classes

正在加载工具…

关于此工具

Paste any block of CSS declarations and instantly see the equivalent Tailwind CSS utility classes. Covers spacing (margin, padding), display, flexbox, CSS Grid, text and font properties, colours, borders, shadows, and more. Each mapping shows a confidence level so you always know when a class is an exact match versus the closest approximation. Unknown or unsupported properties are flagged separately so nothing is silently dropped.

使用方法

  1. 1 Paste your CSS declarations into the input area (e.g. 'margin: 16px; display: flex;').
  2. 2 Click 'Convert' — the tool parses each property and finds the closest Tailwind class.
  3. 3 Review the results table showing property, Tailwind class, and confidence level.
  4. 4 Click 'Copy Classes' to copy all classes as a space-separated string ready to use in HTML.

常见问题

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}