Add a dark mode
This commit is contained in:
parent
07c7e63ee7
commit
0325139461
12 changed files with 199 additions and 35 deletions
|
|
@ -1,4 +1,6 @@
|
|||
<script lang="ts">
|
||||
import { theme } from "$lib/stores/theme";
|
||||
|
||||
interface Props {
|
||||
email: string;
|
||||
}
|
||||
|
|
@ -24,7 +26,11 @@
|
|||
}
|
||||
</script>
|
||||
|
||||
<div class="bg-light rounded rounded-4 p-4">
|
||||
<div
|
||||
class="rounded rounded-4 p-4"
|
||||
class:bg-light={$theme === "light"}
|
||||
class:bg-secondary={$theme !== "light"}
|
||||
>
|
||||
<div class="input-group">
|
||||
<input
|
||||
bind:this={inputElement}
|
||||
|
|
@ -36,6 +42,8 @@
|
|||
/>
|
||||
<button
|
||||
class="btn btn-outline-primary clipboard-btn"
|
||||
class:btn-outline-primary={$theme === "light"}
|
||||
class:btn-primary={$theme !== "light"}
|
||||
onclick={copyToClipboard}
|
||||
title="Copy to clipboard"
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue