All Projects → miklosme → css-to-tailwind

miklosme / css-to-tailwind

Licence: other
Convert plain CSS to TailwindCSS classes. Demo: https://transform.tools/css-to-tailwind

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to css-to-tailwind

hugo-starter-tailwind-basic
A basic and simple to set up Hugo with TailwindCSS starter project.
Stars: ✭ 80 (+321.05%)
Mutual labels:  tailwind, tailwindcss
react-tailwind
This is a complementary React code for the tailwindcss project.
Stars: ✭ 29 (+52.63%)
Mutual labels:  tailwind, tailwindcss
coc-tailwind-intellisense
Coc.nvim extension for Tailwind CSS IntelliSense
Stars: ✭ 117 (+515.79%)
Mutual labels:  tailwind, tailwindcss
memento-svelte-electron-typescript
Template to create a desktop app with Svelte, TailwindCSS, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)
Stars: ✭ 27 (+42.11%)
Mutual labels:  tailwind, tailwindcss
wrapped
GitHub Wrapped, inspired by Spotify Wrapped
Stars: ✭ 159 (+736.84%)
Mutual labels:  tailwind, tailwindcss
tailwindcss-landing-gradients
A landing page made with tailwindcss and the new Gradient feature.
Stars: ✭ 41 (+115.79%)
Mutual labels:  tailwind, tailwindcss
EddieHubCommunity.github.io
Information about our community
Stars: ✭ 88 (+363.16%)
Mutual labels:  tailwind, tailwindcss
jekyll-atlantic-theme
Jekyll Atlantic is a beautiful Tailwind CSS theme. It shows best practices for using Tailwind with Jekyll.
Stars: ✭ 40 (+110.53%)
Mutual labels:  tailwind, tailwindcss
hepsiburada
Hepsiburada.com Tailwind/VueJS/CSS Clone
Stars: ✭ 39 (+105.26%)
Mutual labels:  tailwind, tailwindcss
tailwind
🧛🏻‍♂️ Dark theme for Tailwind
Stars: ✭ 25 (+31.58%)
Mutual labels:  tailwind, tailwindcss
stitchwind
A bridge between Tailwind and Stitches
Stars: ✭ 33 (+73.68%)
Mutual labels:  tailwind, tailwindcss
vite-react-ts-tailwind-firebase-starter
Starter using Vite + React + TypeScript + Tailwind CSS. And already set up Firebase(v9), Prettier and ESLint.
Stars: ✭ 108 (+468.42%)
Mutual labels:  tailwind, tailwindcss
tailwindcss-postcss-browsersync-boilerplate
Tailwind CSS + PostCSS + BrowserSync boilerplate
Stars: ✭ 28 (+47.37%)
Mutual labels:  tailwind, tailwindcss
gridsome-starter-liebling
Gridsome starter based on the Liebling theme for Ghost. Content is added via markdown, while Tailwind CSS is used for the layout/styling.
Stars: ✭ 21 (+10.53%)
Mutual labels:  tailwind, tailwindcss
variantwind
Most elegant way to work with TailwindCSS variants in Vue
Stars: ✭ 45 (+136.84%)
Mutual labels:  tailwind, tailwindcss
react-heroicons
Heroicons as React components
Stars: ✭ 39 (+105.26%)
Mutual labels:  tailwind, tailwindcss
twin.examples
Packed with examples for different frameworks, this repo helps you get started with twin a whole lot faster.
Stars: ✭ 320 (+1584.21%)
Mutual labels:  tailwind, tailwindcss
stencil-tailwind-plugin
Plugin for using tailwindcss with StencilJS
Stars: ✭ 17 (-10.53%)
Mutual labels:  tailwind, tailwindcss
tailwindcss-variables
Easily create css variables without the need for a css file!
Stars: ✭ 47 (+147.37%)
Mutual labels:  tailwind, tailwindcss
eleventy solo starter njk
Further development suspended as of 2021-09-11. Please refer instead to https://www.11ty.dev/docs/starter/ for a wide selection of other Eleventy starter sets.
Stars: ✭ 22 (+15.79%)
Mutual labels:  tailwind, tailwindcss

CSS To Tailwind

Convert CSS to TailwindCSS classes.

Usage

npx css-to-tailwind ".logo { margin-bottom: 1.6rem; min-height: 4rem; display: flex; justify-content: center; }"

The package also offers a Node API. Use that if you need custom TailwindCSS configuration. I don't have time to document it, but reading these two PRs should clarify everything:

  1. Introducing css-to-tailwind to transform.tools
  2. Adding custom config support to transform.tools

TailwindCSS can't run in a browser, because it depends on Node APIs. However this project can, by using the entry css-to-tailwind/browser. In this case, run TailwindCSS on the server side, if you want to use a custom Tailwind config. See the second PR above for details.

Output

Array<{ selector: string, tailwind: string, missing: Array<Array<CSSProperty, CSSValue>>}>

  • selector: The selector used in the input CSS.
  • tailwind: List of TailwindCSS classes in a single string, separated by a space.
  • missing: The properties that can't be converted, will appear as an array of tuples.
[
  {
    "selector": ".logo",
    "tailwind": "flex justify-center mb-6",
    "missing": [
      [
        "min-height",
        "4rem"
      ]
    ]
  }
]

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].