Skip to content

Commit

Permalink
feat: introduce a smooth transition when switching theme
Browse files Browse the repository at this point in the history
  • Loading branch information
tbouffard committed Aug 8, 2024
1 parent 00e2b66 commit 95e7119
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/stylesheets/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ body {
&::after {
box-sizing: inherit;
}

// Smooth transitions between themes
--duration: 1s;
--timing: ease;
transition:
color var(--duration) var(--timing),
background-color var(--duration) var(--timing);
}

@media screen and (min-width: 1024px) {
Expand Down

0 comments on commit 95e7119

Please sign in to comment.