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

♻️ code blocks and links #61

Merged
merged 2 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ const config: Config = {
copyright: `Copyright © ${new Date().getFullYear()} Kakarot ZK-EVM, Inc. Built with Docusaurus.`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
theme: prismThemes.nightOwlLight,
darkTheme: prismThemes.oneDark,
},
} satisfies Preset.ThemeConfig,
};
Expand Down
25 changes: 24 additions & 1 deletion src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

/* You can override the default Infima variables here. */
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;700;800;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");

:root {
--ifm-color-primary: #003d29;
Expand All @@ -19,6 +19,7 @@
--ifm-navbar-background-color: var(--ifm-background-color);
--ifm-font-family-base: "Inter Tight", sans-serif;
--ifm-font-family-monospace: "Inter Tight", monospace;
--ifm-code-font-size: 95%;
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
Expand All @@ -31,6 +32,9 @@
--ifm-color-primary-lighter: #ffffff;
--ifm-color-primary-lightest: #ffffff;
--ifm-background-color: #003d29;
--ifm-font-family-base: "Inter Tight", sans-serif;
--ifm-font-family-monospace: "Inter Tight", monospace;
--ifm-code-font-size: 95%;
}

body {
Expand All @@ -48,3 +52,22 @@ body {
.footer__copyright {
color: #fffadb;
}

/* Override the font for code blocks */
code,
pre {
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono,
Courier New;
}

/* Additional styling for pre to ensure it looks good */
pre {
background-color: #f5f5f5; /* Adjust as necessary */
padding: 10px; /* Adjust as necessary */
border-radius: 5px; /* Adjust as necessary */
overflow-x: auto;
}

p > a {
color: #ff7500 !important;
}
Loading