Duc

Style Guide

A living style guide to test and preview all typography, elements, and Markdown rendering on this site (inspired by Poor Man's Style Guide).

Headings

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Paragraphs & Text Formatting

This is a standard paragraph with bold text, italicized text, bold italicized text, and ~strikethrough text~.

Code snippets inside paragraphs look like const pi = 3.14159; with monospace styling.

Chemical formula or notes can be written cleanly, and abbreviations like HTML and CSS are the core building blocks of the web.

Links

Blockquotes

Simplicity is about subtracting the obvious and adding the meaningful.

— John Maeda, The Laws of Simplicity

Nested Blockquote

First level of quote with important context.

Nested blockquote reflecting a secondary thought or reference inside another discussion.

Lists

Unordered List

  • First level item

    • Second level item (indented)

      • Third level item (deeply indented)

    • Another nested point

  • Top level conclusion

Ordered List

  1. Discover requirements and set typographic baseline

  2. Draft layouts using semantic HTML

  3. Refine CSS custom properties and micro-interactions

Task List (Checkboxes)

  • Set up Nue SSG project structure

  • Configure 70ch optimal reading width

  • [ ] Build Masonry Photo Gallery

  • [ ] Implement Dark / Light theme toggle

Definition List (HTML DL)

Code & Syntax

Inline code looks like const theme = localStorage.getItem('theme') || 'auto' inside a paragraph.

Code Block with Syntax Highlighting

 base {
  body {
    max-width: 75ch;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--base-800);
    font-family: system-ui, -apple-system, sans-serif;
  }
}
// Theme toggle helper
function toggleTheme() {
  const current = document.documentElement.getAttribute('data-theme');
  const next = current === 'dark' ? 'light' : 'dark';
  document.documentElement.setAttribute('data-theme', next);
  localStorage.setItem('theme', next);
}

Tables

RankTechnologyRoleStatus
01HTML5Structure & SemanticsStandard
02Modern CSSStyling & LayoutsStandard
03Vanilla JSProgressive EnhancementOptional
04Nue.jsSSG & Static BundlingActive

Images & Placeholders

Caption: A sample responsive media placeholder styled with native CSS.

Horizontal Rules

Three horizontal rules showing break aesthetics:



Form Inputs & Interactive

Nue uses its own component/islands for dynamic interactive controls, but standard buttons and inputs can be styled with minimal classes:

Text input

Email input

Textarea

Form Controls

  • Completed task checkbox

  • [ ] Incomplete task item

  • Regular bullet point for comparison

Horizontal Rules

A clean transition divider:

design Zoomed view