RCA-2026-04-01-001: Prevention
Preventive Measures
Short-term (This Week)
| Action | Owner | Status |
|---|---|---|
Create Antora dark theme CSS checklist covering all default UI classes |
Evan |
[ ] Pending |
Apply same CSS fixes to any work Antora documentation sites |
Evan |
[ ] Pending |
Long-term (This Quarter)
| Action | Owner | Status |
|---|---|---|
Build a reusable dark theme CSS template for all domus-* Antora sites |
Evan |
[ ] Pending |
Document the complete Antora default UI DOM class hierarchy as a reference partial |
Evan |
[ ] Pending |
Consider building a custom Antora UI bundle with native dark theme support instead of supplemental overrides |
Evan |
[ ] Pending |
Detection
How was it detected?
-
Manual visual inspection after deploying new documentation pages
Detection Gap
Could have been caught earlier with a CSS coverage audit. A checklist of all Antora default UI classes would allow systematic verification instead of visual whack-a-mole.
Lessons Learned
What went well
-
Root cause was identified quickly (DOM inspection)
-
Fixes were surgical — no collateral styling damage
-
FOUC prevention was addressed proactively during the fix
What could be improved
-
CSS should have been authored against the Antora UI bundle DOM tree, not AsciiDoc content semantics
-
A browser DevTools inspection of the full element hierarchy should be standard practice before declaring a theme "complete"
-
Admonition rendering as
<table>is a known AsciiDoc pattern — should be in a checklist
Key Takeaways
|
Antora Default UI Dark Theme Checklist
Reference checklist for applying a dark theme to the Antora default UI. Every class listed here must have an explicit background-color override:
-
body -
.navbar,.navbar-item,.navbar-link,.navbar-burger -
.body(main wrapper under navbar) -
.nav-container,.nav,.nav-menu,.nav-link,.nav-text -
.nav-panel-explore,.nav-panel-explore .context,.nav-panel-explore .components -
.main -
.toolbar -
.breadcrumbs,.breadcrumbs a -
.edit-this-page,.edit-this-page a -
.home-link -
.content -
.article -
.doc,.doc-main -
.doc h1-h6,.doc a -
.toc,.toc-menu,aside.toc,.toc a -
code,pre,.listingblock pre,.literalblock pre -
table,table th,table td,table tr:nth-child(even) -
.admonitionblock(all variants: note, tip, warning, caution, important) -
.admonitionblock table, tbody, tr, td(forcetransparent !important) -
.footer,.footer a -
.page-versions -
.nav-toggle .icon(hamburger menu lines) -
Scrollbar (
::-webkit-scrollbar,-track,-thumb)