()
useEffect(() => {
if (bannerRef?.current) {
@@ -124,7 +125,8 @@ export const SiteHeader: React.FC<{
.getColorAsync(bannerRef.current)
.then((color) => {
setAverageColor(chroma(color.hex).hex())
- setHoverColor(chroma(color.hex).luminance(0.9).hex())
+ setHoverColor(chroma(color.hex).luminance(0.8).hex())
+ setAutoThemeColor(chroma(color.hex).saturate(3).luminance(0.3).hex())
})
.catch((e) => {
console.warn(e)
@@ -134,7 +136,8 @@ export const SiteHeader: React.FC<{
.getColorAsync(avatarRef.current)
.then((color) => {
setAverageColor(chroma(color.hex).luminance(0.95).hex())
- setHoverColor(chroma(color.hex).luminance(0.9).hex())
+ setHoverColor(chroma(color.hex).luminance(0.8).hex())
+ setAutoThemeColor(chroma(color.hex).saturate(3).luminance(0.3).hex())
})
.catch((e) => {
console.warn(e)
@@ -148,6 +151,7 @@ export const SiteHeader: React.FC<{
)}
diff --git a/src/components/ui/Button.tsx b/src/components/ui/Button.tsx
index 7d556523..ffe0fa6a 100644
--- a/src/components/ui/Button.tsx
+++ b/src/components/ui/Button.tsx
@@ -62,7 +62,7 @@ export const Button = React.forwardRef<
isAutoWidth && `is-auto-width`,
size && `is-${size}`,
`is-${variant || "primary"}`,
- rounded === "full" ? "rounded-full" : "rounded-lg",
+ rounded === "full" ? "rounded-full" : "rounded-md",
)}
>
{children}
diff --git a/src/css/prose.css b/src/css/prose.css
index 9444bc9f..10325227 100644
--- a/src/css/prose.css
+++ b/src/css/prose.css
@@ -83,7 +83,7 @@
}
.prose a {
- @apply text-accent-emphasis;
+ @apply text-accent;
@apply hover:underline;
}
diff --git a/src/css/tailwind.css b/src/css/tailwind.css
index 16ae653b..3a94e7a1 100644
--- a/src/css/tailwind.css
+++ b/src/css/tailwind.css
@@ -37,10 +37,10 @@ a {
@apply h-8;
@apply px-5;
@apply min-w-[100px];
- @apply shadow-button;
@apply whitespace-nowrap;
@apply font-medium;
@apply transition-colors;
+ @apply active:scale-95;
}
.button.is-auto-width {
@@ -75,7 +75,6 @@ a {
}
.button.is-primary {
- --shadow-color-button: var(--theme-color-emphasis);
@apply text-white;
@apply fill-accent;
@apply bg-accent;
@@ -138,17 +137,14 @@ a {
}
.button.is-green {
- --shadow-color-button: theme("colors.green.700");
@apply bg-green-500 hover:bg-green-600 focus:bg-green-700;
}
.button.is-red {
- --shadow-color-button: theme("colors.red.700");
@apply bg-red-500 hover:bg-red-600 focus:bg-red-700;
}
.button.is-gray {
- --shadow-color-button: theme("colors.gray.700");
@apply bg-gray-500 hover:bg-gray-600 focus:bg-gray-700;
}
diff --git a/src/css/variables.css b/src/css/variables.css
index 2ef0c70f..fdb147e7 100644
--- a/src/css/variables.css
+++ b/src/css/variables.css
@@ -1,10 +1,7 @@
:root {
--border-color: #eee;
--font-fans: theme("fontFamily.sans");
- --shadow-color-button: theme("colors.gray.300");
- --theme-color: theme("colors.indigo.600");
- --theme-color-dark: theme("colors.indigo.700");
- --theme-color-emphasis: var(--theme-color-dark);
+ --theme-color: var(--auto-theme-color, #0f172a);
--header-height: auto;
/* Accent color for form controls */
accent-color: var(--theme-color);
diff --git a/src/pages/dashboard/[subdomain]/settings/css.tsx b/src/pages/dashboard/[subdomain]/settings/css.tsx
index 4d4ec215..462cb4ed 100644
--- a/src/pages/dashboard/[subdomain]/settings/css.tsx
+++ b/src/pages/dashboard/[subdomain]/settings/css.tsx
@@ -84,11 +84,6 @@ export default function SettingsCSSPage() {
--theme-color: #4f46e5;
-
-
- --theme-color-emphasis: #4338ca;
-
-
--header-height: auto;
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index fe043629..77a9cdf6 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -348,13 +348,9 @@ export default function Home() {
{showcaseSites.data?.map((site: any) => (
diff --git a/tailwind.config.js b/tailwind.config.js
index 1577fc12..a2eeaf32 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -12,7 +12,6 @@ module.exports = {
colors: {
border: "var(--border-color)",
accent: "var(--theme-color)",
- "accent-emphasis": "var(--theme-color-emphasis)",
hover: "var(--hover-color)",
},
spacing: {