feat: support overriding banner background color with var --banner-bg-color
This commit is contained in:
@@ -124,7 +124,7 @@ export const SiteHeader: React.FC<{
|
||||
<div
|
||||
className="xlog-banner absolute top-0 bottom-0 left-0 right-0 -z-10 overflow-hidden"
|
||||
style={{
|
||||
backgroundColor: averageColor,
|
||||
backgroundColor: `var(--banner-bg-color, ${averageColor})`,
|
||||
}}
|
||||
>
|
||||
{(() => {
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
--theme-color-dark: theme("colors.indigo.700");
|
||||
--theme-color-emphasis: var(--theme-color-dark);
|
||||
--header-height: auto;
|
||||
--banner-bg-color: #fff;
|
||||
/* Accent color for form controls */
|
||||
accent-color: var(--theme-color);
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ export default function SettingsCSSPage() {
|
||||
</p>
|
||||
<p>
|
||||
<span className="bg-zinc-200 rounded-lg px-2">
|
||||
--banner-bg-color: #fff;
|
||||
--banner-bg-color: #000;
|
||||
</span>
|
||||
</p>
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user