Skip to the page

MCSS-Lite 0.4.1

GitHub

Parts inventory

The back of the booklet: every part MCSS-Lite ships, with its status. Anything not listed here doesn't exist, and mcss-lite validate rejects it.

  • Stable Changes only in a major version.
  • Beta Shipped and validated; the API may change in a minor version.
  • Deprecated Still works; move to the replacement.

Layouts 8 parts

Layouts
PartStatusSinceNotes
l-centerStable0.1.0Centers a block horizontally at reading width without side gutters.
l-clusterStable0.1.0Horizontal group that wraps, with a gap and vertically centered items: button groups, badge lists, tags.
l-containerStable0.1.0Centers page content horizontally with a max width and side gutters.
l-gridStable0.1.0Two-dimensional grid with a fixed gap.
l-sectionStable0.1.0Vertical padding for a full-width page section.
l-sidebarStable0.1.0A sidebar next to main content that stacks when the content would get narrower than 50%.
l-stackStable0.1.0Vertical flow: adds space between consecutive children, which keep their own width.
l-switcherStable0.1.0Children sit side by side until the container is narrower than a threshold, then all stack at once.

Components 11 parts + 1 deprecated

Components
PartStatusSinceNotes
c-alertBeta0.4.0A printed notice on the page: tells people about something that affects what they are doing, with its severity in an icon, a word and a heavier bottom edge.
c-badgeStable0.1.0A short, non-interactive label for status or category, such as "Beta" or "Paid".
c-buttonStable0.1.0Triggers an action.
c-cardStable0.1.0A raised surface that groups related content, such as a summary, a settings group or a list item.
c-checkboxBeta0.4.0A native checkbox with its label: pick any number of options, or confirm one statement.
c-form-fieldStable0.1.0Wraps one form control with its label, help text and error message.
c-iconBeta0.4.0A line icon from the MCSS-Lite sprite, drawn with a 2px stroke in the current text color.
c-inputStable0.1.0Single-line text entry.
c-labelDeprecated0.1.0Use c-form-field__label
c-modalStable0.1.0A dialog over the page that blocks interaction until dismissed.
c-radioBeta0.4.0A native radio button with its label: pick exactly one option from a short, visible list.
c-toggleBeta0.4.0An on/off switch built on a native checkbox with role="switch": the setting applies as soon as it changes.

Utilities 15 classes

Utilities
PartStatusSinceNotes
u-*Stable0.1.0Single-purpose overrides with !important.

Tokens 113 to use

51 semantic and 62 component tokens, built on 137 primitives you don't use directly. Every token with its light and dark value is in llms-tokens.txt; each part sheet lists the tokens it reads.