Convert CSS to Stylus

This commit is contained in:
redphx
2024-04-27 14:52:37 +07:00
parent 59c318e0e4
commit 4eeb6175d3
19 changed files with 1275 additions and 1272 deletions

13
src/macros/build.ts Normal file
View File

@@ -0,0 +1,13 @@
import stylus from 'stylus';
// @ts-ignore
import cssStr from "../assets/css/styles.styl" with { type: "text" };
const generatedCss = await (stylus(cssStr, {})
.set('filename', 'styles.css')
.include('src/assets/css/'))
.render();
export const renderStylus = () => {
return generatedCss;
};