Skip to content

Commit

Permalink
completes working themes with system, dark and light working well.
Browse files Browse the repository at this point in the history
  • Loading branch information
stolinski committed Sep 8, 2023
1 parent 692bbe9 commit 039ac02
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/lib/ShowCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<article
class={display}
style={display === 'highlight'
? `--bg: var(--black); background-image:linear-gradient(to top, #00000000, var(--bg)), url(${white_grit})`
? `background-image:linear-gradient(to top, #00000000, var(--bg)), url(${white_grit})`
: '--bg=var(--bg-sheet)'}
>
<a href={`/shows/${show.number}/${show.slug}`}>
Expand Down Expand Up @@ -85,8 +85,8 @@
}
&.highlight {
--fg: var(--bg-sheet);
--bg: var(--fg-sheet);
--bg: var(--bg-root);
--fg: var(--fg-root);
border: none;
grid-column: 1 / -1;
}
Expand Down
2 changes: 2 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@

<style lang="postcss">
.theme-wrapper {
--bg-root: var(--bg);
--fg-root: var(--fg);
min-height: 100vh;
border-top: var(--border);
border-color: var(--primary);
Expand Down
4 changes: 2 additions & 2 deletions src/styles/themes/dark.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* System theme */
.theme-system {
--bg-sheet: var(--white);
--bg: var(--blackish);
--bg: var(--black);
--fg: var(--white);
--fg-sheet: var(--black);
--primary: var(--yellow);
Expand Down Expand Up @@ -37,7 +37,7 @@

.theme-light {
--bg-sheet: var(--white);
--bg: var(--blackish);
--bg: var(--black);
--fg: var(--white);
--fg-sheet: var(--black);
--primary: var(--yellow);
Expand Down
4 changes: 2 additions & 2 deletions src/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@
/* Light Theme as the default */
/* Backgrounds */

--bg-sheet: var(--white);
--bg: var(--blackish);
--bg: var(--black);
--bg-1: var(--black-1);
--bg-sheet: var(--white);

/* Foreground */
--fg: var(--white);
Expand Down

0 comments on commit 039ac02

Please sign in to comment.