Skip to content

Commit

Permalink
fix(projects): fix themeVars color
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 11, 2023
1 parent fc409db commit 6329c5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
5 changes: 1 addition & 4 deletions src/components/common/dark-mode-container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ defineProps<Props>();
</script>

<template>
<div
class="bg-container text-base_text transition-300"
:class="{ 'bg-inverted text-white text-opacity-88': inverted }"
>
<div class="bg-container text-base_text transition-300" :class="{ 'bg-inverted text-#1f1f1f': inverted }">
<slot></slot>
</div>
</template>
Expand Down
10 changes: 5 additions & 5 deletions src/store/modules/theme/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export function createThemeToken() {
colors: {
...paletteColors,
nprogress: paletteColors.primary,
container: 'rgba(255, 255, 255, 0.8)',
layout: 'rgba(247, 250, 252, 1)',
inverted: 'rgba(0, 20, 40, 1)',
base_text: 'rgba(0, 0, 0, 0.88)'
container: 'rgb(255, 255, 255)',
layout: 'rgb(247, 250, 252)',
inverted: 'rgb(0, 20, 40)',
base_text: 'rgb(31, 31, 31)'
},
boxShadow: {
header: '0 1px 2px rgb(0, 21, 41, 0.08)',
Expand All @@ -99,7 +99,7 @@ export function createThemeToken() {
...themeTokens.colors,
container: 'rgb(28, 28, 28)',
layout: 'rgb(18, 18, 18)',
base_text: 'rgba(255, 255, 255, 0.88)'
base_text: 'rgb(224, 224, 224)'
},
boxShadow: {
...themeTokens.boxShadow
Expand Down

0 comments on commit 6329c5d

Please sign in to comment.