Skip to content

Commit 136bd09

Browse files
committed
wip
1 parent 4f0a473 commit 136bd09

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/App.jsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ export default defineComponent({
2121
'Modal',
2222
]
2323

24-
const themeMainColors = [
25-
'purple',
26-
'fuchsia',
27-
'violet',
28-
'teal',
29-
'lime',
30-
]
24+
const themeMainColors = ['purple', 'fuchsia', 'violet', 'teal', 'lime']
3125

3226
const changeMainColor = (color) => {
3327
const root = document.documentElement
34-
root.style.setProperty('--color-primary-light', `var(--color-${color}-light)`)
28+
root.style.setProperty(
29+
'--color-primary-light',
30+
`var(--color-${color}-light)`,
31+
)
3532
root.style.setProperty('--color-primary', `var(--color-${color})`)
36-
root.style.setProperty('--color-primary-dark', `var(--color-${color}-dark)`)
33+
root.style.setProperty(
34+
'--color-primary-dark',
35+
`var(--color-${color}-dark)`,
36+
)
3737
}
3838

3939
return () => (
@@ -48,10 +48,10 @@ export default defineComponent({
4848
/>
4949

5050
<div class="flex gap-4">
51-
{themeMainColors.map(c => (
51+
{themeMainColors.map((c) => (
5252
<button
5353
style={{
54-
backgroundColor: `var(--color-${c})`
54+
backgroundColor: `var(--color-${c})`,
5555
}}
5656
type="button"
5757
class="w-6 h-6 rounded-full"

0 commit comments

Comments
 (0)