From 2cd6290da9b60323b4d087ba026e3ffa2bff6830 Mon Sep 17 00:00:00 2001 From: ajdj100 Date: Tue, 12 Aug 2025 12:45:24 -0400 Subject: [PATCH] added shadcn setup and base style --- ui/components.json | 20 +++++ ui/package-lock.json | 72 ++++++++++++++++++ ui/package.json | 6 ++ ui/src/assets/base.css | 161 +++++++++++++++++++++++++++++++++++++++++ ui/src/lib/utils.js | 6 ++ 5 files changed, 265 insertions(+) create mode 100644 ui/components.json create mode 100644 ui/src/lib/utils.js diff --git a/ui/components.json b/ui/components.json new file mode 100644 index 0000000..e45e4bd --- /dev/null +++ b/ui/components.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://shadcn-vue.com/schema.json", + "style": "new-york", + "typescript": false, + "tailwind": { + "config": "", + "css": "src/assets/base.css", + "baseColor": "slate", + "cssVariables": true, + "prefix": "" + }, + "aliases": { + "components": "@/components", + "composables": "@/composables", + "utils": "@/lib/utils", + "ui": "@/components/ui", + "lib": "@/lib" + }, + "iconLibrary": "lucide" +} \ No newline at end of file diff --git a/ui/package-lock.json b/ui/package-lock.json index 780e7b8..37cea1d 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -9,12 +9,18 @@ "version": "0.0.0", "dependencies": { "@tailwindcss/vite": "^4.1.11", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "lucide-vue-next": "^0.539.0", "pinia": "^3.0.3", + "tailwind-merge": "^3.3.1", "tailwindcss": "^4.1.11", + "tw-animate-css": "^1.3.6", "vue": "^3.5.18", "vue-router": "^4.5.1" }, "devDependencies": { + "@types/node": "^24.2.1", "@vitejs/plugin-vue": "^6.0.1", "vite": "^7.0.6", "vite-plugin-vue-devtools": "^8.0.0" @@ -1516,6 +1522,16 @@ "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==", "license": "MIT" }, + "node_modules/@types/node": { + "version": "24.2.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-24.2.1.tgz", + "integrity": "sha512-DRh5K+ka5eJic8CjH7td8QpYEV6Zo10gfRkjHCO3weqZHWDtAaSTFtl4+VMqOJ4N5jcuhZ9/l+yy8rVgw7BQeQ==", + "devOptional": true, + "license": "MIT", + "dependencies": { + "undici-types": "~7.10.0" + } + }, "node_modules/@vitejs/plugin-vue": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-6.0.1.tgz", @@ -1880,6 +1896,27 @@ "node": ">=18" } }, + "node_modules/class-variance-authority": { + "version": "0.7.1", + "resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.7.1.tgz", + "integrity": "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg==", + "license": "Apache-2.0", + "dependencies": { + "clsx": "^2.1.1" + }, + "funding": { + "url": "https://polar.sh/cva" + } + }, + "node_modules/clsx": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-2.1.1.tgz", + "integrity": "sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, "node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", @@ -2608,6 +2645,15 @@ "yallist": "^3.0.2" } }, + "node_modules/lucide-vue-next": { + "version": "0.539.0", + "resolved": "https://registry.npmjs.org/lucide-vue-next/-/lucide-vue-next-0.539.0.tgz", + "integrity": "sha512-8Y75ekxsBqW+9YZPCbxE6KXoCbNmJYUujKP+nK2cIqmONJXvUSeyroEW4DV1Kjlw8ZvmfKwP0FpdjPzuKvRsQw==", + "license": "ISC", + "peerDependencies": { + "vue": ">=3.0.1" + } + }, "node_modules/magic-string": { "version": "0.30.17", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.17.tgz", @@ -3038,6 +3084,16 @@ "node": ">=16" } }, + "node_modules/tailwind-merge": { + "version": "3.3.1", + "resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-3.3.1.tgz", + "integrity": "sha512-gBXpgUm/3rp1lMZZrM/w7D8GKqshif0zAymAhbCyIt8KMe+0v9DQ7cdYLR4FHH/cKpdTXb+A/tKKU3eolfsI+g==", + "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/dcastil" + } + }, "node_modules/tailwindcss": { "version": "4.1.11", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.11.tgz", @@ -3105,6 +3161,22 @@ "node": ">=6" } }, + "node_modules/tw-animate-css": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/tw-animate-css/-/tw-animate-css-1.3.6.tgz", + "integrity": "sha512-9dy0R9UsYEGmgf26L8UcHiLmSFTHa9+D7+dAt/G/sF5dCnPePZbfgDYinc7/UzAM7g/baVrmS6m9yEpU46d+LA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Wombosvideo" + } + }, + "node_modules/undici-types": { + "version": "7.10.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.10.0.tgz", + "integrity": "sha512-t5Fy/nfn+14LuOc2KNYg75vZqClpAiqscVvMygNnlsHBFpSXdJaYtXMcdNLpl/Qvc3P2cB3s6lOV51nqsFq4ag==", + "devOptional": true, + "license": "MIT" + }, "node_modules/unicorn-magic": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/unicorn-magic/-/unicorn-magic-0.3.0.tgz", diff --git a/ui/package.json b/ui/package.json index 947deeb..6d4d3c6 100644 --- a/ui/package.json +++ b/ui/package.json @@ -13,12 +13,18 @@ }, "dependencies": { "@tailwindcss/vite": "^4.1.11", + "class-variance-authority": "^0.7.1", + "clsx": "^2.1.1", + "lucide-vue-next": "^0.539.0", "pinia": "^3.0.3", + "tailwind-merge": "^3.3.1", "tailwindcss": "^4.1.11", + "tw-animate-css": "^1.3.6", "vue": "^3.5.18", "vue-router": "^4.5.1" }, "devDependencies": { + "@types/node": "^24.2.1", "@vitejs/plugin-vue": "^6.0.1", "vite": "^7.0.6", "vite-plugin-vue-devtools": "^8.0.0" diff --git a/ui/src/assets/base.css b/ui/src/assets/base.css index f1d8c73..1f634d6 100644 --- a/ui/src/assets/base.css +++ b/ui/src/assets/base.css @@ -1 +1,162 @@ @import "tailwindcss"; +@import "tw-animate-css"; + +:root { + --background: oklch(0.9911 0 0); + --foreground: oklch(0.2046 0 0); + --card: oklch(0.9911 0 0); + --card-foreground: oklch(0.2046 0 0); + --popover: oklch(0.9911 0 0); + --popover-foreground: oklch(0.4386 0 0); + --primary: oklch(0.8352 0.1285 161.8268); + --primary-foreground: oklch(0.2626 0.0147 166.4589); + --secondary: oklch(0.9940 0 0); + --secondary-foreground: oklch(0.2046 0 0); + --muted: oklch(0.9461 0 0); + --muted-foreground: oklch(0.2435 0 0); + --accent: oklch(0.9461 0 0); + --accent-foreground: oklch(0.2435 0 0); + --destructive: oklch(0.5550 0.1905 33.4006); + --destructive-foreground: oklch(0.9934 0.0032 17.2118); + --border: oklch(0.9037 0 0); + --input: oklch(0.9731 0 0); + --ring: oklch(0.8352 0.1285 161.8268); + --chart-1: oklch(0.8352 0.1285 161.8268); + --chart-2: oklch(0.6169 0.1915 260.6946); + --chart-3: oklch(0.6085 0.2190 293.8198); + --chart-4: oklch(0.7757 0.1642 72.2601); + --chart-5: oklch(0.6966 0.1466 163.7346); + --sidebar: oklch(0.9911 0 0); + --sidebar-foreground: oklch(0.5452 0 0); + --sidebar-primary: oklch(0.8352 0.1285 161.8268); + --sidebar-primary-foreground: oklch(0.2626 0.0147 166.4589); + --sidebar-accent: oklch(0.9461 0 0); + --sidebar-accent-foreground: oklch(0.2435 0 0); + --sidebar-border: oklch(0.9037 0 0); + --sidebar-ring: oklch(0.8352 0.1285 161.8268); + --font-sans: Outfit, sans-serif; + --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; + --font-mono: monospace; + --radius: 0.5rem; + --shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09); + --shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09); + --shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17); + --shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17); + --shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 2px 4px -1px hsl(0 0% 0% / 0.17); + --shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 4px 6px -1px hsl(0 0% 0% / 0.17); + --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 8px 10px -1px hsl(0 0% 0% / 0.17); + --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.43); + --tracking-normal: 0.025em; + --spacing: 0.25rem; +} + +.dark { + --background: oklch(0.1822 0 0); + --foreground: oklch(0.9288 0.0126 255.5078); + --card: oklch(0.2046 0 0); + --card-foreground: oklch(0.9288 0.0126 255.5078); + --popover: oklch(0.2603 0 0); + --popover-foreground: oklch(0.7348 0 0); + --primary: oklch(0.4370 0.1024 157.9007); + --primary-foreground: oklch(0.9213 0.0135 167.1556); + --secondary: oklch(0.2603 0 0); + --secondary-foreground: oklch(0.9851 0 0); + --muted: oklch(0.2393 0 0); + --muted-foreground: oklch(0.7122 0 0); + --accent: oklch(0.3132 0 0); + --accent-foreground: oklch(0.9851 0 0); + --destructive: oklch(0.3139 0.0840 30.6643); + --destructive-foreground: oklch(0.9368 0.0045 34.3092); + --border: oklch(0.2809 0 0); + --input: oklch(0.2603 0 0); + --ring: oklch(0.8007 0.1803 152.1957); + --chart-1: oklch(0.8007 0.1803 152.1957); + --chart-2: oklch(0.7073 0.1463 256.1648); + --chart-3: oklch(0.7107 0.1593 294.4413); + --chart-4: oklch(0.8445 0.1657 86.5249); + --chart-5: oklch(0.7854 0.1314 183.6828); + --sidebar: oklch(0.1822 0 0); + --sidebar-foreground: oklch(0.6301 0 0); + --sidebar-primary: oklch(0.4370 0.1024 157.9007); + --sidebar-primary-foreground: oklch(0.9213 0.0135 167.1556); + --sidebar-accent: oklch(0.3132 0 0); + --sidebar-accent-foreground: oklch(0.9851 0 0); + --sidebar-border: oklch(0.2809 0 0); + --sidebar-ring: oklch(0.8007 0.1803 152.1957); + --font-sans: Outfit, sans-serif; + --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif; + --font-mono: monospace; + --radius: 0.5rem; + --shadow-2xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09); + --shadow-xs: 0px 1px 3px 0px hsl(0 0% 0% / 0.09); + --shadow-sm: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17); + --shadow: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 1px 2px -1px hsl(0 0% 0% / 0.17); + --shadow-md: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 2px 4px -1px hsl(0 0% 0% / 0.17); + --shadow-lg: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 4px 6px -1px hsl(0 0% 0% / 0.17); + --shadow-xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.17), 0px 8px 10px -1px hsl(0 0% 0% / 0.17); + --shadow-2xl: 0px 1px 3px 0px hsl(0 0% 0% / 0.43); +} + +@theme inline { + --color-background: var(--background); + --color-foreground: var(--foreground); + --color-card: var(--card); + --color-card-foreground: var(--card-foreground); + --color-popover: var(--popover); + --color-popover-foreground: var(--popover-foreground); + --color-primary: var(--primary); + --color-primary-foreground: var(--primary-foreground); + --color-secondary: var(--secondary); + --color-secondary-foreground: var(--secondary-foreground); + --color-muted: var(--muted); + --color-muted-foreground: var(--muted-foreground); + --color-accent: var(--accent); + --color-accent-foreground: var(--accent-foreground); + --color-destructive: var(--destructive); + --color-destructive-foreground: var(--destructive-foreground); + --color-border: var(--border); + --color-input: var(--input); + --color-ring: var(--ring); + --color-chart-1: var(--chart-1); + --color-chart-2: var(--chart-2); + --color-chart-3: var(--chart-3); + --color-chart-4: var(--chart-4); + --color-chart-5: var(--chart-5); + --color-sidebar: var(--sidebar); + --color-sidebar-foreground: var(--sidebar-foreground); + --color-sidebar-primary: var(--sidebar-primary); + --color-sidebar-primary-foreground: var(--sidebar-primary-foreground); + --color-sidebar-accent: var(--sidebar-accent); + --color-sidebar-accent-foreground: var(--sidebar-accent-foreground); + --color-sidebar-border: var(--sidebar-border); + --color-sidebar-ring: var(--sidebar-ring); + + --font-sans: var(--font-sans); + --font-mono: var(--font-mono); + --font-serif: var(--font-serif); + + --radius-sm: calc(var(--radius) - 4px); + --radius-md: calc(var(--radius) - 2px); + --radius-lg: var(--radius); + --radius-xl: calc(var(--radius) + 4px); + + --shadow-2xs: var(--shadow-2xs); + --shadow-xs: var(--shadow-xs); + --shadow-sm: var(--shadow-sm); + --shadow: var(--shadow); + --shadow-md: var(--shadow-md); + --shadow-lg: var(--shadow-lg); + --shadow-xl: var(--shadow-xl); + --shadow-2xl: var(--shadow-2xl); + + --tracking-tighter: calc(var(--tracking-normal) - 0.05em); + --tracking-tight: calc(var(--tracking-normal) - 0.025em); + --tracking-normal: var(--tracking-normal); + --tracking-wide: calc(var(--tracking-normal) + 0.025em); + --tracking-wider: calc(var(--tracking-normal) + 0.05em); + --tracking-widest: calc(var(--tracking-normal) + 0.1em); +} + +body { + letter-spacing: var(--tracking-normal); +} \ No newline at end of file diff --git a/ui/src/lib/utils.js b/ui/src/lib/utils.js new file mode 100644 index 0000000..378ccef --- /dev/null +++ b/ui/src/lib/utils.js @@ -0,0 +1,6 @@ +import { clsx } from "clsx"; +import { twMerge } from "tailwind-merge"; + +export function cn(...inputs) { + return twMerge(clsx(inputs)); +}