Skip to content

Commit

Permalink
docs: dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
aidenybai committed Nov 11, 2023
1 parent 8f4f7e3 commit 1a21f58
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 62 deletions.
94 changes: 47 additions & 47 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dedent": "^0.7.0",
"framer-motion": "^10.12.4",
"million": "workspace:*",
"next": "^14.0.0",
"next": "^14.0.2",
"nextra": "^2.13.2",
"nextra-theme-docs": "^2.13.2",
"postcss": "^8.4.21",
Expand Down
17 changes: 3 additions & 14 deletions website/theme.config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,7 @@ const config: DocsThemeConfig = {
footer: {
text: (
<div className="flex w-full items-center justify-between">
<div>
MIT {new Date().getFullYear()} ©{' '}
<a target="_blank" href="https://aidenybai.com">
Aiden Bai
</a>
.
</div>
<div>© 2021-{new Date().getFullYear()} Million Software, Inc.</div>

<a
href="https://vercel.com?utm_source=millionjs"
Expand Down Expand Up @@ -214,9 +208,7 @@ const config: DocsThemeConfig = {
},
nextThemes: {
defaultTheme: 'dark',
forcedTheme: 'dark',
},
darkMode: false,
useNextSeoProps() {
const { asPath } = useRouter();

Expand All @@ -226,11 +218,8 @@ const config: DocsThemeConfig = {

return { titleTemplate: `%s | Million.js` };
},
primaryHue: 270,
primarySaturation: 70,
themeSwitch: {
component: null,
},
primaryHue: 275,
primarySaturation: 75,
};

// eslint-disable-next-line import/no-default-export
Expand Down

2 comments on commit 1a21f58

@vercel
Copy link

@vercel vercel bot commented on 1a21f58 Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

sink – ./packages/kitchen-sink

million-kitchen-sink-atit.vercel.app
sink-millionjs.vercel.app
sink.million.dev
sink-git-main-millionjs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 1a21f58 Nov 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

million-kitchen-sink – ./packages/kitchen-sink

million-kitchen-sink.vercel.app
million-kitchen-sink-millionjs.vercel.app
million-kitchen-sink-git-main-millionjs.vercel.app

Please sign in to comment.