mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
fix: dark mode toggle fixes
This commit is contained in:
parent
886f4a95dd
commit
9dd34d810f
1 changed files with 4 additions and 3 deletions
|
|
@ -1,11 +1,11 @@
|
|||
<script lang="ts">
|
||||
let backgroundColor: 'white' | 'black' = 'white';
|
||||
export let backgroundColor: 'light' | 'dark' = 'light';
|
||||
</script>
|
||||
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class:blue={backgroundColor === 'white'}
|
||||
class:white={backgroundColor === 'black'}
|
||||
class:blue={backgroundColor === 'light'}
|
||||
class:white={backgroundColor === 'dark'}
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="2"
|
||||
stroke-linecap="round"
|
||||
|
|
@ -30,6 +30,7 @@
|
|||
}
|
||||
.blue {
|
||||
@apply stroke-sspsBlue fill-sspsBlue;
|
||||
@apply transition-colors duration-300 hover:fill-sspsBlueDark hover:stroke-sspsBlueDark;
|
||||
}
|
||||
.white {
|
||||
@apply stroke-white fill-white;
|
||||
|
|
|
|||
Loading…
Reference in a new issue