Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(website): fix darkmode bug on docs website #13101

Merged
merged 12 commits into from
Feb 16, 2023
8 changes: 4 additions & 4 deletions packages/website/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ export default function Footer() {
return (
<footer className="bg-neutral-100 dark:bg-neutral-900">
<div className="mx-auto max-w-[90rem]">
<div className="grid grid-cols-2 pl-[max(env(safe-area-inset-left),1.5rem)] pr-[max(env(safe-area-inset-right),1.5rem)] py-8 md:grid-cols-3 ">
<div className="grid grid-cols-2 pl-[max(env(safe-area-inset-left),1.5rem)] pr-[max(env(safe-area-inset-right),1.5rem)] py-8 md:grid-cols-3">
<div>
<h2 className="mb-6 text-sm font-semibold text-neutral-500 uppercase dark:text-neutral-300">
<h2 className="mb-6 text-sm font-semibold text-neutral-500 uppercase dark:text-neutral-300 pt-3">
About
</h2>
<ul className="text-neutral-500 dark:text-neutral-400">
Expand Down Expand Up @@ -38,7 +38,7 @@ export default function Footer() {
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-neutral-500 uppercase dark:text-neutral-300">
<h2 className="mb-6 text-sm font-semibold text-neutral-500 uppercase dark:text-neutral-300 pt-3">
Developers
</h2>
<ul className="text-neutral-500 dark:text-neutral-400">
Expand Down Expand Up @@ -68,7 +68,7 @@ export default function Footer() {
</ul>
</div>
<div>
<h2 className="mb-6 text-sm font-semibold text-neutral-500 uppercase dark:text-neutral-300">
<h2 className="mb-6 text-sm font-semibold text-neutral-500 uppercase dark:text-neutral-300 pt-3">
Follow us
</h2>
<ul className="text-neutral-500 dark:text-neutral-400">
Expand Down
5 changes: 4 additions & 1 deletion packages/website/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default {
chat: {
link: "https://discord.gg/taikoxyz",
},
darkMode: true,
docsRepositoryBase:
"https://github.com/taikoxyz/taiko-mono/blob/main/packages/website",
editLink: {
Expand Down Expand Up @@ -49,6 +50,9 @@ export default {
);
},
logo: <ThemedImage />,
nextThemes: {
defaultTheme: "light",
},
primaryHue: 315,
project: {
link: "https://github.com/taikoxyz",
Expand All @@ -58,5 +62,4 @@ export default {
titleTemplate: "%s – Taiko",
};
},
darkMode: true,
};
5 changes: 1 addition & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.