fix bg styles being compiled away by tailwind
This commit is contained in:
parent
269e674872
commit
9f85dc658f
@ -23,12 +23,15 @@ const getDifferentRand = (range, lastNs, iterations = 0) => {
|
|||||||
return n;
|
return n;
|
||||||
};
|
};
|
||||||
|
|
||||||
const getButtonClasses = (isClient, colorMode = "vibrant") =>
|
const getButtonClasses = (isClient, colorMode = "vibrant") => {
|
||||||
classnames(
|
const textColor = colorMode === 'vibrant' ? 'text-vibrant-light' : 'text-muted-light'
|
||||||
|
const bgColor = colorMode === 'vibrant' ? 'bg-vibrant-dark' : 'bg-muted-dark'
|
||||||
|
return classnames(
|
||||||
"z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md hover:underline",
|
"z-20 rounded-md text-md inline-block px-3 py-2 my-1 mr-2 text-md hover:underline",
|
||||||
isClient && `text-${colorMode}-light bg-${colorMode}-dark blurred-or-opaque-bg-2`,
|
isClient && `${textColor} ${bgColor} blurred-or-opaque-bg-2`,
|
||||||
isClient && colorMode === "muted" ? `hover:bg-muted` : ""
|
isClient && colorMode === "muted" ? `hover:bg-muted` : ""
|
||||||
);
|
);
|
||||||
|
};
|
||||||
|
|
||||||
const Nav = ({ ar, isClient }) => (
|
const Nav = ({ ar, isClient }) => (
|
||||||
<nav
|
<nav
|
||||||
|
Loading…
x
Reference in New Issue
Block a user