Skip to content

Commit

Permalink
♻️ code blocks and links (#61)
Browse files Browse the repository at this point in the history
* 🔧 code styles

* 💄 anchor tags
  • Loading branch information
parzuko authored Aug 5, 2024
1 parent 5a7a15f commit b3763e1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
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;
}

0 comments on commit b3763e1

Please sign in to comment.