Skip to content

Commit

Permalink
docs: override default vitepress brand colors (#2632)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewmayer authored Feb 5, 2024
1 parent b1987ef commit acbdae7
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions docs/.vitepress/theme/index.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,56 @@
:root {
--fkr-hue: 160;
--fkr-saturation: 84%;
--fkr-lightness: 39%;
--fkr-alpha: 14%;
--fkr-step: 2%;
--vp-c-brand-1: hsl(
var(--fkr-hue),
var(--fkr-saturation),
var(--fkr-lightness)
);
--vp-c-brand-2: hsl(
var(--fkr-hue),
var(--fkr-saturation),
calc(var(--fkr-lightness) + var(--fkr-step))
);
--vp-c-brand-3: hsl(
var(--fkr-hue),
var(--fkr-saturation),
calc(var(--fkr-lightness) + 2 * var(--fkr-step))
);
--vp-c-brand-soft: hsla(
var(--fkr-hue),
var(--fkr-saturation),
var(--fkr-lightness),
var(--fkr-alpha)
);
}

.dark {
--vp-c-brand-1: hsl(
var(--fkr-hue),
var(--fkr-saturation),
var(--fkr-lightness)
);
--vp-c-brand-2: hsl(
var(--fkr-hue),
var(--fkr-saturation),
calc(var(--fkr-lightness) - var(--fkr-step))
);
--vp-c-brand-3: hsl(
var(--fkr-hue),
var(--fkr-saturation),
calc(var(--fkr-lightness) - 2 * var(--fkr-step))
);
--vp-c-brand-soft: hsla(
var(--fkr-hue),
var(--fkr-saturation),
var(--fkr-lightness),
var(--fkr-alpha)
);
}

table td * {
display: inline;
}
Expand Down

0 comments on commit acbdae7

Please sign in to comment.