GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TanksterAI/design-system: Tankster AI design system: Ember Glass OKLCH tokens, shadcn/ui components on Base UI and Tailwind CSS 4, documented and tested in Storybook 10.

BranchesTags
Open more actions menu

Latest commit

 

History

32 Commits
32 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github/workflows
.github/workflows
 
 
.storybook
.storybook
 
 
api
api
 
 
drift
drift
 
 
packages
packages
 
 
scripts
scripts
 
 
stories
stories
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
CLAUDE.md
CLAUDE.md
 
 
LICENSE
LICENSE
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
budgets.json
budgets.json
 
 
osv-scanner.toml
osv-scanner.toml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
renovate.json
renovate.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 
wrangler.jsonc
wrangler.jsonc
 
 

Repository files navigation

Tankster UI · Ember Glass

The one design system for Tankster AI's interfaces, published as three private npm packages on GitHub Packages:

Package What it is Who installs it
@tanksterai/tokens The Ember Glass tokens: one W3C DTCG 2025.10 source (OKLCH), built with Style Dictionary into tokens.css, the --tk-* migration aliases (tankster.css), tokens.json and SHA256SUMS Anything that wants the raw values; design tools
@tanksterai/css One pre-compiled stylesheet (tokens, glass, every component class, theme switching, reduced motion, forced colours), self-hosted Geist fonts, a Tailwind theme, HTML recipes for every component and pattern, <head> recipes, and AGENTS.md Every product. Workers and the extension use only this
@tanksterai/react The React 19 components: shadcn/ui on Base UI, styled only by @tanksterai/css classes, complete on the server with no style attribute React apps
  • Ember Glass: warm charcoal ground, ember primary, the mint signal, frosted glass panels over soft ambient glows; dark by default with a matching light theme. Glass everywhere, and it always degrades to opaque.
  • Geist and Geist Mono (SIL OFL 1.1), self-hosted: no request ever leaves a product's origin.
  • Storybook 10 documents every component and recipe, and is the test harness.

Guarantees, all tested on the built packages

Guarantee Gate
The DTCG source is valid, the themes only alias raw values, and every token output is byte for byte a fresh build test/tokens.test.ts
Text holds 4.5:1 and control edges 3:1 in both themes, on every surface text may sit on (glass over the brightest glow, glass-inset, popover, the raised surface, a modal dialog over the page), tints included test/contrast.test.ts, reading packages/tokens/dist/tokens.json
Every story passes axe and its play function in five modes (dark, light, both with more contrast, forced colours); so does every HTML recipe, styled only by the compiled stylesheet, plus what axe does not check: every meter named, every field error wired to its control, every confirm dialog starting on its safe choice and submitting its action npm run test:stories, npm run test:recipes
The relay popup fits Chrome's extension popup: 360 px wide, at most 600 px tall the popup stories' play functions and npm run test:recipes, budgets.json
Releases happen only from main; the commit-back workflows never push to main; every action is pinned to a commit test/workflows.test.ts
Every component renders completely on the server with no style attribute, and every recipe is exactly its story's server output test/ssr.test.tsx
Every story looks as approved, in both themes npm run test:visual (Vitest toMatchScreenshot, baselines from CI)
Nothing public is removed or renamed without a major version api/public-api.json, scripts/breaking.mjs
The compiled CSS, the fonts and the infinite animations stay within budget, and one reduced-motion rule stops all motion test/budgets.test.ts, budgets.json
No raw colours outside the tokens, no inline styles anywhere test/source-rules.test.ts
Every dependency override says why, when it can go, and when to check again test/dependencies.test.ts, the Dependency overrides table below

Develop

Node 26 (see .nvmrc), then:

npm ci                  # the lockfile is generated in CI (lockfiles workflow); install scripts are off (.npmrc)
npm run build           # tokens -> react -> css, then api/public-api.json and AGENTS.md
npm run typecheck
npm test                # every unit gate, on the built packages
npm run test:stories    # needs Chromium: npx playwright install chromium, or set CHROMIUM_PATH
npm run test:recipes
npm run storybook       # http://localhost:6006

Visual baselines are never written on a laptop: add the label update-baselines to your pull request (or run the update-baselines workflow on the branch), and CI commits fresh ones in its Playwright container. Change a token in packages/tokens/tokens/, then npm run build and commit packages/tokens/dist/ and api/public-api.json with it.

Releasing

Every pull request that changes packages/ adds a changeset (npx changeset; see .changeset/README.md). Merging to main opens or updates the Version packages pull request; merging that runs every gate on the built packages, publishes the three tarballs it tested to GitHub Packages, pushes one tag per package (@tanksterai/[email protected]) and creates a GitHub Release with the changelog, a Syft SBOM and the tarballs' SHA-256s (not the tarballs themselves: the repository's Releases are public, and the packages stay private on GitHub Packages). The owner gets an ntfy notification either way. Every release run builds, publishes and tags the release commit: the commit the version's tags point at or, before they exist, the pushed commit. It must be on main and carry the version in all three packages, or the run fails without building anything. Once the gates pass, its tags are pushed and the tested SHA256SUMS is recorded on the version's draft GitHub Release, both before anything is published, so the registry only ever holds what the tagged commit built and a later push finishes the release of that commit. (An untagged version is built from the newest main because GitHub refuses a tag that the workflow's token pushes on a commit whose workflow files differ from main's, and no setting changes that.) A version counts as released only when its three tags exist and its GitHub Release is published (not a draft) with SHA256SUMS and the SBOM.

  • A release stops part-way: re-run the failed jobs of that run (Actions, the run, Re-run failed jobs) within a day; they reuse its tested tarballs, which are kept for one day. The next push to main also finishes it. Once all three packages are on the registry it only tags and releases, and only if the registry's tarballs reproduce the recorded SHA256SUMS. Before that it rebuilds the release commit and publishes what is missing, and stops if a rebuilt tarball differs from one already published.
  • The release commit fails its gates: the run sets a failed release/gates status on that commit and notifies once. Later pushes of the same version skip the gates without notifying (the plan says "blocked"; it reads the newest release/gates result of the version along main). A fix outside packages/ releases this version: push it, then run the release workflow by hand with retry-gates, which builds the newest main. A fix in packages/ needs a changeset, and releases the next version instead. If the failure was flaky, re-run the failed jobs of that run, or run with retry-gates.
  • Release tags are immutable: the repository ruleset "Release tags are immutable" blocks updating, force-pushing or deleting any @tanksterai/* tag, for everyone but repository admins (GitHub enforces rulesets on private repositories only on paid plans; the release commit check holds either way). GitHub does not let the Actions token be the only creator of a tag, so a wrongly created tag is caught by the release commit check above: delete it as an admin and run again. If a version's tags are incomplete on a commit whose workflow files are no longer main's, the workflow cannot push the rest (the plan says so; Releases on the existing tags still work). An admin pushes exactly the missing ones on that commit (git tag -a @tanksterai/<name>@<version> -m @tanksterai/<name>@<version> <commit> for each, then git push --atomic origin refs/tags/@tanksterai/<name>@<version> …) and runs the workflow again. Over HTTPS that needs a token with the workflow scope, which GitHub requires for the same reason; SSH works too. The same goes for a version published with no tag at all, where the plan stops rather than tag another commit: restore the tags on the commit that built it. Pre-releases go out under the next dist-tag (npx changeset pre enter next).

The repository is public, so every job runs on GitHub-hosted runners, which are free for public repositories: each job-level runs-on: ubuntu-latest carries a # hosted-only comment for the organisation's runner lint, and each shared workflow is called with runs-on: ubuntu-latest. The fallback runners (CI_RUNNER) never serve a public repository.

Using it in a product

Each product's .npmrc:

@tanksterai:registry=https://npm.pkg.github.com
ignore-scripts=true

and an install token: GITHUB_TOKEN in Actions; elsewhere a classic token with only read:packages (GitHub Packages accepts no other kind for npm). Then follow node_modules/@tanksterai/css/AGENTS.md: which package a kind of product installs, every token, class, component and recipe, and the rules. A product's CLAUDE.md imports it with one line: @node_modules/@tanksterai/css/AGENTS.md.

Drift

The drift-report workflow (Mondays 07:00 UTC) reads which version each product pins and serves, and alerts on ntfy when a product falls out of support. While the repository is private it keeps one pinned issue, "UI version drift", up to date. Once it is public, the whole report goes only to the private ntfy topic (ALERT_NTFY_URL, then required), because the table names each product's version and any advisory it is exposed to. Its product list is drift/consumers.json.

Hosting Storybook

Storybook is served by an assets-only Cloudflare Worker (wrangler.jsonc) at tankster-storybook.rishi-tank.workers.dev, private behind the Cloudflare Access application "Tankster Storybook" (owner only). Its header shows the version. All of it runs on Cloudflare's free plans.

Workers Builds deploys it on each push to main. Its settings live in Cloudflare, so they are recorded here:

Setting Value
Worker tankster-storybook (must match name in wrangler.jsonc)
Repository and production branch TanksterAI/design-system, main
Root directory /
Build command npm run build-storybook (builds the packages, then Storybook)
Deploy command npx wrangler deploy
Preview builds Off (the Worker has no preview URLs, and wrangler preview needs a previews block it does not have)
Build token browser-relay-builds (account-scoped Workers deploy token)

Dependency overrides

package.json cannot hold comments, so every entry in its overrides is explained here, with what has to happen before it can go and a date by which to check again. test/dependencies.test.ts fails if an override is missing from this table or its review date has passed. Overrides apply only when this workspace is installed: products that install @tanksterai/* never see them.

Override Why Added Remove when Review by
glob → 14.0.3 glob 13.0.6 (GHSA-3g3m-2fjr-6pw4) and its minimatch 10.2.6 (GHSA-g3hv-75wg-m249) are fixed only in glob 14.0.2+ and minimatch 11.0.1+. Both consumers, style-dictionary (through @bundled-es-modules/glob) and Storybook's @joshwooding/vite-plugin-react-docgen-typescript, ask for glob ^13. 2026-11-01 style-dictionary and Storybook's react-docgen plugin both depend on glob ≥ 14.0.2 2027-02-01

Settings and secrets

Name Where What for
"Allow GitHub Actions to create and approve pull requests" Repository settings, Actions, General The Version packages pull request
CI_RUNNER Organisation variable (maintained by the fallback dispatcher) Not used here: this public repository's jobs ask for GitHub-hosted runners. A repository variable of that name must not be set on it
ALERT_NTFY_URL Repository secret The private ntfy topic URL for release and drift alerts (the same topic browser-relay's Worker uses)
DRIFT_REPORT_TOKEN Repository secret Fine-grained token, read-only Contents and Pull requests on the consumer repositories (and the organisation's billing usage, if the quota line is wanted)

Licence

Source-available, not open source: the code may be read, and used only for Tankster AI Ltd's own products (LICENSE). Versions up to 1.1.0, and the repository's history before this licence, were released under the MIT License, and that grant still stands for them; this licence applies from 1.2.0. The Tankster name, mark and logos and "Ember Glass" are not licensed. Third-party material keeps its own licence (NOTICE): shadcn/ui (MIT), Tailwind CSS (MIT, compiled into tankster.css, whose banner it keeps), Lucide (ISC, with Feather's icons under MIT, inlined in the recipes), and Geist and Geist Mono (SIL Open Font License 1.1, shipped in @tanksterai/css/dist/fonts/).

About

Tankster AI design system: Ember Glass OKLCH tokens, shadcn/ui components on Base UI and Tailwind CSS 4, documented and tested in Storybook 10.

Resources

Readme
License

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.