Skip to content

feat: the home page for each school's needs, Lightning CSS, Mzizi tokens, and the first page off Tailwind - #154

Merged
Bryan Fawcett (bryanfawcett) merged 9 commits into
mainfrom
claude/blissful-bell-4liuye
Dec 4, 2026
Merged

Bryan Fawcett (bryanfawcett) merged 9 commits into
mainfrom
claude/blissful-bell-4liuye

Conversation

@bryanfawcett

@bryanfawcett Bryan Fawcett (bryanfawcett) commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Mzizi builds its CSS with Lightning CSS, which works with Rust where Tailwind does not, around tokens.css (values only). This is the learning site's first step the same way. Nothing on the site looks different. The CSS pipeline now runs on Lightning CSS, and Mzizi's tokens are now available to the site's CSS.

  • Lightning CSS. Vite+'s css.transformer and build.cssMinify are set to lightningcss, targeting Mzizi's browser floor: Chrome and Edge 111, Firefox 113, Safari 16.2. lightningcss is now a direct dev dependency.
  • Mzizi's tokens.css.
    • The file is copied into src/styles/mzizi/ from mzizi-dev/mzizi-registry at 292ecc8. That is registry main, including the nine chrome tokens added on 22 November.
    • scripts/sync-mzizi-css.mjs does the copying, under a header naming the commit, and CI runs it with --check.
    • Mzizi doesn't publish these stylesheets in a package yet. When it does, the package replaces the copy and the script.
  • No visible change. The tokens are imported into the lowest cascade layer, so every value the site already sets stays as it is. 238 Mzizi tokens that @bundu/ui doesn't define become available, such as --measure and --ring-width.
  • floor.css waits. Loaded now, it sized @bundu/ui's hero buttons by the kit's 49px floor, which made them 36px → 49px tall on desktop. It comes in with the first page converted to Mzizi's data-slot pattern.

Update 2: the home page, forward-deployed for each school's needs (#158)

After looking at the live site, the owner asked for the home page to stop leading with the Toddle extension. It now says what Nyuchi Learning is: a forward-deployed company that builds for each school's own needs, not a generic one. The Bundu frameworks and standards define how it builds, and its tools are published open source and handed over: it advocates for schools' independence and sells no support or maintenance, acting as a go-between only for a smaller or rural school that can't run a tool alone.

  • Hero: "Built for your school. Not for every school.", with how an engagement runs.
  • Built from inside schools: the founder's career in classrooms, school leadership and school IT, without naming the schools, and his four questions before anything is built.
  • Why forward-deployed: big platforms and consultants against building for the school.
  • What we've built: Mukoko Lingo, the Toddle Enhancement Extension and CampusPass, with equal weight. CampusPass is new to the site, in nyuchi.com's own words.
  • Built to be handed over: the school's IT runs it by default, and Nyuchi Learning is the go-between only for a smaller or rural school that can't yet.
  • Bundu frameworks and standards: what defines how we build.
  • Header and navigation: the default action is "Work with us", and the extension's pages keep "Add to Chrome". The nav is How we work, Apps, Frameworks, Programmes.
  • CSS: the page's own sections are plain CSS reading tokens (Move the site's CSS to Lightning CSS and Mzizi's tokens.css, off Tailwind #153).

Checks: vp run check, vp run test (149 tests; one SEO test changed deliberately for the new nav) and vp run qa (78 combinations) all pass.

Update: the first page off Tailwind, and a QA fix

Two commits were added after the foundation. Auto-merge is off until the owner approves them too.

Checks: vp run check, vp run test (149 tests), prettier --check . and vp run qa all pass.

Still blocked by the org: the required "PR metadata" workflow fails to start on every PR in this repo (see the comment below). An owner has to fix that rule or merge past it.

Linked issue(s)

Refs #153 (steps 1 and 2, and the first page of step 3). Fixes #157. Refs #158, #152.

Type of change

  • feat: the CSS pipeline and design tokens (no user-visible change)
  • build: Lightning CSS
  • ci: a check that the Mzizi copy matches the registry

Breaking change?

  • This PR introduces a breaking change.

How has this been tested?

On Node 26.14.0:

  • vp run check: 0 errors and 0 warnings.
  • vp run test: 146 tests pass, with the build and CSP check. There's a new tests/mzizi-css.test.ts, and tests/toolchain.test.ts now also checks that both formatters skip the same copied files.
  • prettier --check . passes.
  • vpx scripts/sync-mzizi-css.mjs --check passes.

Visual checks in Chromium, comparing this branch's build against main:

  • Computed tokens: every custom property on <html>, on three pages, in light and dark. None of the existing 415 changed, and 238 were added.
  • Screenshots: all 16 pages, light and dark, at 390px and 1280px, which is 64 page views. Two differ in pixels, with identical heights and element boxes. main compared against itself shows the same two, so that is rendering noise, not this change.

Checklist

Process

  • My PR title follows Conventional Commits.
  • All of my commits are signed: not in this session.
  • All of my commits have a DCO sign-off: no.
  • Branch name follows <type>/<short-kebab-description>: this session pushes only to claude/blissful-bell-4liuye.
  • Rebased onto the latest default branch.
  • Tests added.
  • Documentation updated (docs/toolchain.md, the CSS section).
  • Local checks pass.
  • New dev dependency: lightningcss ^1.33.0 (MPL-2.0), already in the tree through Vite+ core and Tailwind. It's now direct so the config can rely on it.

NA-03 merge blockers

  • Secret hygiene: none in the diff.
  • Prohibited dependencies: none.
  • Frontier defaults: static CSS served from Cloudflare's edge, with nothing at runtime.
  • GitHub Actions: no new actions; one new step runs a repository script.

Also in this PR

Refs #158, #160. Closes #161.

Additional notes

Next steps in #153:
3. Pages move from Tailwind utilities to plain CSS that reads the tokens, one at a time, each checked with vp run qa.
4. floor.css comes in with the first page converted.
5. @bundu/ui's Tailwind components are replaced.
6. Tailwind is removed.


Generated by Claude Code

…ailwind

Mzizi builds its CSS with Lightning CSS around tokens.css (values only).
This is the site's first step the same way, with no visible change.

- Vite+'s CSS pipeline runs on Lightning CSS (css.transformer and
  build.cssMinify), targeting Mzizi's browser floor: Chrome and Edge 111,
  Firefox 113, Safari 16.2. lightningcss is a direct dev dependency.
- Mzizi's tokens.css is copied into src/styles/mzizi/ from
  mzizi-dev/mzizi-registry at 292ecc8 (main, with the chrome tokens of
  22 November) by scripts/sync-mzizi-css.mjs, under a header naming the
  commit. CI runs it with --check. Both formatters skip the copy, and
  tests/toolchain.test.ts holds their ignore lists together.
- It is imported into the lowest cascade layer, so every value the site
  already sets stays. A browser comparison against main, every page in
  light and dark at 390px and 1280px, found no difference beyond the noise
  main shows against itself, and no computed token changed. 238 Mzizi
  tokens become available, such as --measure and --ring-width.
- floor.css waits for the first page on Mzizi's data-slot pattern: loaded
  now, it sized @bundu/ui's hero buttons by the kit's 49px floor (36px to
  49px on desktop).

Refs #153

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
learning Ready Ready Preview Dec 4, 2026 8:39am UTC

Request Review

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
nyuchi-learning 22b7c7d Commit Preview URL

Branch Preview URL
Dec 04 2026, 08:40 AM

@bryanfawcett
Bryan Fawcett (bryanfawcett) marked this pull request as ready for review December 4, 2026 01:46
`vp run qa` failed on every page since the beacon was added (#149): its
hosts were not on scripts/qa.mjs's approved list. The CSP already allows
them and the privacy and cookie pages describe the beacon. With them
approved, the run is clean: 78 page, width and theme combinations, no
accessibility violations, overflow or cookies before consent.

Fixes #157

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
Its own parts (title, date, headings, paragraphs and lists) are styled by
src/styles/site/document.css: plain CSS, one class per part, reading tokens
only, which the legal pages will share. The container, section, eyebrow and
link are @bundu/ui's shared classes and move with the kit.

- Values come from Mzizi's tokens.css (colours, type sizes, line heights,
  weights, spacing, the serif family). src/styles/site/tokens.css holds the
  few it lacks: this site's fluid h1 and h3 sizes, their letter-spacing and
  the list-marker colour, as the @bundu/ui preset gives them today, so the
  page looks the same. Moving to Mzizi's fixed heading sizes is a visible
  change, left for the owner.
- No visible change: the page is pixel-identical to main in light and dark
  at 390px and 1280px, and every other page is unchanged (the differences
  on the image-heavy pages appear between two runs of the same build too).
  `vp run qa` is clean.
- tests/plain-css.test.ts: a converted page uses no utility class, and
  document.css reads tokens for every value, and only tokens that exist.

Refs #153

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq

Copy link
Copy Markdown
Member Author

Why this PR hasn't merged: the required PR metadata workflow (pr-metadata.yml, run from nyuchi/.github by the org ruleset) ended in startup_failure on this PR's head (run 47219657133). It never got to run a job, so the ruleset has no result for it and the PR stays blocked. Every other check is green, and no review is required.

Not this PR's: the same workflow has failed to start on every pull request in this repo since 3 December, including fix/www-nyuchi-link as recently as 01:41 UTC today. Before that it passed, including on this branch on 2 December. pr-metadata.yml hasn't changed since 28 November, so the cause is in the org ruleset or Actions settings, not in this repository.

What I tried: a re-run, which GitHub refuses: "This workflow run cannot be retried". There is no fix I can port from this repository. The run page shows GitHub's reason for the startup failure. An owner can fix the ruleset, or merge past it.


Generated by Claude Code

@bryanfawcett Bryan Fawcett (bryanfawcett) changed the title feat(css): Lightning CSS and Mzizi's tokens.css, the foundation off Tailwind feat(css): Lightning CSS, Mzizi's tokens.css, and the first page off Tailwind Dec 4, 2026
… needs

The home page led with the Toddle extension. It now says what Nyuchi
Learning is (owner, issue 158): a forward-deployed company that builds for
each school's own needs, not a generic one, architected to the open Bundu
frameworks and standards, with its tools published open source and run by
Nyuchi or by the school's own IT.

- Hero: "Built for your school. Not for every school.", with how an
  engagement runs (embed, build for your school, built to Bundu standards,
  run it your way).
- Built from inside schools: the founder's career in classrooms, school
  leadership and school IT, privacy and infrastructure (from
  bryanfawcett.com, without naming the schools), and his four questions
  before anything is built.
- Why forward-deployed: big platforms and consultants against building for
  the school.
- What we've built: Mukoko Lingo, the Toddle Enhancement Extension and
  CampusPass with equal weight. CampusPass is new to the site, in nyuchi.com's
  own words, as a beta.
- Run it your way: managed by Nyuchi, or run by the school's IT.
- The Bundu frameworks and standards, as what defines how we build.
- The header's default action is "Work with us"; the extension's pages keep
  "Add to Chrome". The navigation is How we work, Apps, Frameworks and
  Programmes, and the footer lists the three apps first.
- The home page's sections are plain CSS reading tokens
  (src/styles/site/home.css, issue 153).

The Mukoko Lingo SEO test changes deliberately: the header reaches the apps
through "Apps", and the home page and footer link all three.

Refs #158, #153

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
@bryanfawcett Bryan Fawcett (bryanfawcett) changed the title feat(css): Lightning CSS, Mzizi's tokens.css, and the first page off Tailwind feat: the home page for each school's needs, Lightning CSS, Mzizi tokens, and the first page off Tailwind Dec 4, 2026
…ence

Owner: "We avoid support and maintenance, our objective is to handover! We
advocate for independence of schools, but we act as a middle man if a
smaller or rural school can't do it themselves."

- The hero and how-we-work end in handover: the school's IT runs what we
  build from day one, with training.
- "Run it your way" is now "Built to be handed over": the school's IT runs
  it by default; for a smaller or rural school that can't yet, Nyuchi
  Learning is the go-between until it can. No support or maintenance offer
  anywhere on the page.
- The comparison, FAQ ("Will we depend on you?", "What if our school has no
  IT team?"), call to action, page description and site description say
  the same.

Refs #158

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
The hero is now one large serif statement: the lead sentence in the
foreground, the rest continuing in the muted foreground at the same size,
then the two pills and the four steps of an engagement on hairlines, with
no card. Plain CSS reading tokens (#153); the bundu Hero is no longer
used on this page.

The statement speaks of the gaps in a school's tech stack and the
connections between its systems, not of what vendors leave out (owner).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
A savanna in cut-away, painted on a canvas and animated: a baobab, an
umbrella thorn, a granite kopje, a Kenyan top-bar hive and its bees on
rolling ground; below the ground line the two trees' roots are joined by
fungal threads, and light travels from one tree to the other, as the
tools we build connect a school's systems.

The scene is brand-neutral (src/scripts/bundu-scene.js): it keeps
nature's colours, and its one brand colour, the light in the roots, is
--scene-accent, here Mzizi gold. Light mode is golden hour; dark mode is
a moonlit night with fireflies.

It is decoration: hidden from assistive technology, still under reduced
motion, asleep off screen and in a hidden tab, and paused by a button
(WCAG 2.2.2). No video file and no inline script: the CSP is unchanged.

The four steps move out of the hero to their own row below it, and the
statement is shorter, so text never sits on the scene.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
No page had an og:image or twitter:image, so a link shared on LinkedIn,
WhatsApp, X or Slack showed no picture. Every page now carries one:
public/brand/og.jpg, 1200 by 630, a still of the Bundu scene with the
wordmark and the home page's statement, made by scripts/og-image.mjs.

The page shell adds the image's size, type and alt text, the Twitter
title, description and image, og:locale, and max-image-preview:large for
indexable pages; a page can pass its own image. The JSON-LD graph gains
the organisation's logo and each page's primary image.

The home, Mukoko Lingo, extension and accessibility pages now keep their
titles within 60 characters and their descriptions within 160, which is
what a search result shows; tests hold both.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
Comment thread tests/seo.test.ts Fixed
…#161)

CodeQL flagged the helper for double unescaping: it turned &amp; into &
before &quot;, so "&amp;quot;" would have become a quote.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CoDNYz27iJ7o8PPztCzTpq
auto-merge was automatically disabled December 4, 2026 10:30

Pull request was closed

@github-actions github-actions Bot added the type: feature New functionality label Dec 4, 2026
@bryanfawcett
Bryan Fawcett (bryanfawcett) added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 6aa82c9 Dec 4, 2026
47 checks passed
@bryanfawcett
Bryan Fawcett (bryanfawcett) deleted the claude/blissful-bell-4liuye branch December 4, 2026 10:33

This branch was successfully deployed

1 active deployment
Preview — 22b7c7d1 Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SEO: add a social share (OG) image and tighten page metadata Browser QA flags the Cloudflare Web Analytics beacon as an unapproved third party

3 participants