feat!: introduce SASS prelude as well. Its more convenient then making build.rs sassy macro.

This commit is contained in:
Yiffy Dev 2024-11-02 01:33:28 +05:00
commit ae5645492d
No known key found for this signature in database
GPG key ID: FB83DFEAFB3F4709
3 changed files with 88 additions and 16 deletions

View file

@ -49,6 +49,8 @@ ssr = [
css.minify = true
# We'll use bundle for leptos
css.bundle = "target/.sabry/target/bundle.css"
css.prelude = ["styles/prelude.css"]
sass.prelude = ["styles/app.scss"]
[package.metadata.leptos]
# Sabry-specific quality of life config

View file

@ -0,0 +1,5 @@
@use 'theme';
html {
@include theme.surface(primary);
}

View file

@ -0,0 +1,4 @@
html, body {
margin: 0;
padding: 0;
}