Bridge
Decouple layout structures from their decorative themes, allowing both to vary independently.
✧ GANG OF FOUR LINEAGE & ARCANUM ✧
GOF DESIGN PATTERN: Bridge
ARCANUM SCHOOL: Conjuration // Decoupled Matrices
SCRIBE / ARCHON: Joshua Edward McLaughlin Cox
CANONICAL REGISTRATION:
// CODEX INCANTATION //
/* Layout Ward (Abstraction) */
.grid-matrix {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
}
/* Visual Theme Ward (Implementation) */
.theme-astral {
background: midnightblue;
color: ghostwhite;
}
.theme-astral .grid-cell {
border: 1px solid silver;
box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
The Bridge pattern in CSS involves keeping structural grid/flex layout classes completely separated from color, typography, and visual theme classes, ensuring complete modularity.
Runic Tags:
#css
#layout
#decoupling
#design-patterns