Skip to content
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
7 changes: 7 additions & 0 deletions site/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ export default defineConfig({
items: [{ autogenerate: { directory: "designs" } }],
},
],
customCss: ["./src/styles/fonts.css", "./src/styles/custom.css"],
// A bundled light Shiki theme keeps code samples readable on the light surface.
expressiveCode: {
themes: ["github-light"],
useStarlightDarkModeSwitch: false,
themeCssSelector: false,
},
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4 },
}),
],
Expand Down
52 changes: 52 additions & 0 deletions site/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added site/public/fonts/DepartureMono-Regular.otf
Binary file not shown.
Binary file added site/public/fonts/geist-mono-400.woff2
Binary file not shown.
Binary file added site/public/fonts/geist-mono-500.woff2
Binary file not shown.
Binary file added site/public/fonts/geist-sans-400.woff2
Binary file not shown.
Binary file added site/public/fonts/geist-sans-500.woff2
Binary file not shown.
Binary file added site/public/fonts/geist-sans-600.woff2
Binary file not shown.
84 changes: 84 additions & 0 deletions site/src/styles/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/* Light kit values keep Starlight on the same palette as the shared UI. */
:root {
--sl-font: "Geist Sans", system-ui, sans-serif;
--sl-font-mono: "Geist Mono", ui-monospace, monospace;
--sl-line-height: 1.65;
--sl-line-height-headings: 1.2;
}

/* Starlight reads these copies directly; the kit is not part of its CSS build. */
:root,
:root[data-theme="dark"],
:root[data-theme="light"] {
color-scheme: light;
--sl-color-bg: #f8f6ef; /* --s-content */
--sl-color-bg-nav: #f8f6ef; /* --s-content */
--sl-color-bg-sidebar: #fcfbf7; /* --s-raised */
--sl-color-bg-inline-code: #fcfbf7; /* --s-raised */
--sl-color-bg-accent: #43436c; /* --accent */
--sl-color-text: #2b2b4c; /* --t-strong */
--sl-color-text-accent: #394f7d; /* --accent-text */
--sl-color-text-invert: #f8f6ef; /* --accent-on */
--sl-color-hairline: #d3cdb9; /* --b-hairline */
--sl-color-hairline-light: #d3cdb9; /* --b-hairline */
--sl-color-hairline-shade: #86806f; /* --b-control */
--sl-color-accent: #394f7d; /* --accent-text */
--sl-color-accent-low: #fcfbf7; /* --s-raised */
--sl-color-accent-high: #2b2b4c; /* --t-strong */
--sl-color-white: #2b2b4c; /* --t-strong */
--sl-color-gray-1: #2b2b4c; /* --t-strong */
--sl-color-gray-2: #545464; /* --t-secondary */
--sl-color-gray-3: #615f57; /* --t-muted */
--sl-color-gray-4: #86806f; /* --b-control */
--sl-color-gray-5: #d3cdb9; /* --b-hairline */
--sl-color-gray-6: #f8f6ef; /* --s-content */
--sl-color-black: #fcfbf7; /* --s-raised */
}

/* Departure Mono is reserved for the site title. */
.site-title {
font-family: "Departure Mono", monospace;
font-size: 22px;
line-height: 1;
letter-spacing: 2px;
color: #2b2b4c; /* --t-strong */
font-synthesis: none;
}

.sl-markdown-content {
font-family: var(--sl-font);
font-size: 15px;
}

.sl-markdown-content :is(h1, h2, h3, h4, h5, h6) {
font-family: var(--sl-font);
font-weight: 600;
color: #2b2b4c; /* --t-strong */
letter-spacing: 0;
}

.expressive-code .frame pre,
.expressive-code .frame.has-title:not(.is-terminal) .header {
border-radius: 0;
}

.expressive-code .frame:not(.is-terminal) pre {
border: 1px solid #d3cdb9; /* --b-hairline */
}

.sl-markdown-content :not(pre) > code {
background: var(--sl-color-bg-inline-code);
border: 1px solid #d3cdb9; /* --b-hairline */
color: #2b2b4c; /* --t-strong */
padding: 1px 5px;
font-size: 0.9em;
border-radius: 0;
}

.sl-markdown-content blockquote {
border-left: 3px solid #394f7d; /* --accent-text */
background: #fcfbf7; /* --s-raised */
padding: 12px 16px;
margin: 16px 0;
font-style: normal;
}
42 changes: 42 additions & 0 deletions site/src/styles/fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/* Kit fonts are copied into public/fonts because Starlight serves them directly. */
@font-face {
font-family: "Geist Sans";
src: url("/fonts/geist-sans-400.woff2") format("woff2");
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "Geist Sans";
src: url("/fonts/geist-sans-500.woff2") format("woff2");
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: "Geist Sans";
src: url("/fonts/geist-sans-600.woff2") format("woff2");
font-weight: 600;
font-display: swap;
}

@font-face {
font-family: "Geist Mono";
src: url("/fonts/geist-mono-400.woff2") format("woff2");
font-weight: 400;
font-display: swap;
}

@font-face {
font-family: "Geist Mono";
src: url("/fonts/geist-mono-500.woff2") format("woff2");
font-weight: 500;
font-display: swap;
}

@font-face {
font-family: "Departure Mono";
src: url("/fonts/DepartureMono-Regular.otf") format("opentype");
font-weight: 400;
font-display: swap;
}
Loading