Skip to content

Commit

Permalink
Update dark theme styling
Browse files Browse the repository at this point in the history
  • Loading branch information
karlomikus committed Sep 24, 2023
1 parent e4c6b9d commit 377997b
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
5 changes: 4 additions & 1 deletion src/assets/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

:root {
/* Base color scheme */
--clr-accent-50: #FAF5F8;
/* --clr-accent-50: #FAF5F8; */
--clr-accent-50: #f9f3f6;
--clr-accent-100: #F5EAF2;
--clr-accent-200: #ECD5E5;
--clr-accent-300: #E1BDD5;
Expand All @@ -13,6 +14,7 @@
--clr-accent-700: #AF5091;
--clr-accent-800: #8F4277;
--clr-accent-900: #693057;
--clr-accent-950: #411632;

--clr-gray-50: #F5F4F5;
--clr-gray-100: #EBEAEB;
Expand Down Expand Up @@ -46,6 +48,7 @@
--clr-dark-main-950: #120e1a;

--clr-rating: rgb(235, 133, 0);
--clr-rating-bg: rgb(255, 238, 216);

--shadow-color: 324deg 10% 71%;
--shadow-elevation-low:
Expand Down
2 changes: 1 addition & 1 deletion src/assets/buttons.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
}

.dark-theme .button.button--dark {
background-color: var(--clr-dark-main-200);
background-color: var(--clr-accent-500);
color: var(--clr-dark-main-800);
}

Expand Down
4 changes: 2 additions & 2 deletions src/assets/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}

.dialog__overlay {
background-color: rgba(21, 13, 34, 0.5);
background-color: rgba(21, 13, 34, 0.8);
position: fixed;
inset: 0;
pointer-events: auto;
Expand All @@ -54,7 +54,7 @@
}

.dark-theme .dialog__content {
background-color: var(--clr-dark-main-950);
background-color: var(--clr-dark-main-800);
border: 1px solid var(--clr-dark-main-800);
}

Expand Down
2 changes: 1 addition & 1 deletion src/assets/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
--form-clr-text: var(--clr-gray-100);
--form-clr-bg: var(--clr-dark-main-700);
--form-clr-bg-focus: var(--clr-dark-main-700);
--form-clr-border: var(--clr-dark-main-900);
--form-clr-border: var(--clr-dark-main-600);
--form-clr-border-focus: var(--clr-accent-500);
--form-clr-placeholder: var(--clr-gray-400);
}
Expand Down
2 changes: 1 addition & 1 deletion src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ main {
}

.dark-theme .page-subtitle {
--ps-clr-bg: var(--clr-dark-main-900);
--ps-clr-bg: rgba(0, 0, 0, .2);
}

h3.form-section-title {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Cocktail/CocktailRating.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default {
.resource-rating__alt {
color: var(--clr-rating);
background-color: rgb(255, 238, 216);
background-color: var(--clr-rating-bg);
display: block;
padding: 0 5px;
border-radius: var(--radius-1);
Expand Down
8 changes: 6 additions & 2 deletions src/components/ImageUpload.vue
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ export default {
}
.dark-theme .image-upload__select {
--iu-clr-bg: linear-gradient(160deg, var(--clr-dark-main-900) 10%, var(--clr-dark-main-950) 110%);
--iu-clr-border: var(--clr-dark-main-800);
--iu-clr-bg: var(--clr-dark-main-700);
--iu-clr-border: var(--clr-dark-main-600);
}
@media (max-width: 450px) {
Expand All @@ -213,6 +213,10 @@ export default {
background-color: #fff;
}
.dark-theme .image-upload__select:is(:hover, :active, :focus) {
background-color: var(--clr-dark-main-700);
}
.image-upload__select__icon {
width: 60px;
height: 60px;
Expand Down
8 changes: 4 additions & 4 deletions src/components/MiniRating.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ export default {
<style scoped>
.mini-rating {
display: inline;
background-color: rgb(252, 242, 215);
background-color: var(--clr-rating-bg);
font-family: var(--font-primary);
color: rgb(180, 108, 0);
font-size: 0.85rem;
color: var(--clr-rating);
font-size: 0.75rem;
padding: 1px 5px;
border-radius: var(--radius-2);
}
.dark-theme .mini-rating {
background-color: rgb(94, 52, 5);
background-color: rgb(167, 75, 22);
color: rgb(255, 236, 207);
}
Expand Down

0 comments on commit 377997b

Please sign in to comment.