diff --git a/bun.lockb b/bun.lockb index 2471ce6..5339562 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/index.html b/index.html index f3f8ef8..409258c 100644 --- a/index.html +++ b/index.html @@ -3,9 +3,10 @@ diff --git a/package.json b/package.json index c45a137..7a1679c 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "@unocss/preset-wind": "^0.65.3", "eslint": "^9.17.0", "eslint-plugin-solid": "^0.14.5", - "globals": "^15.14.0", "typescript": "^5.7.2", "typescript-eslint": "^8.19.0", "unocss": "^0.65.3", @@ -28,8 +27,8 @@ "dependencies": { "@solidjs/router": "^0.15.2", "@tanstack/solid-query": "^5.62.10", + "@unocss/preset-attributify": "^65.4.3", "@unocss/reset": "^0.65.3", - "add": "^2.0.6", "solid-js": "^1.9.3" }, "module": "index.ts" diff --git a/shims.d.ts b/shims.d.ts new file mode 100644 index 0000000..43438a5 --- /dev/null +++ b/shims.d.ts @@ -0,0 +1,7 @@ +import type { AttributifyAttributes } from "@unocss/preset-attributify" + +declare module "solid-js" { + namespace JSX { + interface HTMLAttributes extends AttributifyAttributes { } + } +} diff --git a/src/pages/login.tsx b/src/pages/login.tsx index 1855a2e..9c9adcb 100644 --- a/src/pages/login.tsx +++ b/src/pages/login.tsx @@ -14,7 +14,7 @@ export function LoginPage() return (
-

+

Login to Reezer

diff --git a/uno.config.ts b/uno.config.ts index 244a855..2edb6a2 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -1,15 +1,15 @@ import presetWind from "@unocss/preset-wind" -import { defineConfig } from "unocss" +import { defineConfig, presetAttributify } from "unocss" export default defineConfig({ - // ...UnoCSS options presets: [ + presetAttributify({}), presetWind(), ], theme: { colors: { - "c-bg": "var(--bg)", - "c-on-bg": "var(--on-bg)", + "c-surface": "var(--surface)", + "c-on-surface": "var(--on-surface)", "c-root-color": "var(--root-color)", "c-primary": "var(--primary)", "c-on-primary": "var(--on-primary)",