Set up HOIST brand colors, IBM Plex Sans/Mono fonts, navbar/footer theming, and homepage hero. Removes default Docusaurus placeholder assets and tutorial content.
289 lines
10 KiB
CSS
289 lines
10 KiB
CSS
/* ─── FONTS ──────────────────────────────────────────────────── */
|
|
@font-face {
|
|
font-family: "IBM Plex Sans";
|
|
src: url("/fonts/ibm-plex-sans/IBMPlexSans-Variable.ttf") format("truetype");
|
|
font-weight: 100 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Sans";
|
|
src: url("/fonts/ibm-plex-sans/IBMPlexSans-Italic-Variable.ttf")
|
|
format("truetype");
|
|
font-weight: 100 700;
|
|
font-style: italic;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
src: url("/fonts/ibm-plex-mono/IBMPlexMono-Regular.ttf") format("truetype");
|
|
font-weight: 400;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IBM Plex Mono";
|
|
src: url("/fonts/ibm-plex-mono/IBMPlexMono-Bold.ttf") format("truetype");
|
|
font-weight: 700;
|
|
font-style: normal;
|
|
font-display: swap;
|
|
}
|
|
|
|
/**
|
|
* HOIST HUB Docs — Design System
|
|
*
|
|
* Single-source brand color: #465491 (hsl 228, 34%, 42%)
|
|
* All palette entries derived from this hue.
|
|
* Contrast ratios meet WCAG AA (4.5:1 text, 3:1 UI components).
|
|
*/
|
|
|
|
/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
|
|
:root {
|
|
/* Primary scale — hsl(228, 34%, X%) */
|
|
--hoist-primary-950: #0e1020;
|
|
--hoist-primary-900: #1c1f3f;
|
|
--hoist-primary-800: #2a2f5e;
|
|
--hoist-primary-700: #384079; /* dark accent */
|
|
--hoist-primary-600: #3d4a88;
|
|
--hoist-primary-500: #465491; /* BRAND */
|
|
--hoist-primary-400: #5a69a3;
|
|
--hoist-primary-300: #7683b8;
|
|
--hoist-primary-200: #a4adcf;
|
|
--hoist-primary-100: #d1d6e9;
|
|
--hoist-primary-50: #eceef6;
|
|
|
|
/* Neutral scale — hsl(228, 10%, X%) — same hue, desaturated */
|
|
--hoist-neutral-950: #0d0d12;
|
|
--hoist-neutral-900: #1a1b22;
|
|
--hoist-neutral-800: #2c2d38;
|
|
--hoist-neutral-700: #3f4050;
|
|
--hoist-neutral-600: #545668;
|
|
--hoist-neutral-500: #6b6d82;
|
|
--hoist-neutral-400: #8d8fa3;
|
|
--hoist-neutral-300: #b0b2c3;
|
|
--hoist-neutral-200: #d2d4df;
|
|
--hoist-neutral-100: #e8e9f0;
|
|
--hoist-neutral-50: #f4f4f8;
|
|
|
|
/* Semantic — success: hsl(152, 48%, 35%) — contrast safe on white */
|
|
--hoist-success-700: #1a5c3a;
|
|
--hoist-success-500: #2a8a58;
|
|
--hoist-success-100: #d0ede0;
|
|
|
|
/* Semantic — warning: hsl(38, 90%, 40%) */
|
|
--hoist-warning-700: #7a4800;
|
|
--hoist-warning-500: #b86b00;
|
|
--hoist-warning-100: #fdefd6;
|
|
|
|
/* Semantic — danger: hsl(4, 72%, 42%) */
|
|
--hoist-danger-700: #7a1a14;
|
|
--hoist-danger-500: #c0271e;
|
|
--hoist-danger-100: #fde0de;
|
|
|
|
/* Semantic — info: pulled from primary, lighter */
|
|
--hoist-info-700: #2a2f5e;
|
|
--hoist-info-500: #465491;
|
|
--hoist-info-100: #d1d6e9;
|
|
|
|
/* Typography */
|
|
--hoist-font-sans: "IBM Plex Sans", system-ui, sans-serif;
|
|
--hoist-font-mono: "IBM Plex Mono", monospace;
|
|
|
|
/* Spacing */
|
|
--hoist-radius-sm: 4px;
|
|
--hoist-radius-md: 6px;
|
|
--hoist-radius-lg: 10px;
|
|
|
|
/* Shadows */
|
|
--hoist-shadow-sm: 0 1px 3px rgba(70, 84, 145, 0.08);
|
|
--hoist-shadow-md: 0 4px 12px rgba(70, 84, 145, 0.12);
|
|
--hoist-shadow-lg: 0 8px 24px rgba(70, 84, 145, 0.16);
|
|
}
|
|
|
|
/* ─── INFIMA OVERRIDES — LIGHT MODE ─────────────────────────── */
|
|
:root {
|
|
--ifm-color-primary: var(--hoist-primary-500);
|
|
--ifm-color-primary-dark: var(--hoist-primary-600);
|
|
--ifm-color-primary-darker: var(--hoist-primary-700);
|
|
--ifm-color-primary-darkest: var(--hoist-primary-800);
|
|
--ifm-color-primary-light: var(--hoist-primary-400);
|
|
--ifm-color-primary-lighter: var(--hoist-primary-300);
|
|
--ifm-color-primary-lightest: var(--hoist-primary-200);
|
|
|
|
--ifm-background-color: #ffffff;
|
|
--ifm-background-surface-color: var(--hoist-neutral-50);
|
|
--ifm-font-color-base: var(--hoist-neutral-900);
|
|
--ifm-font-color-secondary: var(--hoist-neutral-600);
|
|
|
|
--ifm-code-font-size: 93%;
|
|
--ifm-font-family-base: var(--hoist-font-sans);
|
|
--ifm-font-family-monospace: var(--hoist-font-mono);
|
|
|
|
--ifm-heading-color: var(--hoist-neutral-900);
|
|
--ifm-link-color: var(--hoist-primary-500);
|
|
--ifm-link-hover-color: var(--hoist-primary-700);
|
|
|
|
--ifm-navbar-background-color: var(--hoist-primary-900);
|
|
--ifm-navbar-link-color: #ffffff;
|
|
--ifm-navbar-link-hover-color: var(--hoist-primary-300);
|
|
|
|
--ifm-footer-background-color: var(--hoist-primary-900);
|
|
|
|
--ifm-table-border-color: var(--hoist-neutral-200);
|
|
--ifm-table-head-background: var(--hoist-primary-50);
|
|
--ifm-table-stripe-background: var(--hoist-neutral-50);
|
|
|
|
--ifm-hr-border-color: var(--hoist-neutral-200);
|
|
--ifm-hr-background-color: var(--hoist-neutral-200);
|
|
|
|
--ifm-blockquote-border-color: var(--hoist-primary-300);
|
|
--ifm-blockquote-color: var(--hoist-neutral-600);
|
|
|
|
--docusaurus-highlighted-code-line-bg: var(--hoist-primary-50);
|
|
|
|
/* Admonitions */
|
|
--ifm-color-info-dark: var(--hoist-info-700);
|
|
--ifm-color-info: var(--hoist-info-500);
|
|
--ifm-color-info-contrast-background: var(--hoist-info-100);
|
|
|
|
--ifm-color-success-dark: var(--hoist-success-700);
|
|
--ifm-color-success: var(--hoist-success-500);
|
|
--ifm-color-success-contrast-background: var(--hoist-success-100);
|
|
|
|
--ifm-color-warning-dark: var(--hoist-warning-700);
|
|
--ifm-color-warning: var(--hoist-warning-500);
|
|
--ifm-color-warning-contrast-background: var(--hoist-warning-100);
|
|
|
|
--ifm-color-danger-dark: var(--hoist-danger-700);
|
|
--ifm-color-danger: var(--hoist-danger-500);
|
|
--ifm-color-danger-contrast-background: var(--hoist-danger-100);
|
|
}
|
|
|
|
/* ─── INFIMA OVERRIDES — DARK MODE ──────────────────────────── */
|
|
[data-theme="dark"] {
|
|
--ifm-color-primary: var(--hoist-primary-300);
|
|
--ifm-color-primary-dark: var(--hoist-primary-400);
|
|
--ifm-color-primary-darker: var(--hoist-primary-500);
|
|
--ifm-color-primary-darkest: var(--hoist-primary-600);
|
|
--ifm-color-primary-light: var(--hoist-primary-200);
|
|
--ifm-color-primary-lighter: var(--hoist-primary-100);
|
|
--ifm-color-primary-lightest: var(--hoist-primary-50);
|
|
|
|
--ifm-background-color: var(--hoist-neutral-950);
|
|
--ifm-background-surface-color: var(--hoist-neutral-900);
|
|
--ifm-font-color-base: var(--hoist-neutral-100);
|
|
--ifm-font-color-secondary: var(--hoist-neutral-300);
|
|
|
|
--ifm-heading-color: var(--hoist-neutral-50);
|
|
--ifm-link-color: var(--hoist-primary-300);
|
|
--ifm-link-hover-color: var(--hoist-primary-200);
|
|
|
|
--ifm-navbar-background-color: var(--hoist-neutral-900);
|
|
--ifm-navbar-link-color: #ffffff;
|
|
--ifm-navbar-link-hover-color: var(--hoist-primary-300);
|
|
|
|
--ifm-footer-background-color: var(--hoist-neutral-900);
|
|
|
|
--ifm-table-border-color: var(--hoist-neutral-700);
|
|
--ifm-table-head-background: var(--hoist-neutral-800);
|
|
--ifm-table-stripe-background: var(--hoist-neutral-900);
|
|
|
|
--ifm-hr-border-color: var(--hoist-neutral-700);
|
|
--ifm-hr-background-color: var(--hoist-neutral-700);
|
|
|
|
--ifm-blockquote-border-color: var(--hoist-primary-400);
|
|
--ifm-blockquote-color: var(--hoist-neutral-300);
|
|
|
|
--docusaurus-highlighted-code-line-bg: rgba(70, 84, 145, 0.2);
|
|
|
|
/* Admonitions dark */
|
|
--ifm-color-info-contrast-background: rgba(70, 84, 145, 0.15);
|
|
--ifm-color-success-contrast-background: rgba(42, 138, 88, 0.15);
|
|
--ifm-color-warning-contrast-background: rgba(184, 107, 0, 0.15);
|
|
--ifm-color-danger-contrast-background: rgba(192, 39, 30, 0.15);
|
|
}
|
|
|
|
/* ─── GLOBAL LAYOUT ──────────────────────────────────────────── */
|
|
.main-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
}
|
|
|
|
/* ─── HOMEPAGE HERO ──────────────────────────────────────────── */
|
|
/* (Scoped styles live in index.module.css) */
|
|
|
|
/* ─── FOOTER ─────────────────────────────────────────────────── */
|
|
.footer--dark {
|
|
--ifm-footer-background-color: var(--hoist-primary-900);
|
|
}
|
|
|
|
[data-theme="dark"] .footer--dark {
|
|
--ifm-footer-background-color: var(--hoist-neutral-900);
|
|
}
|
|
|
|
/* ─── NAVBAR ─────────────────────────────────────────────────── */
|
|
.navbar__logo {
|
|
padding: 0.25rem 1rem;
|
|
height: 32px;
|
|
}
|
|
|
|
.navbar button[class*="toggleButton"] {
|
|
color: rgba(255, 255, 255, 0.75);
|
|
}
|
|
|
|
.navbar button[class*="toggleButton"]:hover {
|
|
color: #ffffff;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.navbar__link--active {
|
|
color: var(--hoist-primary-200) !important;
|
|
border-bottom: 2px solid var(--hoist-primary-300);
|
|
padding-bottom: 2px;
|
|
}
|
|
|
|
/* ─── SIDEBAR ────────────────────────────────────────────────── */
|
|
.menu__link--active {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.menu__link.menu__link--active:not(.menu__link--sublist):not(
|
|
.menu__link--sublist-caret
|
|
) {
|
|
border-left: 2px solid var(--ifm-color-primary);
|
|
padding-left: calc(var(--ifm-menu-link-padding-horizontal) - 3px);
|
|
border-radius: 0;
|
|
}
|
|
|
|
/* ─── CONTENT TYPOGRAPHY ─────────────────────────────────────── */
|
|
.markdown h1 {
|
|
border-bottom: 2px solid var(--hoist-primary-100);
|
|
padding-bottom: 0.5rem;
|
|
}
|
|
|
|
[data-theme="dark"] .markdown h1 {
|
|
border-bottom-color: var(--hoist-neutral-700);
|
|
}
|
|
|
|
/* ─── TABLES ─────────────────────────────────────────────────── */
|
|
.markdown table thead tr {
|
|
font-size: 0.8rem;
|
|
letter-spacing: 0.04em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
/* ─── CODE BLOCKS ────────────────────────────────────────────── */
|
|
/*
|
|
.prism-code {
|
|
}
|
|
*/
|
|
|
|
/* ─── ADMONITIONS ────────────────────────────────────────────── */
|
|
.alert {
|
|
border-left-width: 4px;
|
|
}
|