themings docs
This commit is contained in:
parent
f7ec2c3608
commit
605d84442f
1 changed files with 29 additions and 0 deletions
29
resources/docs/theming.md
Normal file
29
resources/docs/theming.md
Normal 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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue