DESIGN SYSTEM EDITION · v0.8.3.8.4

Code Library

Thirty reusable 2026 design treatments powered by the shared Monarch fonts, colors, typography, spacing, Flow, and token architecture.

Source: components/typography/code.php

Tokens: --color-code, --color-code-background, --font-secondary

Classes: code, pre, .code-example

01

Default

PresentationContent

Standard Monarch treatment

Default Code

<article class="component-default">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'default']); ?>
02

Minimal

PresentationContent

Reduced decoration and visual weight

Minimal Code

<article class="component-minimal">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'minimal']); ?>
03

Outlined

UtilityContent

Transparent surface with a defined tokenized stroke

Outlined Code

<article class="component-outlined">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'outlined']); ?>
04

Soft

CommunityContent

Quiet low-contrast surface

Soft Code

<article class="component-soft">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'soft']); ?>
05

Elevated

CommerceMarketing

Layered surface with tokenized shadow

Elevated Code

<article class="component-elevated">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'elevated']); ?>
06

Compact

ProductivityUtility

Dense interface treatment

Compact Code

<article class="component-compact">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'compact']); ?>
07

Spacious

PresentationMarketing

Generous presentation rhythm

Spacious Code

<article class="component-spacious">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'spacious']); ?>
08

Inline

ContentCommunity

Designed to sit within surrounding content

Inline Code

<article class="component-inline">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'inline']); ?>
09

Stacked

PresentationProductivity

Vertical component anatomy

Stacked Code

<article class="component-stacked">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'stacked']); ?>
10

Split

MarketingCommerce

Two-region composition

Split Code

<article class="component-split">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'split']); ?>
11

Accent Border

PresentationContent

Strong accent edge with neutral body

Accent Border Code

<article class="component-accent-border">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'accent-border']); ?>
12

Highlight

MarketingCommerce

Attention without semantic status

Highlight Code

<article class="component-highlight">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'highlight']); ?>
13

Feature

MarketingPresentation

Prominent section anchor

Feature Code

<article class="component-feature">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'feature']); ?>
14

Showcase

EntertainmentMarketing

Highly visual featured presentation

Showcase Code

<article class="component-showcase">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'showcase']); ?>
15

Signature

PresentationMarketing

Distinct Monarch branded treatment

Signature Code

<article class="component-signature">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'signature']); ?>
16

Editorial

ContentPresentation

Long-form and publishing treatment

Editorial Code

<article class="component-editorial">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'editorial']); ?>
17

Corporate

PresentationProductivity

Structured restrained business treatment

Corporate Code

<article class="component-corporate">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'corporate']); ?>
18

Marketing

MarketingCommerce

Promotion and conversion treatment

Marketing Code

<article class="component-marketing">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'marketing']); ?>
19

Commerce

CommerceMarketing

Transactional information treatment

Commerce Code

<article class="component-commerce">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'commerce']); ?>
20

Dashboard

ProductivityUtility

Metrics and application interface treatment

Dashboard Code

<article class="component-dashboard">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'dashboard']); ?>
21

Community

CommunityContent

People and participation treatment

Community Code

<article class="component-community">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'community']); ?>
22

Entertainment

EntertainmentCommunity

Media and leisure treatment

Entertainment Code

<article class="component-entertainment">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'entertainment']); ?>
23

Utility

UtilityProductivity

Functional tool-interface treatment

Utility Code

<article class="component-utility">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'utility']); ?>
24

Information

UtilityContent

Neutral educational or system information

Information Code

<article class="component-info">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'info']); ?>
25

Success

CommerceProductivity

Completed or positive state

Success Code

<article class="component-success">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'success']); ?>
26

Warning

CommerceProductivity

Cautionary state requiring attention

Warning Code

<article class="component-warning">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'warning']); ?>
27

Danger

UtilityProductivity

Critical, destructive, or failed state

Danger Code

<article class="component-danger">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'danger']); ?>
28

Muted

ContentPresentation

Secondary lower-priority information

Muted Code

<article class="component-muted">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'muted']); ?>
29

Gradient

MarketingEntertainment

Centralized Monarch gradient treatment

Gradient Code

<article class="component-gradient">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'gradient']); ?>
30

Inverse

EntertainmentMarketing

High-contrast treatment for strong surfaces

Inverse Code

<article class="component-inverse">Monarch</article>

Classes, source, anatomy, and accessibility

Anatomy: Semantic wrapper, component content, optional metadata, and actions.

Accessibility: Uses native semantic HTML and visible labels where applicable.

<?php monarch_render_component('typography', 'code', ['style' => 'inverse']); ?>