Skip to content

Commit 2273e28

Browse files
committed
docs: add root slash to css path in theming docs
1 parent 10f9c0f commit 2273e28

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

THEMING.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,21 +36,17 @@ Now run `npm run prepare` to build the CSS file(s), then add it/them on your pag
3636

3737
```html
3838
<!-- SMUI Styles -->
39-
<link rel="stylesheet" href="smui.css" />
39+
<link rel="stylesheet" href="/smui.css" />
4040
```
4141

4242
Or for dark mode support.
4343

4444
```html
4545
<!-- SMUI Styles -->
46+
<link rel="stylesheet" href="/smui.css" media="(prefers-color-scheme: light)" />
4647
<link
4748
rel="stylesheet"
48-
href="smui.css"
49-
media="(prefers-color-scheme: light)"
50-
/>
51-
<link
52-
rel="stylesheet"
53-
href="smui-dark.css"
49+
href="/smui-dark.css"
5450
media="screen and (prefers-color-scheme: dark)"
5551
/>
5652
```

0 commit comments

Comments
 (0)