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.
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.
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.
Each token is counted under its token collection in zeroheight, e.g. --mds-icons-sm counts as sizes wherever it's used.
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 = 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.
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.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.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.none, inherit or auto, don't count as hard-coded.All of these are rough proxies, not a curated catalogue — treat the figures as directional, not precise.
Each line of code importing or using a @moodlehq/design-system component. Not deduplicated: one component used on 50 lines counts as 50 uses.
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.
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).
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.
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.
mod_forum, block_html) — not a curated mapping.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.
Every file this scan found outside the design-system package, and how many distinct templates transitively include it.
| Type | File | Reach |
|---|---|---|
| loading — | ||