Skip to content

Commit

Permalink
fix: improve light mode header background color
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Sep 16, 2023
1 parent 2d0de06 commit 2c30969
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
18 changes: 13 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
tabindex="-1"
:style="cssVariables"
>
<div class="app-banner bg-[#1a1a1a]" />
<div class="app-banner bg-ob-screen" />
<div class="app-banner app-banner-image" :style="headerImage" />
<div class="app-banner app-banner-screen" :style="headerBaseBackground" />
<div class="app-banner app-banner-cover" />
Expand Down Expand Up @@ -302,9 +302,17 @@ body {
background: var(--banner-cover);
}
.theme-light .app-banner-cover {
top: 300px;
height: 300px;
.theme-light {
.app-banner-cover {
top: 300px;
height: 300px;
}
.app-banner-screen {
@apply blur-0 rounded-none;
width: 100%;
height: 600px;
}
}
.app-banner-image {
Expand All @@ -320,7 +328,7 @@ body {
@apply blur-[72px] rounded;
left: 50%;
transform: translateX(-50%);
transition: ease-in-out opacity 500ms;
transition: ease-in-out all 500ms;
z-index: 2;
opacity: 0.91;
width: 85%;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/theme-variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
hsla(225, 40%, 96%, 0.951) 84.5%,
hsla(225, 40%, 96%, 0.987) 91.9%,
var(--background-primary));
--app-screen-bg: #1a1a1a;
--trans-ease: all 250ms ease;
--accent-shadow: 0 20px 25px -5px rgba(232, 57, 255, 0.06),
0 10px 10px -5px rgba(53, 11, 59, 0.1);
Expand Down Expand Up @@ -235,6 +236,7 @@
hsla(0, 0%, 10%, 0.951) 84.5%,
hsla(00, 0%, 10%, 0.987) 91.9%,
var(--background-primary));
--app-screen-bg: var(--background-primary);
--trans-ease: all 250ms ease;
--accent-shadow: 0 20px 25px -5px rgba(11, 42, 59, 0.35),
0 10px 10px -5px rgba(11, 42, 59, 0.14);
Expand Down
3 changes: 2 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ export default {
'ob-deep': {
800: 'var(--background-secondary)',
900: 'var(--background-primary)'
}
},
'ob-screen': 'var(--app-screen-bg)'
},
boxShadow: {
ob: 'var(--accent-shadow)'
Expand Down

0 comments on commit 2c30969

Please sign in to comment.