mirror of
https://github.com/ritz078/transform.git
synced 2026-12-04 22:04:31 +03:00
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:
1 parent
5693b3d1bf
commit
45c27fb825
7 files changed
+436
-775
No files matched your search
+2
-2
@@ -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"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user