diff --git a/src/app.postcss b/src/app.postcss index 887aeaac..f5df0bf3 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -17,7 +17,7 @@ --primary-foreground: 255 20% 15%; --secondary: 210 40% 96.1%; --secondary-foreground: 222.2 47.4% 11.2%; - --muted: 210 40% 96.1%; + --muted: 228 24% 96%; --muted-foreground: 215.4 16.3% 46.9%; --accent: 340 100% 44%; --accent-foreground: 210 40% 98%; diff --git a/src/lib/components/ui/toggle/toggle.svelte b/src/lib/components/ui/toggle/toggle.svelte index c104be72..6cc3e5a4 100644 --- a/src/lib/components/ui/toggle/toggle.svelte +++ b/src/lib/components/ui/toggle/toggle.svelte @@ -2,7 +2,7 @@ import { type VariantProps, tv } from 'tailwind-variants'; export const toggleVariants = tv({ - base: 'hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-primary data-[state=on]:text-primary-foreground inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-5 [&_svg]:shrink-0', + base: 'hover:bg-muted hover:text-muted-foreground focus-visible:ring-ring data-[state=on]:bg-primary data-[state=on]:text-primary-foreground inline-flex items-center justify-center gap-1 rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-6 [&_svg]:shrink-0', variants: { variant: { default: 'bg-transparent', diff --git a/src/lib/util/promos/January2025.svelte b/src/lib/util/promos/January2025.svelte index ff7518af..f59dd24a 100644 --- a/src/lib/util/promos/January2025.svelte +++ b/src/lib/util/promos/January2025.svelte @@ -137,7 +137,7 @@ in:fade={{ delay: 800 }} out:fade={{ duration: 1000 }}> {currentTagline.label} - + {/key} diff --git a/src/routes/edit/+page.svelte b/src/routes/edit/+page.svelte index 235405b3..ad91fe2d 100644 --- a/src/routes/edit/+page.svelte +++ b/src/routes/edit/+page.svelte @@ -21,7 +21,7 @@ import { stateStore, updateCodeStore, urlsStore } from '$/util/state'; import { initHandler } from '$/util/util'; import { onMount } from 'svelte'; - import CodeIcon from '~icons/material-symbols/code-blocks-outline'; + import CodeIcon from '~icons/custom/code'; import HistoryIcon from '~icons/material-symbols/history'; import GearIcon from '~icons/material-symbols/settings-outline-rounded'; diff --git a/static/icons/code.svg b/static/icons/code.svg new file mode 100644 index 00000000..827519b9 --- /dev/null +++ b/static/icons/code.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/vite.config.js b/vite.config.js index 480af5fb..912c69ae 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,4 +1,5 @@ import { sveltekit } from '@sveltejs/kit/vite'; +import { FileSystemIconLoader } from 'unplugin-icons/loaders'; import Icons from 'unplugin-icons/vite'; import { defineConfig } from 'vitest/config'; @@ -18,7 +19,10 @@ export default defineConfig({ plugins: [ sveltekit(), Icons({ - compiler: 'svelte' + compiler: 'svelte', + customCollections: { + custom: FileSystemIconLoader('./static/icons') + } }), alwaysFullReload ],