diff --git a/src/components/column/card.tsx b/src/components/column/card.tsx
index 551e5a1..248d21b 100644
--- a/src/components/column/card.tsx
+++ b/src/components/column/card.tsx
@@ -154,18 +154,18 @@ function NewsCard({ id, inView, handleListeners }: NewsCardProps) {
diff --git a/src/components/header.tsx b/src/components/header.tsx
index 51b8ea5..8a9b9cc 100644
--- a/src/components/header.tsx
+++ b/src/components/header.tsx
@@ -15,7 +15,7 @@ function ThemeToggle() {
)
@@ -31,7 +31,7 @@ function LoginIn() {
return (
diff --git a/src/styles/globals.css b/src/styles/globals.css
index 3a2b239..985ed51 100644
--- a/src/styles/globals.css
+++ b/src/styles/globals.css
@@ -20,7 +20,7 @@ html.dark {
}
body {
- --at-apply: color-base bg-base sprinkle-red;
+ --at-apply: color-base bg-base sprinkle-primary;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
diff --git a/uno.config.ts b/uno.config.ts
index d0cda97..ae60665 100644
--- a/uno.config.ts
+++ b/uno.config.ts
@@ -1,6 +1,5 @@
import { defineConfig, presetIcons, presetUno, transformerDirectives, transformerVariantGroup } from "unocss"
import { hex2rgba } from "@unocss/rule-utils"
-import { colors } from "unocss/preset-mini"
import { sources } from "./shared/sources"
export default defineConfig({
@@ -13,15 +12,15 @@ export default defineConfig({
}),
],
rules: [
- [/^sprinkle-(.+)$/, ([_, d]) => {
- if (d in colors) {
+ [/^sprinkle-(.+)$/, ([_, d], { theme }) => {
+ // @ts-expect-error >_<
+ if (theme.colors[d]) {
// @ts-expect-error >_<
- const hex: any = colors[d]?.[400]
+ const hex: any = theme.colors[d]?.[400]
if (hex) {
return {
"background-image": `radial-gradient(ellipse 80% 80% at 50% -30%,
- rgba(${hex2rgba(hex)?.join(", ")}, 0.3),
- rgba(255, 255, 255, 0));`,
+ rgba(${hex2rgba(hex)?.join(", ")}, 0.3), rgba(255, 255, 255, 0));`,
}
}
}
@@ -37,15 +36,10 @@ export default defineConfig({
shortcuts: {
"color-base": "color-neutral-800 dark:color-neutral-300",
"bg-base": "bg-white dark:bg-dark-600",
-
- "color-active": "color-primary-600 dark:color-primary-400",
- "border-active": "border-primary-600/25 dark:border-primary-400/25",
- "bg-active": "bg-primary-400/10",
-
- "btn-pure": "op50 hover:op75",
+ "btn": "op50 hover:op85",
},
safelist: [
- ...["bg", "color", "border", "sprinkle", "shadow"].map(t => Object.values(sources).map(c => `${t}-${c.color}`)).flat(1),
+ ...["bg", "color", "border", "sprinkle", "shadow"].map(t => [...Object.values(sources)].map(c => `${t}-${c.color}`)).flat(1),
],
extendTheme: (theme) => {
// @ts-expect-error >_<