feat: ui remake with tailwind
This commit is contained in:
parent
ed59cd7aa4
commit
22f823c535
16 changed files with 296 additions and 344 deletions
17
src/helpers/tailwind.ts
Normal file
17
src/helpers/tailwind.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import tw from "tailwindcss";
|
||||
import postcss from "postcss";
|
||||
|
||||
export const generateTailwind = async () => {
|
||||
const result = await Bun.file("./src/main.css")
|
||||
.text()
|
||||
.then((sourceText) => {
|
||||
const config = "./tailwind.config.js";
|
||||
|
||||
return postcss([tw(config)]).process(sourceText, {
|
||||
from: "./src/main.css",
|
||||
to: "./public/style.css",
|
||||
});
|
||||
});
|
||||
|
||||
return result;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue