chore(bg): replace the bg for buttons with a subtle background color

This commit is contained in:
Shintaro Jokagi 2025-03-16 18:17:40 +13:00
parent 03906ef819
commit 3f11a2d6b3
4 changed files with 9 additions and 6 deletions

View file

@ -24,7 +24,7 @@ const {
: isAlert
? 'bg-red-300 text-dark'
: !isBordered
? 'bg-[rgba(0,0,0,.05)]'
? 'bg-subtle'
: '!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm',
]}
>

View file

@ -235,20 +235,20 @@ const {
<style>
.feature {
@apply w-full cursor-pointer select-none rounded-lg p-4 hover:bg-[rgba(0,0,0,.05)] dark:hover:bg-white/10;
@apply w-full cursor-pointer select-none rounded-lg p-4 hover:bg-subtle;
transition: all 0.2s ease-in-out;
&[data-active='true'] {
@apply bg-[rgba(0,0,0,.05)] dark:bg-white/10;
@apply bg-subtle;
}
}
.feature-tab {
@apply rounded-lg px-4 py-2 text-lg font-medium hover:bg-[rgba(0,0,0,.05)] dark:hover:bg-white/10;
@apply rounded-lg px-4 py-2 text-lg font-medium hover:bg-subtle;
transition: all 0.2s ease-in-out;
&[data-active='true'] {
@apply bg-[rgba(0,0,0,.05)] dark:bg-white/10;
@apply bg-subtle;
}
}

View file

@ -127,11 +127,13 @@ import MobileNavBar from '../components/MobileNavBar'
--zen-paper: #f2f0e3;
--zen-dark: #2e2e2e;
--zen-muted: rgba(0, 0, 0, 0.05);
--zen-subtle: rgba(0,0,0,0.05);
&[data-theme='dark'] {
--zen-paper: #1f1f1f;
--zen-dark: #d1cfc0;
--zen-muted: rgba(255, 255, 255, 0.05);
--zen-subtle: rgba(255,255,255,0.1);
}
}

View file

@ -12,6 +12,7 @@ export default {
paper: 'var(--zen-paper)',
coral: '#F76F53',
dark: 'var(--zen-dark)',
subtle: 'var(--zen-subtle)',
muted: 'var(--zen-muted)',
'zen-blue': '#6287f5',
'zen-green': '#63f78b',