CODE Article Web Design System — Desktop & Mobile v1.0

Imported from Evernote: Article Web Design System — Desktop & Mobile v1.0. Source created October 28, 2026; last updated November 3, 2026 (Pacific/Honolulu). Imported November 3, 2026. The specification and its proposed values are preserved as written; this import does not establish the current application's implementation status.

Status: Proposed implementation specification, October 28, 2026. The broad visual direction was approved in the CODE Software Infrastructure design discussions; exact CSS values, breakpoints, component measurements and interaction details below are initial engineering proposals requiring real browser review, accessibility testing and design sign-off. This document is for the magazine-only codemag.com article experience, not a Microsoft Docs-like documentation UI.

1. Source of truth and design principles

Reference the Evernote notes New Article Design (contains six actual attached visual design references), Article Design Discussion - October 28th, 2026, Editorial Accent Color System, Author Portrait System, Diagram System, Data Visualization System and Image Classifier System in Magazine Content. Use the attached mockups as visual-direction references, NOT as exact dimensional specifications. Confirm exact CODE logo and approved author artwork from production assets.

2. Responsive layout policy

Use CSS Grid/Flexbox, fluid clamp() values and content-driven breakpoints. The breakpoints below are initial proposals, not fixed device classes. Do not hardcode layout to specific iPhone/iPad models.

Viewport width Layout behavior
Below 600px Mobile: single article column; collapsed navigation; compact header; no persistent sidebar; full-width figures and responsive media; article margins 16–20px.
600–899px Large mobile/small tablet: single article column with wider outer margins and comfortable max reading width; optional inline author bio and table-of-contents disclosure.
900–1199px Tablet/compact desktop: single primary reading column; right rail collapses into inline modules or narrower secondary region only when enough width remains. No cramped two-column article body.
1200–1599px Desktop: primary article reading column + right editorial rail, separated by 40–56px gap; hero remains full viewport width.
1600px and above Wide desktop: same two-region composition with bounded content width; increase outer whitespace rather than endlessly expanding article line length.

Suggested layout tokens: page max-width 1360px; primary article measure 700–760px (reader-adjustable), right rail 280–320px, grid gap 48px, outside padding clamp(20px, 4vw, 64px). Use minmax(0,1fr) to prevent long code/tables from blowing out the grid. At smaller widths place author/related modules inline after suitable editorial boundaries.

3. Hero and header

4. Typography and editorial hierarchy

Font selections below are provisional: Prefer a premium editorial serif such as Source Serif 4 (or another approved licensed serif) for article title, headings and body; Segoe UI Variable / Inter-like clean sans-serif for navigation, bylines, metadata, captions, controls and author panels; a legible monospaced font such as Cascadia Code for code. Test licensing, variable-font availability, Latin/non-Latin coverage and print/web consistency before finalizing. Use robust fallbacks and avoid layout shifts.

Element Proposed desktop Proposed mobile
Article H1 clamp(2.8rem,4vw,4.25rem), weight 650, line-height 1.08, letter-spacing -0.025em clamp(2.1rem,7vw,2.8rem), line-height 1.12
Deck / standfirst 1.25rem, line-height 1.5 1.1rem, line-height 1.5
Article body 1.125rem (18px), line-height 1.68 1.0625rem (17px), line-height 1.65
H2 2rem, line-height 1.2, weight 650 1.65rem, line-height 1.25
H3 1.45rem, line-height 1.3, weight 650 1.3rem, line-height 1.32
H4 1.15rem, line-height 1.35, weight 700 1.1rem, line-height 1.35
Byline / metadata 0.875–1rem, sans-serif 0.875rem, sans-serif
Figure captions 0.875rem, line-height 1.5, sans-serif 0.8125–0.875rem
Code 0.875rem, line-height 1.5, monospace 0.8125–0.875rem, scroll if necessary

Body paragraphs: margin-block-end about 1.2em; H2 margin-block-start about 2.2em and end 0.65em; H3 margin-block-start 1.6em and end 0.5em. Keep headings with following paragraphs; avoid widowed headings and orphaned captions. Use readable text measure around 65–78 characters per line (default about 72ch); reader width preference may change it within safe limits.

5. Color tokens and article accents

Use consistent deep navy for major headings, dark neutral body text, restrained blue links and white/neutral surfaces. Article-specific primary/secondary accent colors are generated and validated by the Editorial Accent Color System, not chosen arbitrarily in CSS. Provisional tokens: navy #102747, body #253445, muted #627286, link #2875B9, light surface #FFFFFF, light-muted #F5F7F9, border #DFE5EC. These are engineering starting points, not final approved palette.

6. Article opening and author modules

7. Article content components

8. Reader preferences and persistence

9. Responsive interactions and accessibility

10. Starter CSS design tokens and media queries

This is an implementation starting point, not final tested CSS. Integrate with the site's existing component architecture and CSS naming conventions. Some selectors (e.g., display:contents for rail) require accessibility/DOM-order testing; production implementation may use explicit grid areas instead.

/* CODE Article Web Design System v1.0 — PROPOSED tokens, not final */
:root {
  --code-navy: #102747;
  --code-text: #253445;
  --code-muted: #627286;
  --code-link: #2875B9;
  --code-surface: #FFFFFF;
  --code-surface-muted: #F5F7F9;
  --code-border: #DFE5EC;
  --article-accent-primary: #C58A37; /* populated from approved article palette */
  --article-accent-secondary: #2875B9;
  --article-accent-tint: #F9F4EA; /* computed/approved, not guessed */
  --font-editorial: "Source Serif 4", Georgia, serif;
  --font-ui: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  --font-code: "Cascadia Code", Consolas, monospace;
  --article-measure: 72ch;
  --article-font-size: 1.125rem;
  --article-line-height: 1.68;
  --page-max: 1360px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --rail-width: 300px;
  --content-gap: 48px;
}
[data-reading-theme="dark"] {
  --code-surface: #101B29;
  --code-surface-muted: #192638;
  --code-text: #E7ECF2;
  --code-muted: #B1BECC;
  --code-border: #34465B;
  --code-link: #78B9F0;
}
[data-reading-theme="sepia"] {
  --code-surface: #F7F0E3;
  --code-surface-muted: #EEE5D5;
  --code-text: #3E352D;
  --code-muted: #6C6258;
}
.article-page { color: var(--code-text); background: var(--code-surface); }
.article-hero { width: 100%; height: clamp(420px, 48vw, 680px); object-fit: cover; }
.site-header--overlay {
  position: absolute; inset: 0 0 auto;
  min-height: 76px;
  background: rgb(10 25 45 / 58%);
  backdrop-filter: blur(16px);
}
.article-shell {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail-width);
  gap: var(--content-gap);
}
.article-body {
  min-width: 0;
  max-width: var(--article-measure);
  font-family: var(--font-editorial);
  font-size: var(--article-font-size);
  line-height: var(--article-line-height);
}
.article-title {
  font-family: var(--font-editorial);
  font-size: clamp(2.8rem, 4vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--code-navy);
}
.article-body figure img { display: block; max-width: 100%; height: auto; }
.article-body pre, .article-body .table-scroll { overflow-x: auto; max-width: 100%; }
.article-author-panel { background: var(--article-accent-tint); }
@media (max-width: 1199px) {
  .article-shell { grid-template-columns: minmax(0, 1fr); }
  .article-rail { display: contents; } /* place children explicitly in DOM/order */
  .article-hero { height: clamp(320px, 48vw, 500px); }
}
@media (max-width: 599px) {
  :root { --page-gutter: 18px; --article-font-size: 1.0625rem; }
  .site-header--overlay { min-height: 60px; }
  .article-hero { height: clamp(240px, 65vw, 420px); }
  .article-title { font-size: clamp(2.1rem, 7vw, 2.8rem); line-height: 1.12; }
  .article-body { line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

11. Implementation notes for CODE's web stack

12. Acceptance tests and design QA

13. Open decisions before final sign-off

Summary: The visual direction is approved; these proposed tokens and breakpoints make it actionable for developers. The next milestone is a working responsive browser implementation with side-by-side editorial review, not further unverified image mockups.

Reference Images

Desktop article page (web):

Desktop article page design reference

Mobile article page:

Mobile article page design reference