Sass cleanup

pull/125/head
toastal 3 years ago
parent f81237bce0
commit 542a0b9236

@ -12,8 +12,8 @@ so all you need to know to write a theme is to know CSS.
A good start can be the official base theme, that is written in SCSS, and that you can find
[in Plume's repository](https://git.joinplu.me/Plume/Plume/src/branch/main/assets/themes/default).
You can copy these files (they are under the AGPL-3.0 license), and start by changing the variables
in `_variables.scss`. If you use this theme as a basis, the [SASS/SCSS](https://sass-lang.com/) will be
needed to transform it to a single CSS file that an admin can install on their instance.
in `_variables.scss`. If you use this theme as a basis, [Sass](https://sass-lang.com/) will be
needed to transform [`*.{sass,scss}`](https://sass-lang.com/documentation/syntax) files to a single CSS file that an admin can install on their instance.
To test your theme, you can install a browser extension like [*Stylish*](https://userstyles.org) and copy your CSS inside.
@ -56,7 +56,7 @@ html[class*=dark] article blockquote {
# Plume can compile your themes
If you build Plume from source, any theme in `assets/themes/NAME` will be compiled in `static/css/NAME`.
SCSS or SASS file will be transformed into CSS, unless their name start with an underscore.
Each SCSS/SASS file is treated as a different theme even if they are in the same directory, allowing them to share files (usefull when you want to do color variants of your theme for example).
Sass files will be transformed into CSS, unless their name start with an underscore.
Each Sass file is treated as a different theme even if they are in the same directory, allowing them to share files (usefull when you want to do color variants of your theme for example).
Other files will just be copied to the output directory.

@ -15,6 +15,6 @@ As an admin, you are in charge of choosing which themes (both instance-level and
To make a theme available, all you have to do is to put its files in `static/css/NAME` (with `NAME` the actual name of the theme).
If you build Plume from source, any theme in `assets/themes/NAME` will be compiled in `static/css/NAME`.
You can thus download the source of a theme written in SCSS or in SASS and build it along with Plume (just with `cargo run`, `cargo build` or `cargo install`, as usual).
You can thus download the source of a theme written in [a Sass syntax](https://sass-lang.com/documentation/syntax) (SCSS or indented) and build it along with Plume (just with `cargo run`, `cargo build` or `cargo install`, as usual).
You can also choose the default instance theme with the `DEFAULT_THEME` environment variable.

Loading…
Cancel
Save