You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Prism vendor |`vendor/prism/`| Syntax highlighting for code blocks |
60
+
61
+
The callout system supports 15 types: `big-picture`, `key-insight`, `note`, `warning`, `practical-example`, `fun-note`, `research-frontier`, `algorithm`, `tip`, `exercise`, `key-takeaway`, `library-shortcut`, `pathway`, `self-check`, `lab`. Each type has CSS (colors, borders, gradients), a `::before` icon, and a `::after` tooltip, all driven by the class name alone. See agent #25 (Visual Identity Director) for the full catalog.
62
+
36
63
**Note:** The book structure may change over time (Parts renumbered, chapters added or
37
64
moved). `BOOK_CONFIG.md` is the single source of truth for the current structure. All
38
65
agents that reference chapter numbers, Part names, or cross-references MUST read
Copy file name to clipboardExpand all lines: agents/book-skills/agents/19-structural-architect.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,13 @@ See the full ordering in "Standard Element Ordering" below. Within `<main class=
126
126
127
127
### Callout Type Catalog
128
128
129
-
The book uses 15 callout types, each with a dedicated SVG/PNG icon and a CSS tooltip (shown on hover). Icons and tooltips are defined centrally in `book.css` via `::before` and `::after` pseudo-elements. No HTML changes are needed for icons or tooltips; they are applied automatically by class name.
129
+
The book uses 15 callout types, each with a dedicated SVG/PNG icon and a CSS tooltip (shown on hover). All definitions live in these files (read them for authoritative values):
All canonical CSS is defined in the shared stylesheet `styles/book.css`, which is the single source of truth for all visual styling. Files should link to this stylesheet via `<link rel="stylesheet" href="../../styles/book.css">` instead of embedding inline CSS. When auditing visual identity, verify that files link to the shared stylesheet and do not override its definitions with conflicting inline styles.
**Do NOT duplicate CSS in agent skills.** Always read `styles/book.css` directly for the authoritative definitions. The key sections in `book.css` are:
The book uses 15 callout types. All styling, icons, and tooltips are defined centrally in `styles/book.css`. Icons live in `styles/icons/` as `callout-{type}.png` or `callout-{type}.svg`. No inline styles or per-file overrides are needed.
@@ -351,7 +350,7 @@ If it matches exactly, skip the file. Only edit files with actual deviations.
351
350
352
351
### Execution Checklist
353
352
-[ ] Verified every section file links to the shared stylesheet (`styles/book.css`)
354
-
-[ ] Checked all 9 canonical callout types use correct CSS class names and styling
353
+
-[ ] Checked all 15 canonical callout types use correct CSS class names and styling
355
354
-[ ] Confirmed no inline `style=` attributes exist on elements that should use CSS classes
356
355
-[ ] Verified element ordering in every section file (epigraph, prerequisites, content, research frontier, what's next, bibliography)
357
356
-[ ] Checked that no rogue color schemes or unauthorized CSS overrides appear
@@ -362,7 +361,7 @@ If it matches exactly, skip the file. Only edit files with actual deviations.
362
361
### Pass/Fail Checks
363
362
-[ ] No section file is missing the shared stylesheet link
364
363
-[ ] No element in the list (`.whats-next`, `.epigraph`, `.prerequisites`, `.callout`, `.bibliography`, `.code-caption`, `.lab`, `.diagram-container`) has an inline `style=` attribute
365
-
-[ ] Every callout box uses one of the 9 canonical classes: `big-picture`, `key-insight`, `note`, `warning`, `practical-example`, `fun-note`, `research-frontier`, `algorithm`, `tip`
364
+
-[ ] Every callout box uses one of the 15 canonical classes: `big-picture`, `key-insight`, `note`, `warning`, `practical-example`, `fun-note`, `research-frontier`, `algorithm`, `tip`, `exercise`, `key-takeaway`, `library-shortcut`, `pathway`, `self-check`, `lab`
366
365
-[ ] No CSS property in any file's `<style>` block contradicts the canonical definitions in `book.css`
367
366
-[ ] Width rules are correct: `.epigraph` and `.prerequisites` at 600px; all other recurring elements at full content width (no narrower max-width)
368
367
-[ ] No em dashes or double dashes appear in any added text
@@ -382,7 +381,7 @@ If it matches exactly, skip the file. Only edit files with actual deviations.
382
381
### What the Meta Agent Checks
383
382
- Glob all section HTML files in scope; verify each contains a `<link>` to `styles/book.css` (or the correct relative path)
384
383
- Search for `style=` attributes on recurring elements (`.whats-next`, `.epigraph`, `.prerequisites`, `.callout`, `.bibliography`, `.code-caption`, `.lab`, `.diagram-container`); count must be 0
385
-
- Extract all callout class names from `class="callout ..."` patterns; verify each secondary class is in the canonical list (`big-picture`, `key-insight`, `note`, `warning`, `practical-example`, `fun-note`, `research-frontier`, `algorithm`, `tip`)
384
+
- Extract all callout class names from `class="callout ..."` patterns; verify each secondary class is in the canonical list (`big-picture`, `key-insight`, `note`, `warning`, `practical-example`, `fun-note`, `research-frontier`, `algorithm`, `tip`, `exercise`, `key-takeaway`, `library-shortcut`, `pathway`, `self-check`, `lab`)
386
385
- Compare CSS properties in each file's `<style>` block against canonical definitions; flag any contradictions (different background, border-left-color, padding, etc.)
387
386
- Check `max-width` values: `.epigraph` and `.prerequisites` should be 600px; `.whats-next`, `.bibliography`, `.callout`, `.lab` should NOT have a narrower max-width than `.content`
0 commit comments