diff --git a/.prettierrc b/.prettierrc index e0366fc9..a0a85589 100644 --- a/.prettierrc +++ b/.prettierrc @@ -4,6 +4,6 @@ "bracketSameLine": true, "trailingComma": "none", "printWidth": 100, - "tailwindConfig": "./tailwind.config.cjs", + "tailwindConfig": "./tailwind.config.js", "plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index e9221ced..db5750c1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -28,5 +28,8 @@ "vitest.enable": true, "testing.autoRun.mode": "rerun", "svelte.enable-ts-plugin": true, - "githubPullRequests.ignoredPullRequestBranches": ["develop"] + "githubPullRequests.ignoredPullRequestBranches": ["develop"], + "[svelte]": { + "editor.defaultFormatter": "svelte.svelte-vscode" + } } diff --git a/package.json b/package.json index 9b57d735..6c7f2b85 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ "@typescript-eslint/parser": "6.21.0", "@vitest/ui": "^2.1.4", "autoprefixer": "^10.4.14", - "bits-ui": "^1.3.4", + "bits-ui": "^1.3.6", "c8": "7.14.0", "chai": "^4.3.7", "clsx": "^2.1.1", diff --git a/src/app.postcss b/src/app.postcss index 9e939c87..fe65a04f 100644 --- a/src/app.postcss +++ b/src/app.postcss @@ -3,73 +3,73 @@ @tailwind base; @tailwind components; @tailwind utilities; - + @layer base { :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; - + --muted: 210 40% 96.1%; --muted-foreground: 215.4 16.3% 46.9%; - + --popover: 0 0% 100%; --popover-foreground: 222.2 84% 4.9%; - + --card: 0 0% 100%; --card-foreground: 222.2 84% 4.9%; - + --border: 214.3 31.8% 91.4%; --input: 214.3 31.8% 91.4%; - - --primary: 222.2 47.4% 11.2%; + + --primary: 344 100% 61%; --primary-foreground: 210 40% 98%; - - --secondary: 210 40% 96.1%; - --secondary-foreground: 222.2 47.4% 11.2%; - + + --secondary: 248 24% 14%; + --secondary-foreground: 0 0% 100%; + --accent: 210 40% 96.1%; --accent-foreground: 222.2 47.4% 11.2%; - + --destructive: 0 72.2% 50.6%; --destructive-foreground: 210 40% 98%; - + --ring: 222.2 84% 4.9%; - + --radius: 0.5rem; } - + .dark { --background: 222.2 84% 4.9%; --foreground: 210 40% 98%; - + --muted: 217.2 32.6% 17.5%; --muted-foreground: 215 20.2% 65.1%; - + --popover: 222.2 84% 4.9%; --popover-foreground: 210 40% 98%; - + --card: 222.2 84% 4.9%; --card-foreground: 210 40% 98%; - + --border: 217.2 32.6% 17.5%; --input: 217.2 32.6% 17.5%; - - --primary: 210 40% 98%; - --primary-foreground: 222.2 47.4% 11.2%; - - --secondary: 217.2 32.6% 17.5%; - --secondary-foreground: 210 40% 98%; - + + --primary: 344 100% 61%; + --primary-foreground: 210 40% 98%; + + --secondary: 248 24% 14%; + --secondary-foreground: 0 0% 100%; + --accent: 217.2 32.6% 17.5%; --accent-foreground: 210 40% 98%; - + --destructive: 0 62.8% 30.6%; --destructive-foreground: 210 40% 98%; - + --ring: 212.7 26.8% 83.9%; } } - + @layer base { * { @apply border-border; @@ -79,7 +79,6 @@ } } - .d { @apply border border-red-500; } diff --git a/src/lib/components/DropdownNavMenu.svelte b/src/lib/components/DropdownNavMenu.svelte index abc1881f..07765ccf 100644 --- a/src/lib/components/DropdownNavMenu.svelte +++ b/src/lib/components/DropdownNavMenu.svelte @@ -1,4 +1,6 @@ - + + diff --git a/src/lib/components/Navbar.svelte b/src/lib/components/Navbar.svelte index d8949222..e7a91ae5 100644 --- a/src/lib/components/Navbar.svelte +++ b/src/lib/components/Navbar.svelte @@ -13,8 +13,9 @@ import { MCBaseURL } from '$lib/util/util'; import type { ComponentProps } from 'svelte'; import DropdownNavMenu from './DropdownNavMenu.svelte'; - import Privacy from './Privacy.svelte'; - import Theme from './Theme.svelte'; + import { Button } from './ui/button'; + import { Separator } from './ui/separator'; + import { Switch } from './ui/switch'; const { isEnabledMermaidChartLinks } = env; @@ -83,12 +84,14 @@ {/if} - +