Skip to content

Commit 0d7e077

Browse files
authored
Add more custom CSS Details (#376)
* Add more custom CSS Details * Explain base CSS vs module CSS * Explain CSS precedence
1 parent c4b9f5f commit 0d7e077

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

modules/customcss.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
11
# Custom CSS
22

33
MagicMirror² comes with a default theme but it can be customized by placing a
4-
custom css-file in `config/custom.css`.
4+
custom CSS file at `config/custom.css`. You can start with
5+
[`config/custom.css.sample`](https://github.com/MagicMirrorOrg/MagicMirror/blob/master/config/custom.css.sample)
6+
as an example of how to override the default variables.
7+
8+
```sh
9+
cp config/custom.css.sample config/custom.css
10+
```
11+
12+
The base CSS file for MagicMirror² is located at
13+
[`css/main.css`](https://github.com/MagicMirrorOrg/MagicMirror/blob/master/css/main.css).
14+
15+
Each module can then have their own CSS styles located in their respective
16+
folders. For example the `weather` modules has its own CSS file located at
17+
[`defaultmodules/weather/weather.css`](https://github.com/MagicMirrorOrg/MagicMirror/blob/master/defaultmodules/weather/weather.css)
18+
19+
The `custom.css` file is loaded after all the default CSS files, so any styles
20+
you add there will override the default styles. You should not edit any of the
21+
default files directly.
522

623
### Example
724

0 commit comments

Comments
 (0)