From 4ce40a55fd9dd6f867cc288cfabbe3427c410776 Mon Sep 17 00:00:00 2001 From: Elijah Duffy Date: Thu, 3 Jul 2025 21:17:49 -0700 Subject: [PATCH] clean up consumer styling Consumer now only imports the styles endpoint from their main CSS file. Dark mode is currently permanently disabled, I need to add a JS helper that when used automatically adds the correct class if there is a preferred color scheme. Also gets rid of the whole weird thing where the consumer had to have a SPECIFIC `theme.css` file. --- package.json | 3 ++- src/lib/Combobox.svelte | 2 +- src/lib/DateInput.svelte | 2 +- src/lib/StateMachine.svelte | 2 +- src/lib/TimeInput.svelte | 2 +- src/lib/styles/base.css | 2 ++ src/lib/styles/reference.css | 2 ++ src/lib/styles/tailwind.css | 3 --- 8 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/lib/styles/reference.css diff --git a/package.json b/package.json index 0b46b1a..8beb431 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ ".": { "types": "./src/lib/index.ts", "svelte": "./src/lib/index.ts" - } + }, + "./styles": "./src/lib/styles/base.css" }, "peerDependencies": { "@sveltejs/kit": "^2.20.2", diff --git a/src/lib/Combobox.svelte b/src/lib/Combobox.svelte index 4bd4926..e789af6 100644 --- a/src/lib/Combobox.svelte +++ b/src/lib/Combobox.svelte @@ -462,7 +462,7 @@ {/snippet}