Skip to content

Commit 7a2f6af

Browse files
Merge pull request #3341 from mfrecchiami/patch-1
Add information about the variable_override file
2 parents 2097334 + 7bacec8 commit 7a2f6af

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

guides/source/developers/assets/override-solidus-assets.html.md

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,14 @@ footer#footer {
5555
}
5656
```
5757

58+
If you need to override the global SCSS variables used in `solidus_backend`, you can simply redefine them in the [`variables_override.scss`][variables-override-scss] file. For example:
59+
60+
```scss
61+
// Change the color of a default variable, e.g. $color-dark
62+
$color-dark: #000;
63+
```
64+
[variables-override-scss]: https://github.com/solidusio/solidus/blob/master/backend/app/assets/stylesheets/spree/backend/globals/_variables_override.scss
65+
5866
[screen-css-scss]: https://github.com/solidusio/solidus/blob/master/frontend/app/assets/stylesheets/spree/frontend/screen.css.scss
5967

6068
### JavaScript

0 commit comments

Comments
 (0)