Living Style Guide

This page demonstrates all design patterns and components using semantic HTML with minimal component classes.

Edit _data/style-guide-content.md or _data/styleGuideData.js to update examples.

Markdown Content Examples

Typography Examples

This is a regular paragraph with bold text, italic text, and inline code. Here's a link example.

Heading Level 2

Heading Level 3

Lists

Unordered List

Ordered List

  1. First step in the process
  2. Second step with code
  3. Third step with important information

Code Examples

Inline code: const example = "hello world";

Block code:

function greet(name) {
  return `Hello, ${name}!`;
}

const result = greet("World");
console.log(result);

Blockquotes

This is a regular blockquote. It should be styled distinctly from alerts and callouts. It can span multiple lines and paragraphs.

GitHub-Style Alerts

Note

Highlights information that users should take into account, even when skimming.

Tip

Optional information to help a user be more successful.

Important

Crucial information necessary for users to succeed.

Warning

Critical content demanding immediate user attention due to potential risks.

Caution

Negative potential consequences of an action.

CRA Hub Specific Alerts

ORC WG Recommendation

ORC Working Group Recommendation Callout.

Complex Example

Here's a paragraph with a callout:

Warning

This is critical information that demands immediate attention.

Followed by more regular text and a code block:

// Example of compliance checking
const checkCompliance = (product) => {
  return product.hasSecurityUpdates &&
         product.hasDocumentation &&
         product.vulnerabilityTracking;
};

FAQ Accordion Component

Component: components/faq/faq-accordion-item.njk

Native HTML accordions with CSS-only animations using <details> elements.

Showing FAQs from the same sample list used in other views below.

What is the Cyber Resilience Act?

The Cyber Resilience Act (CRA) is EU legislation aimed at improving cybersecurity of digital products.

When does the CRA take effect?

List Flat View (With Context)

Component: components/faq/list-flat-with-context.njk

Shows list title, description, and immediate children (no recursion). Same data as above and below.

🚀 Getting Started with CRA

Essential questions about CRA compliance organized by topic

What is the Cyber Resilience Act?

The Cyber Resilience Act (CRA) is EU legislation aimed at improving cybersecurity of digital products.

When does the CRA take effect?

List Expanded View (Recursive) with Badges

Component: components/faq/list-expanded-items.njk

Recursively renders nested list structures with alternating backgrounds. Same data as above.

Status Badges: FAQs display status badges (Component: components/faq/faq-badges.njk) that use <data> elements with semantic values. Use the toggle below to show/hide badges:

List Card Component

Component: components/list-card.njk

Displays nested lists as clickable cards with FAQ/list counts.

Showing nested lists from the sample data.

Navigation Cards

Used on home page and list indexes with hover effects and arrows. Uses .card-grid and .card classes.

Half-Width Cards

Cards can be displayed in a two-column layout using .card-grid.half-width.

Disclaimer/Warning Block

Uses semantic <aside> element.

Semantic HTML Structure

The templates use semantic HTML5 elements with minimal component classes:

CSS Architecture

Hybrid CSS architecture combining semantic HTML with light component classes:

Component Classes

Utility Classes

CSS Features

Table Styling

Semantic table styling with subtle borders and proper spacing

Component Purpose Status
FAQ List Display question links ✅ Complete
Accordion Expandable content ✅ Complete
Tables Structured data display ✅ Complete

ORC WG Brand Guidelines

For the official ORC Working Group logo and brand usage guidelines, check the ORC Brand Guidelines (PDF) provided by the Eclipse Foundation