Skip to content

Commit

Permalink
style: change theme
Browse files Browse the repository at this point in the history
  • Loading branch information
remvze committed Dec 29, 2023
1 parent 00fc5f3 commit bd517f8
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 24 deletions.
7 changes: 3 additions & 4 deletions src/components/buttons/play/play.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
font-size: var(--font-base);
line-height: 0;
color: #022c22;
color: var(--color-neutral-200);
cursor: pointer;
background-color: #10b981;
border: none;
border-top: 2px solid #34d399;
border-bottom: 3px solid #059669;
background-color: var(--color-neutral-950);
border: 1px solid var(--color-neutral-50);
border-radius: 100px;
outline: none;

Expand Down
13 changes: 2 additions & 11 deletions src/components/buttons/unselect/unselect.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
line-height: 0;
color: var(--color-foreground);
cursor: pointer;
background-color: #f43f5e;
border: none;
border-top: 2px solid #fb7185;
border-bottom: 3px solid #be123c;
background-color: var(--color-neutral-100);
border: 1px solid var(--color-neutral-200);
border-radius: 100px;
outline: none;
transition: 0.2s;
Expand All @@ -21,13 +19,6 @@
&.disabled {
cursor: not-allowed;
}

&.restore {
color: var(--color-neutral-200);
background-color: var(--color-neutral-700);
border-top-color: var(--color-neutral-950);
border-bottom-color: var(--color-neutral-600);
}
}

.tooltip {
Expand Down
1 change: 0 additions & 1 deletion src/components/buttons/unselect/unselect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export function UnselectButton() {
}
className={cn(
styles.unselectButton,
hasHistory && styles.restore,
noSelected && !hasHistory && styles.disabled,
)}
onClick={() => {
Expand Down
1 change: 0 additions & 1 deletion src/components/sections/ready.astro
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ import { Container } from '@/components/container';
width: 45px;
height: 45px;
font-size: var(--font-md);
color: #fbbf24;
background-color: var(--color-neutral-100);
border: 1px solid var(--color-neutral-300);
border-radius: 50%;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/why.astro
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const reasons = [
height: 40px;
margin-bottom: 12px;
font-size: var(--font-md);
color: #34d399;
color: var(--color-foreground-subtle);
background: linear-gradient(var(--color-neutral-100), transparent);
border: 1px solid var(--color-neutral-200);
border-radius: 12px;
Expand Down
2 changes: 1 addition & 1 deletion src/components/sound/favorite/favorite.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
outline: none;

&.isFavorite {
color: #f43f5e;
color: var(--color-foreground);
}
}
7 changes: 3 additions & 4 deletions src/components/sound/sound.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
width: 40px;
height: 40px;
font-size: var(--font-base);
color: var(--color-foreground-subtler);
transition: 0.2s;

&::after {
Expand Down Expand Up @@ -79,12 +80,10 @@

&.selected {
border-color: transparent;
box-shadow:
0 0 0 2px #34d399,
0 10px 20px #34d39933;
box-shadow: 0 0 0 2px var(--color-neutral-800);

& .icon {
color: #34d399;
color: var(--color-foreground);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/styles/variables/color.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
--color-neutral-950: #fafafa;

/* Foreground */
--color-foreground: var(--color-neutral-900);
--color-foreground: var(--color-neutral-950);
--color-foreground-subtle: var(--color-neutral-600);
--color-foreground-subtler: var(--color-neutral-500);
}

0 comments on commit bd517f8

Please sign in to comment.