Internal · Moodle LMS

Design System Adoption Dashboard

Enter the shared password to continue.

Design System Adoption Dashboard

loading —

Weekly snapshot of moodle/moodle's public GitHub main branch. Excludes Moodle's private GitLab integration branch until it merges to GitHub. A structural, static read of the source tree — not a runtime measurement of a live site.

Tokens

Token usage — total

—
across all categories
What counts as a "use"

Each line of code in Moodle LMS referencing a $mds-* / var(--mds-...) token. Not deduplicated, meaning one token used on 50 lines counts as 50 uses.

Coverage by eligible CSS attributes

—
What counts as "eligible"

Colour, typography, spacing, borders and shadows. Sizes and breakpoints are left out, because the same CSS property can hold a value that should use a token or one that never will. For example, width: 16px might be an icon (which should use a token) or a table column (which shouldn't). Compiled/generated theme CSS is also left out.

Token usage by category

How categories are assigned

Each token is counted under its token collection in zeroheight, e.g. --mds-icons-sm counts as sizes wherever it's used.

Coverage by category

How this is calculated

The share of each category's styling that already uses tokens. Tokens are grouped by the CSS property they're on, so padding: var(--mds-icons-sm) counts as spacing. A value that reaches a token through a variable, like color: $primary, counts as using it. Sizes and breakpoints aren't eligible — see "What counts as eligible".

Coverage trend by category

Coverage methodology

Coverage = tokenised values ÷ (tokenised values + remaining hard-coded values), combined across colour, typography, spacing, borders and shadows. Both sides count every SCSS/CSS file Moodle writes itself, in Boost and in plugins. Third-party libraries (from Moodle's thirdpartylibs.xml files) and compiled CSS are left out.

  • Both sides use the same scan (property: value;) against a property list per group — e.g. border-radius and border-width for borders, box-shadow and text-shadow for shadows. The lists are ours, checked against the properties the design system's own components use each token group on.
  • Variables are followed: color: $primary counts as tokenised because $primary ends on $mds-color-blue-500. Changing a value on the way, like rgba($black, .15) or $spacer * .5, makes it hard-coded again.
  • A border or outline line counts once for each value it sets: its width (borders) and its colour. So border: 1px solid var(--mds-border-default) is a tokenised colour but a hard-coded width. A box-shadow line works the same way, with its shape and its colour both counting as shadows.
  • Values that will never be tokens, like none, inherit or auto, don't count as hard-coded.
  • Sizes and breakpoints are left out: Boost sets them centrally (shared icon-size variables and Bootstrap's breakpoint map), not line by line, so a per-line share would measure the wrong thing.

All of these are rough proxies, not a curated catalogue — treat the figures as directional, not precise.

Components

Component usage — total

—
across all components, this scan
What counts as a "use"

Each line of code importing or using a @moodlehq/design-system component. Not deduplicated: one component used on 50 lines counts as 50 uses.

Files reached by the design system

—
files that use these components, directly or indirectly
What does this measure?

The number of distinct files that connect to a design-system component, directly or through other files that depend on them. Each file is counted once, even if several components reach it.

Coverage by screens using the design system

—
What counts as a screen "using" the design system?

Counts a screen as soon as one design-system component appears on it, however small a share of the screen that is. Tracks breadth (how many screens were touched), not depth (how converted each one is).

Component usage by component

Coverage by screens using the design system — trend

Coverage methodology

This adds up three kinds of screen:

    Measures breadth (does a surface show MDS at all), not depth (what fraction of that surface's markup is MDS) — a page that's 1% MDS and one that's 100% MDS count identically.

    Attributions

    Contributor breakdown

    What's being counted?

    Counts MDS token and component-import lines (not commits), credited via git blame to whoever last touched each line — so an edit or reformat can shift credit away from who first added it.

    New adopters this week

    Plugin-type breakdown

    Area / component breakdown

    Adoption breadth over time

    Attribution methodology
    • Contributor: git-blame on each matched line, credited to whoever last touched it.
    • Plugin / type: a best-effort guess from the file's path, using Moodle's "frankenstyle" plugin-naming convention (e.g. mod_forum, block_html) — not a curated mapping.

    Technical details

    See the technical details

    Semantic token share

    —
    Semantic vs primitive

    Primitive tokens are raw values, like $mds-color-blue-500 ("this blue"). Semantic tokens say what a value is for, like --mds-bg-surface-default ("surface background"), so they adapt to theming and dark mode. Higher is better. Variables count as the token they end on, so color: $primary is primitive. Palette definitions like $blue: $mds-color-blue-500 are left out, because primitives are correct there.

    Semantic token share — trend

    Where it's been adopted

    Every file this scan found outside the design-system package, and how many distinct templates transitively include it.

    TypeFileReach
    loading —

    How each number is counted, and where it falls short