Communitygithub.com

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for long-form content, managing readability, vertical rhythm, and information density to ensure a superior reading experience.

O que é coastai-skills?

coastai-skills is a Claude Code agent skill that design and implement a systematic framework for long-form content, managing readability, vertical rhythm, and information density to ensure a superior reading experience.

Funciona com~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/coastdigitalgroup/coastai-skills/tree/HEAD/website-design/article-layout-system

Perguntar na sua IA favorita

Abre um novo chat com esta habilidade de agente já pré-carregada.

Documentação

Article Layout System

Purpose

The Article Layout System provides a methodology for designing the "reading experience"—the specific arrangement of text and supporting media for long-form content like blogs, documentation, whitepapers, and case studies. While section-composition-system handles page-level flow, this system focuses on readability, line length (measure), vertical rhythm, and the spatial relationship between text and editorial elements (images, quotes, code blocks). It ensures that users can consume large amounts of information without visual fatigue.

Use Cases

  • Designing blog post templates and article pages.
  • Structuring technical documentation and knowledge bases.
  • Creating long-form editorial content or digital magazines.
  • Developing "Reading Modes" or accessibility-focused text views.
  • Organizing educational content where information retention is the goal.

When NOT to Use

  • High-Impact Landing Pages: Where the goal is scanning benefits and quick CTAs; use section-composition-system.
  • Dashboards: Where data density and comparison are prioritized over linear reading; use data-table-ui-system.
  • Forms and Input-Heavy Views: Use form-design-system.
  • Single-Viewport "App" Views: Where content is secondary to functional tools.

Inputs

  1. Content Archetype: Is this a technical tutorial (code-heavy), a narrative story (image-heavy), or a formal whitepaper?
  2. Typography System: The base font sizes and scales defined in fluid-typography-system.
  3. Reading Environment: Will this be read mostly on mobile (distraction-free) or desktop (multi-column context)?
  4. Hierarchy Map: The logical structure of the content (H1, H2, H3, Body, Captions).

Outputs

  1. The "Golden Container" Spec: Defined max-widths for text to ensure optimal line length.
  2. Vertical Rhythm Map: A system of margins and paddings that creates predictable spacing between paragraphs and headings.
  3. Editorial Component Blueprint: Visual rules for Pull Quotes, Asides, Media Callouts, and Table of Contents.
  4. Responsive Reading Map: How font sizes and line heights adjust to maintain legibility on different screen widths.

Workflow

1. Define the "Golden Container" (The Measure)

The most critical factor in readability is the number of characters per line:

  • Optimal Range: 45 to 75 characters (including spaces).
  • Desktop Implementation: Usually translates to a max-width between 600px and 800px, or simply max-width: 75ch — the ch unit tracks the font's actual character width, so it stays correct across typeface changes.
  • Fluid Sizing: Use clamp() for headings and body text (e.g., font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem)) so type scales with the viewport instead of jumping at breakpoints.
  • Centering: Center the container to reduce eye-strain from wide head movements.

2. Establish Leading and Vertical Rhythm

Line height (leading) and spacing between blocks create "breathing room":

  • Base Leading: Aim for 1.5 to 1.6 for body text. Increase for smaller or more complex fonts.
  • The "Spacing Ratio": Use a consistent spacing system (e.g., 2x or 3x the base margin) for gaps before headings, and a smaller gap (e.g., 1x) after headings.
  • Paragraph Spacing: Use bottom margins (margin-bottom) rather than indents to separate paragraphs in web layouts.

3. Design Editorial "Breaks"

Prevent "Wall of Text" fatigue by introducing visual variety:

  • Pull Quotes: Larger, styled text that highlights key insights.
  • Asides/Callouts: Distinctly styled boxes (often with a light background or border) for secondary information.
  • Images/Media: Define rules for "Contained" (inline) vs. "Wide" (breaking the container width) vs. "Full-Bleed" media.
  • Heading Wrap: Apply text-wrap: balance to headings and pull quotes (with a fallback for unsupported browsers) to avoid orphaned single words on the last line.

4. Build Navigation and Wayfinding

Help users manage long content:

  • Table of Contents (ToC): For articles >1,000 words, provide a sticky ToC on desktop or a collapsible one on mobile.
  • Progress Indicator: A subtle bar or percentage indicator to show how much content remains.
  • Reading Time: Provide an estimated "X min read" at the top to set user expectations.

5. Plan Responsive Typography Shifts

Maintain legibility as the screen shrinks:

  • Mobile Comfort: On small screens, reduce the horizontal padding but keep the line length comfortable.
  • Contrast Check: Ensure that background-colored callouts or dark-mode switches maintain WCAG AA contrast.

Decision Rules

  • The Character Rule: If a line of text exceeds 80 characters, it's too wide. If it's less than 40, it's too narrow. Adjust the container.
  • Heading Proximity: A heading should always be closer to the content it introduces than the content that precedes it (Proximity Principle).
  • Media Width Logic: Use "Contained" images for technical details and "Wide" or "Full-Bleed" images for atmospheric or narrative shifts.
  • The "Squint" Test for Rhythm: Squint at the page; you should see distinct "blocks" of text separated by clear, consistent whitespace.

Constraints

  • Accessibility: Text must meet WCAG AA (4.5:1) contrast. Font size should never be smaller than 16px (1rem) for body copy.
  • Responsiveness: Containers must be fluid (use max-width instead of fixed width). For components inside the article (callouts, embedded media) that need to adapt to their own container rather than the viewport, use container queries (@container).
  • Hierarchy: H1 must be the most prominent, but body text must be the most comfortable to read.

Common Failure Patterns

  • The "Desktop Ocean": Text that spans the full width of a 24-inch monitor, making it impossible for the eye to find the next line.
  • Suffocating Text: Line height that is too tight (e.g., 1.1 or 1.2), causing ascenders and descenders to clash.
  • Floating Headings: Headings with equal spacing above and below, making it unclear which section they belong to.
  • Inconsistent Media: Mixing center-aligned, left-aligned, and wide images without a clear logical system.
  • The "Endless Scroll": No wayfinding or progress indicators in a 5,000-word article, leading to user abandonment.

Validation Criteria

  • Line length (measure) is between 45 and 75 characters on desktop.
  • Line height (leading) is at least 1.5 for body text.
  • Vertical rhythm clearly groups headings with their following content.
  • Editorial elements (quotes, callouts) are visually distinct from body text.
  • Table of Contents or wayfinding is present for long-form content.
  • Reading experience is tested and optimized for mobile viewports.
  • Contrast ratios for all text meet WCAG AA standards.

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for progressive disclosure using accordions, ensuring structural integrity, visual affordances, and accessibility across different content densities and devices.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for informational elements that communicate state (Badges) and categorization (Tags) with clarity and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for non-overlay notifications, managing global announcements and contextual inline alerts to communicate system states without interrupting the user's flow.

coastdigitalgroup/coastai-skills

Design and implement a systematic, asymmetrical bento-grid layout framework to organize diverse content types cohesively while maintaining strict visual hierarchy, logical focus order, and responsive flexibility.

coastdigitalgroup/coastai-skills

Design a responsive, mobile-first bottom navigation bar and persistent action dock system for mobile websites and web applications, establishing spatial anchors, tab bar anatomy, badge indicators, thumb-zone ergonomics, safe area inset handling, active/inactive state contrast, and desktop responsive adaptation rules.

coastdigitalgroup/coastai-skills

Design a mobile-first bottom sheet overlay system with configurable detents, drag affordances, safe area padding, responsive desktop modal/popover adaptation, and WCAG AA accessibility compliance.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for secondary navigation trails that provide orientation, context, and one-click access to parent levels in deep information architectures.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for buttons and interactive triggers, managing visual hierarchy, variant logic, and action grouping to ensure clear intent and accessible interaction.

coastdigitalgroup/coastai-skills

Design a systematic framework for date and time selection, managing calendar grids, range pickers, and scheduling interfaces to ensure precision and accessibility.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for modular content containers that maintain hierarchy, structural integrity, and action alignment across variable content and responsive viewports.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for horizontal discovery components, managing navigation affordances, scroll behavior, and accessibility to ensure effective content density without compromising usability.

coastdigitalgroup/coastai-skills

Design a systematic, highly accessible, and developer-friendly UI layout framework for code blocks, snippet showcases, multi-file code tabs, line-highlighting, diff views, and syntax token contrast in technical documentation and developer platforms.

coastdigitalgroup/coastai-skills

Design a systematic framework for global command menus (Cmd+K panels) that combines keyboard-driven navigation, command execution, and shortcut discovery into an accessible, responsive overlay.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for threaded conversations, managing nesting depths, action hierarchies, and community signaling to foster engagement and readability.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for side-by-side comparison interfaces, managing high attribute density and responsive complexity to support informed decision-making.

coastdigitalgroup/coastai-skills

Design and implement a systematic framework for user privacy, managing consent banners, preference centers, and persistent privacy controls to balance legal compliance with user trust.

coastdigitalgroup/coastai-skills

Design and implement a systematic, highly accessible, and responsive visual layout framework for conversational chat widgets, live chat boxes, and chatbot panels that ensures clear message scannability, native focus flow, and seamless mobile keyboard adaptation.

coastdigitalgroup/coastai-skills

Design a systematic, accessible, and high-conversion framework for custom select dropdowns and comboboxes, defining anatomy, states, search-filtering, and responsive mobile-adaptive patterns.

coastdigitalgroup/coastai-skills

Design and specify a systematic dark theme framework, establishing rules for elevation-based surface colors, desaturated brand accents, text legibility, and media adaptation to ensure an accessible, low-fatigue experience.

coastdigitalgroup/coastai-skills

Design and implement a systematic color palette that ensures WCAG 2.2 accessibility compliance. Trigger this skill when asked to define brand colors, create UI themes, or establish a visual system for a website.

Habilidades Relacionadas