Skip to content

Curriculum

Modules and lessons of a course with durations, lesson type, done and locked states, each module a native disclosure.

Course outline

1 · Seeing type4 lessons · 48 min
  1. How letters are built (done)
  2. Serif, sans and everything between (done)
  3. Measure, leading and rhythm
  4. Exercise: set a menu
2 · Pairing and hierarchy5 lessons · 62 min
  1. Two faces, one voice (locked)
  2. Scales that hold (locked)

Installation

Everything ships in one stylesheet. There is nothing to import per component.

<link rel="stylesheet" href="https://mian.ro/dist/mian.css">

Prefer to own the files? /r/curriculum.json is a registry item with this component's CSS and example markup, ready to copy into your project with any tool that reads the open registry-item format.

Class reference

Class / attributeDescription
mn-curriculumThe list of modules.
mn-moduleA module: <details> with a summary (title, lesson count, duration).
mn-module-metaThe count and duration in the summary.
mn-lessonsThe ordered list of lessons.
mn-lessonA lesson row. data-state="done" or "locked".
mn-lesson-timeDuration, in tabular figures.

Accessibility

  • Modules are native <details>, so they open with Enter or Space and announce expanded or collapsed.
  • Done and locked states are also written as text (visually hidden), not only drawn.
  • Durations use <time datetime="PT12M"> so they are machine-readable.
Choose a noodle

Minimal

Flat

Pixel

Linear

Thin

Glass

Textured

Bold

Elegant

Rounded

On this page