Convert CSS to TailwindCSS 3.x (#353)

* add initial CSS data

* add packages

* add `css-to-tailwindcss3` page

* update `css-to-tailwindcss` package

* chore: replace old `css-to-tailwind` page and remove unnecessary dependencies
This commit is contained in:
Salakhutdinov Salavat authored and GitHub committed 2023-01-30 12:50:22 +05:30
1 parent 5693b3d1bf
commit 45c27fb825
7 files changed
+436 -775

No files matched your search

+2 -2
View File
@@ -205,8 +205,8 @@ export const categorizedRoutes = [
{
label: "to TailwindCSS",
path: "/css-to-tailwind",
packageUrl: "https://github.com/miklosme/css-to-tailwind",
packageName: "css-to-tailwind"
packageUrl: "https://github.com/Jackardios/css-to-tailwindcss",
packageName: "css-to-tailwindcss"
}
]
},
-16
View File
@@ -1,16 +0,0 @@
import postcss from "postcss7";
import tailwindcss from "tailwindcss1";
import defaultConfig from "tailwindcss1/stubs/simpleConfig.stub.js";
import autoprefixer from "autoprefixer9";
export default async function buildTailwindCss(
tailwindConfig: any,
postCssInput: string
): Promise<string> {
const { css } = await postcss([
tailwindConfig ? tailwindcss(tailwindConfig) : tailwindcss(defaultConfig),
autoprefixer
]).process(postCssInput, { from: "tailwind.css" });
return css;
}