Replies: 4 comments 1 reply
I believe trunk supports scss https://trunkrs.dev/assets/ but I've never used it so I can't say one way or the other. I think we would need to add some additional parsers of the raw rust code to support that. |
0 replies
|
With a build.rs, I'm including tailwind output in a style tag at the moment. I assume the same would work for scss. use dioxus::prelude::*;
static STYLES: &'static str =
include_str!("../dist/output.css");
fn main() {
dioxus::desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! (
div {
style {
vec![STYLES]
}
div { "class": "text-3xl font-bold underline","Hello, world!" }
}
))
}use duct::cmd;
fn main() {
cmd!(
"npx",
"tailwindcss",
"-i",
"./input.css",
"--content",
"./src/**/*.rs",
"-o",
"./dist/output.css"
)
.read()
.unwrap();
} |
0 replies
|
Thanks @ChristopherBiscardi I'm going to add your code into our example/templates repository! Since there's nothing I can quite do with this issue, I'll move it into the discussions pages. |
0 replies
|
If the |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
How hard would it be to make an application with SCSS? Is that already posible or maybe planned?
All reactions