themings docs

This commit is contained in:
jean-emmanuel 2016-03-21 23:07:37 +01:00
parent f7ec2c3608
commit 605d84442f

29
resources/docs/theming.md Normal file
View file

@ -0,0 +1,29 @@
# Theming
Theming is as simple as writing a tiny css file that will override the default style variables defined in [_vars.scss](browser/scss/_vars/scss) :
```css
:root {
--color-accent:red;
}
```
This will change the default accent color to red. Variables can also be overridden for a specific subset of elements, for example :
```css
.panel-container {
--color-text:blue;
}
```
This will change the default text color to blue for all elements in panel widgets.
Of course, regular css is also allowed :
```css
.widget .input {
display: none;
}
```
This will hide the widgets' value inputs.