From 2cf510eafa95a83e06b4526ea63b0424ae4c502f Mon Sep 17 00:00:00 2001 From: Realmy <163438634+RealmyTheMan@users.noreply.github.com> Date: Mon, 11 Nov 2024 16:44:34 +0100 Subject: [PATCH] Some more work on the uploader --- src/app.css | 11 ++++++++--- src/lib/components/visual/Uploader.svelte | 12 ++++++------ src/routes/+page.svelte | 11 ++++++++++- tailwind.config.ts | 5 +++++ 4 files changed, 29 insertions(+), 10 deletions(-) diff --git a/src/app.css b/src/app.css index 6751996..41c355f 100644 --- a/src/app.css +++ b/src/app.css @@ -2,7 +2,12 @@ @import "tailwindcss/components"; @import "tailwindcss/utilities"; -html, -body { - height: 100%; +:root { + --bg: hsl(0, 0%, 100%); + --fg: hsl(0, 0%, 10%); + --fg-muted: hsl(0, 0%, 40%); +} + +body { + @apply text-foreground bg-background; } diff --git a/src/lib/components/visual/Uploader.svelte b/src/lib/components/visual/Uploader.svelte index 559322d..e69d855 100644 --- a/src/lib/components/visual/Uploader.svelte +++ b/src/lib/components/visual/Uploader.svelte @@ -8,12 +8,12 @@ let { files = $bindable() }: Props = $props(); -
-
- -
+
+ +

Drop or click to upload files

+

the

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e73584f..cc34a91 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -4,4 +4,13 @@ let files = $state(); - +
+ +
+ + diff --git a/tailwind.config.ts b/tailwind.config.ts index 2ba1795..5df2604 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -5,6 +5,11 @@ export default { theme: { extend: {}, + colors: { + background: "var(--bg)", + foreground: "var(--fg)", + foregroundMuted: "var(--fg-muted)", + }, }, plugins: [],