diff --git a/resources/docs/theming.md b/resources/docs/theming.md new file mode 100644 index 00000000..7ca0787b --- /dev/null +++ b/resources/docs/theming.md @@ -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.