Skip to content

Commit 095fc18

Browse files
committed
docs: Update examples
1 parent 55abf8e commit 095fc18

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

docs/guide/examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
```vue
3232
<vue-dark-mode>
3333
<template v-slot="{ mode }">
34-
<svg v-show="mode === 'dark'" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path></svg>
35-
<svg v-show="mode === 'light'" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>
36-
<svg v-show="mode === 'system'" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2" ry="2"></rect><line x1="8" y1="21" x2="16" y2="21"></line><line x1="12" y1="17" x2="12" y2="21"></line></svg>
34+
<MyLightIcon v-show="mode === 'dark'">
35+
<MyDarkIcon v-show="mode === 'light'">
36+
<MySystemIcon v-show="mode === 'system'">
3737
</template>
3838
</vue-dark-mode>
3939
```

docs/howto/tailwind.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ By default, [tailwindcss-dark-mode](https://github.com/ChanceArthur/tailwindcss-
44

55
It is possible to [changing the Selector](https://github.com/ChanceArthur/tailwindcss-dark-mode#changing-the-selector) in "tailwindcss-dark-mode" plug-in, however, you can also adjust the class using the [className](/guide/class-naming.html) prop to generate the class compatible with the plugin.
66

7-
e.g.
7+
**e.g.**
88

99
```vue
1010
<VueDarkMode className="mode-%cm">
@@ -14,6 +14,9 @@ e.g.
1414
</VueDarkMode>
1515
```
1616

17+
18+
**Output**
19+
1720
```html
1821
<!DOCTYPE html>
1922
<html lang="en" class="mode-dark">

0 commit comments

Comments
 (0)