We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 063325a commit 13e818fCopy full SHA for 13e818f
1 file changed
README.md
@@ -150,6 +150,19 @@ themeSwitcher.addEventListener('change', () => {
150
+ }
151
```
152
153
+**Step 7:** Think of adding a small inline JS to prevent [FART] completely.
154
+
155
+```html
156
+ <script defer>
157
+ if (localStorage.theme === 'light') {
158
+ html.classList.add('is-light')
159
+ } else if (localStorage.theme === 'dark') {
160
+ html.classList.add('is-dark')
161
162
+ </script>
163
+</head>
164
+```
165
166
[official docs]: https://github.com/postcss/postcss#usage
167
168
0 commit comments