Skip to content

Commit a92b013

Browse files
committed
Implement Phase 1: Mermaid Blueprint Authority theme and accessibility
- Configure astro-mermaid with Blueprint Authority themeVariables (limestone cream canvas, Egyptian gold/blue accents) - Update all 3 Statsbomb diagrams with standardized classDef: * Atomic nodes: #FEF3C7 bg, #F59E0B border (warm amber) * Derived nodes: #DBEAFE bg, #0EA5E9 border (sky blue) * System nodes: #D1FAE5 bg, #10B981 border (emerald) - Add WCAG-compliant accessibility markup to all diagrams: * Wrap in <figure role="img" aria-labelledby> with <figcaption> * Include <details> with text alternative describing relationships * Screen reader friendly descriptions - Update link styles to use Blueprint Authority colors (#475569 slate, #0EA5E9 blue) - All diagrams now rendering with consistent Egyptian design system
1 parent 310fb59 commit a92b013

File tree

2 files changed

+582
-0
lines changed

2 files changed

+582
-0
lines changed

astro.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,42 @@
11
import { defineConfig, fontProviders } from "astro/config";
22
import tailwindcss from "@tailwindcss/vite";
33
import astrobook from "@northstarthemes/astrobook";
4+
import mdx from "@astrojs/mdx";
5+
import mermaid from "astro-mermaid";
46

57
// https://astro.build/config
68
export default defineConfig({
79
site: "https://saadshahd.github.io",
810
trailingSlash: 'never', // Prevent trailing slash redirects in production
911
integrations: [
12+
mermaid({
13+
mermaidConfig: {
14+
theme: 'base', // Required for custom variables
15+
themeVariables: {
16+
// Default node styling (Blueprint Authority palette)
17+
primaryColor: '#F5F1E8', // Limestone cream background
18+
primaryBorderColor: '#CBD5E1', // Warm gray border
19+
primaryTextColor: '#0F172A', // Blueprint ink text
20+
21+
// Typography
22+
fontFamily: 'Inter, system-ui, sans-serif',
23+
fontSize: '14px',
24+
25+
// Connections
26+
lineColor: '#475569', // Slate ink
27+
edgeLabelBackground: '#FEFDFB', // Surface color
28+
29+
// Clusters/subgraphs
30+
clusterBkg: '#FEFDFB', // Clean surface
31+
clusterBorder: '#CBD5E1', // Light border
32+
33+
// Secondary elements
34+
secondaryColor: '#DBEAFE', // Sky blue (derived nodes)
35+
tertiaryColor: '#FEF3C7', // Warm amber (atomic nodes)
36+
}
37+
}
38+
}), // ⚠️ Must come BEFORE mdx() to process code fences first
39+
mdx(),
1040
astrobook({
1141
title: "Egyptian Engineering Design System",
1242
subpath: "/design-system",

0 commit comments

Comments
 (0)