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 ddbfdd8 commit 47f15fdCopy full SHA for 47f15fd
src/plugin/composables/colors.ts
@@ -18,7 +18,7 @@ function checkIfThemeVarColor(color: string) {
18
}
19
20
function checkIfThemeColor(color: string, theme: ThemeInstance) {
21
- const themeColors = theme.global.current.value.colors;
+ const themeColors = theme.global.current.value?.colors ?? {};
22
23
return Object.entries(themeColors).find(([key]) => {
24
return key === color;
0 commit comments