Skip to content

Commit f9a9207

Browse files
committed
Update colors imports
1 parent d604bfb commit f9a9207

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/runtime/plugin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createVueless, setTheme } from 'vueless'
2-
import { COLOR_MODE_KEY, AUTO_MODE_KEY, LIGHT_MODE_SELECTOR, DARK_MODE_SELECTOR, PRIMARY_COLOR_COOKIE, NEUTRAL_COLOR_COOKIE } from 'vueless/constants'
2+
import { COLOR_MODE_KEY, AUTO_MODE_KEY, LIGHT_MODE_SELECTOR, DARK_MODE_SELECTOR, PRIMARY_COLOR, NEUTRAL_COLOR } from 'vueless/constants'
33
import { ColorMode } from 'vueless/types'
44
import vClickOutside from 'vueless/directives/clickOutside/vClickOutside'
55
import vTooltip from 'vueless/directives/tooltip/vTooltip'
@@ -27,8 +27,8 @@ export default defineNuxtPlugin((_nuxtApp) => {
2727

2828
const colorModeCookie = cookies?.[COLOR_MODE_KEY]
2929
const isAutoModeCookie = Number(cookies?.[AUTO_MODE_KEY])
30-
const primaryColorCookie = cookies?.[PRIMARY_COLOR_COOKIE]
31-
const neutralColorCookie = cookies?.[NEUTRAL_COLOR_COOKIE]
30+
const primaryColorCookie = cookies?.[PRIMARY_COLOR]
31+
const neutralColorCookie = cookies?.[NEUTRAL_COLOR]
3232

3333
const themeRootVariables = setTheme({
3434
primary: primaryColorCookie,

0 commit comments

Comments
 (0)