kumo / kumo-figma
AGENTS.md3.9k starsChanged 4 months agoMITView on GitHub
Generates production-quality Figma components from component-registry.json. Destructive sync: purges and recreates all components per run. Parent: See root AGENTS.md for monorepo context.
Trending
More talk lately.about the whole repository
Who's talking about cloudflare/kumo
- @adityamitra.bsky.social“github.com/cloudflare/k... @cloudflare.social building awesome open source stuff #opensource #design …”Bluesky · Apr 22, 2026 · 3 likes
- nexu-io/open-design“feat(design-systems): add Cloudflare Kumo UI”GitHub · Aug 11, 2026 · 2 reactions
- cloudflare/cloudflare-os“Bump the react-and-ui group with 4 updates”GitHub · Sep 1, 2026 · 1 reactions
- cloudflare/cloudflare-os“Bump the react-and-ui group across 1 directory with 6 updates”GitHub · Aug 13, 2026 · 1 reactions
- cloudflare/workerd“pin OpenCode to "1.4.6"”GitHub · Apr 22, 2026 · 1 reactions
The biggest 5 of 49 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 49
Talked about on GitHub and Bluesky (49 times).
On GitHub · 48
- Aug 11, 2026feat(design-systems): add Cloudflare Kumo UI — nexu-io/open-design2 reactions · 5 comments
- Sep 1, 2026Bump the react-and-ui group with 4 updates — cloudflare/cloudflare-os1 reaction · 3 comments
- Aug 13, 2026Bump the react-and-ui group across 1 directory with 6 updates — cloudflare/cloudflare-os1 reaction · 2 comments
- Apr 22, 2026pin OpenCode to "1.4.6" — cloudflare/workerd1 reaction · 2 comments
- Oct 2, 2026Bump the npm-non-major group across 1 directory with 20 updates — ankka-ai/ankka-mcp-gateway0 reactions
43 more on GitHub
- Oct 1, 2026Bump the react-and-ui group across 1 directory with 7 updates — vnikhilbuddhavarapu/peer-point-cloudflare-os0 reactions
- Oct 1, 2026Bump the react-and-ui group across 1 directory with 7 updates — erxes/cloudflare-os-erxes0 reactions · 2 comments
- Oct 1, 2026Bump the react-and-ui group with 3 updates — cloudflare/cloudflare-os0 reactions · 2 comments
- Sep 29, 2026Bump the cloudflare group across 1 directory with 4 updates — VortexNYC/seal0 reactions · 2 comments
- Sep 28, 2026Bump the minor-patch group across 1 directory with 3 updates — Vortexmind/cf-zt-m365-split-tunnel-automation0 reactions · 2 comments
- Sep 27, 2026build(deps): bump @cloudflare/kumo from 2.13.2 to 2.14.0 — roerohan/automations0 reactions
- Sep 26, 2026agent-skills.github.cloudflare.kumo: init at 2.14.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026Bump the react-and-ui group with 7 updates — batd-htplus/batd-os0 reactions
- Sep 23, 2026build(deps): bump @cloudflare/kumo from 2.8.0 to 2.14.0 in /frontend — misaka310/video-highlights-site0 reactions · 1 comment
- Sep 23, 2026build(deps): bump @cloudflare/kumo from 2.13.2 to 2.14.0 — dedkola/vercelab0 reactions · 1 comment
- Sep 22, 2026chore(deps): bump @cloudflare/kumo from 2.13.2 to 2.14.0 — dedkola/homelab-index0 reactions · 2 comments
- Sep 21, 2026Bump the react-and-ui group across 1 directory with 7 updates — RoderickOxen/foundation-os0 reactions
- Sep 21, 2026Bump the minor-patch group with 4 updates — Vortexmind/cf-zt-m365-split-tunnel-automation0 reactions · 3 comments
- Sep 21, 2026build(deps): bump @cloudflare/kumo from 2.6.0 to 2.14.0 — codebam/seanbehan.ca0 reactions
- Sep 19, 2026Bump the react-and-ui group with 7 updates — ramihollings/supros-compute-source-fixture0 reactions
- Sep 19, 2026Bump @cloudflare/kumo from 2.13.2 to 2.14.0 in the design group — demosjarco/Cloudflare-One-DNS-Privacy-AdBlock0 reactions · 2 comments
- Sep 16, 2026Bump the npm group across 1 directory with 9 updates — kagamirror123/side-filters0 reactions
- Sep 16, 2026Bump the react-and-ui group across 1 directory with 4 updates — cloudflare/cloudflare-os0 reactions · 3 comments
- Sep 16, 2026build(deps): bump @cloudflare/kumo from 2.13.1 to 2.13.2 — dedkola/vercelab0 reactions · 2 comments
- Sep 15, 2026chore(deps): bump the compatible-updates group across 1 directory with 13 updates — Compfest18-AgusLaparBuk/boundary-prince0 reactions
- Sep 15, 2026Bump the react-and-ui group with 3 updates — cloudflare/cloudflare-os0 reactions · 4 comments
- Sep 15, 2026chore(deps): bump @cloudflare/kumo from 2.13.1 to 2.13.2 — dedkola/homelab-index0 reactions · 2 comments
- Sep 14, 2026build(deps): bump @cloudflare/kumo from 2.6.0 to 2.13.2 — codebam/seanbehan.ca0 reactions · 1 comment
- Sep 13, 2026chore(deps): bump the compatible-updates group across 1 directory with 13 updates — AgusLaparBukTeam/Agus-Lapar-Buk0 reactions
- Sep 9, 2026build(deps): bump @cloudflare/kumo from 2.12.0 to 2.13.1 — dedkola/vercelab0 reactions · 1 comment
- Sep 8, 2026chore(deps): bump @cloudflare/kumo from 2.12.0 to 2.13.1 — dedkola/homelab-index0 reactions · 11 comments
- Sep 7, 2026build(deps): bump @cloudflare/kumo from 2.10.0 to 2.13.1 — Beicho/arkadia-sub0 reactions
- Sep 7, 2026build(deps): bump @cloudflare/kumo from 2.6.0 to 2.13.1 — codebam/seanbehan.ca0 reactions · 1 comment
- Sep 6, 2026Bump @cloudflare/kumo from 2.7.0 to 2.13.0 in /dashboard — kossisoroyce/Tenta0 reactions
- Sep 1, 2026Bump the react-and-ui group across 1 directory with 4 updates — erxes/cloudflare-os-erxes0 reactions · 3 comments
- Aug 30, 2026Bump @cloudflare/kumo from 2.7.0 to 2.12.0 in /dashboard — kossisoroyce/Tenta0 reactions · 1 comment
- Aug 26, 2026Bump the react-and-ui group with 3 updates — erxes/cloudflare-os-erxes0 reactions · 2 comments
- Aug 24, 2026build(deps): bump @cloudflare/kumo from 2.10.0 to 2.12.0 — Beicho/arkadia-sub0 reactions · 1 comment
- Aug 24, 2026chore(deps): bump @cloudflare/kumo from 2.9.0 to 2.12.0 — sincanmaulanaa/inovamedika-frontend0 reactions
- Aug 23, 2026Bump @cloudflare/kumo from 2.7.0 to 2.11.0 in /dashboard — kossisoroyce/Tenta0 reactions · 1 comment
- Aug 17, 2026chore(deps): bump @cloudflare/kumo from 2.9.0 to 2.10.0 — sincanmaulanaa/inovamedika-frontend0 reactions · 1 comment
- Aug 16, 2026Bump @cloudflare/kumo from 2.7.0 to 2.10.0 in /dashboard — kossisoroyce/Tenta0 reactions · 1 comment
- Aug 13, 2026Bump @cloudflare/kumo from 2.9.0 to 2.9.2 — lazytechai/tokapi-anthropic-console0 reactions
- Aug 10, 2026chore(deps): bump @cloudflare/kumo from 2.9.0 to 2.9.2 — sincanmaulanaa/inovamedika-frontend0 reactions · 1 comment
- Jul 23, 2026`vp migrate` silently drops custom lint rules when a `jsPlugin`'s namespace can't be derived — voidzero-dev/vite-plus0 reactions
- May 16, 2026chore(deps): bump @cloudflare/kumo from 1.16.0 to 2.2.1 — IcyBlue17/Blue-Archive-NET0 reactions · 2 comments
- Mar 24, 2026Add Kumo (Cloudflare) categorical palette — joaopalmeiro/d3-extra-scale-chromatic0 reactions
- Nov 21, 2025User interface — panodata/suraya0 reactions · 4 comments
On Bluesky · 1
- Apr 22, 2026github.com/cloudflare/k... @cloudflare.social building awesome open source stuff #opensource #design #cloudflare #dashboard #component… — @adityamitra.bsky.social3 likes and reposts
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ci/AGENTS.mdAGENTS.md
- packages/kumo/AGENTS.mdAGENTS.md
- packages/kumo-docs-astro/AGENTS.mdAGENTS.md
- packages/kumo-docs-astro/src/components/demos/AGENTS.mdAGENTS.md
- packages/kumo-figma/src/generators/AGENTS.mdAGENTS.md
- packages/kumo-screenshot-worker/AGENTS.mdAGENTS.md
- packages/kumo/src/components/AGENTS.mdAGENTS.md
- index-knowledgeSkill
- kumo-designSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 83
generated/is gitignored: Run pnpm build:data after clone/branch switch. - Very specific: line 91
26
@ts-ignoreinstances: All for figma.combineAsVariants() type mismatch at runtime
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Figma Plugin (@cloudflare/kumo-figma)
Generates production-quality Figma components from component-registry.json. Destructive sync: purges and recreates all components per run.
Parent: See root AGENTS.md for monorepo context.
STRUCTURE
kumo-figma/
├── src/
│ ├── code.ts # Plugin entry: GENERATORS array, page management
│ ├── ui.html # Plugin UI
│ ├── manifest.json # Figma manifest (main: "code.js")
│ ├── generators/ # → see src/generators/AGENTS.md
│ │ ├── shared.ts # ALL constants + utilities (~1544 lines, critical)
│ │ ├── icon-utils.ts # Icon creation, placeholder, color binding (308 lines)
│ │ ├── _test-utils.ts # Shared test assertions
│ │ ├── drift-detection.test.ts # Meta-test: registry ↔ generator sync (1733 lines)
│ │ └── {component}.ts # 37 component generators
│ ├── parsers/
│ │ ├── tailwind-to-figma.ts # Core: Tailwind classes → Figma values
│ │ ├── opacity-extractor.ts # `bg-kumo-brand/70` → opacity data
│ │ ├── component-registry.ts # Type-safe registry wrapper
│ │ └── tailwind-theme-parser.ts # Parses tailwindcss/theme.css (test-only)
│ └── generated/ # BUILD OUTPUT (gitignored): theme-data.json, etc.
├── scripts/
│ ├── sync-tokens-to-figma.ts # CSS → Figma Variables API (unidirectional)
│ ├── figma-api.ts # Low-level Figma REST client (723 lines)
│ ├── color-utils.ts # oklch → sRGB conversion (uses culori)
│ └── maybe-sync.ts # Conditional sync gate (skips if no FIGMA_TOKEN)
└── vite.config.ts # Test config (Node env) + vp pack bundle configWHERE TO LOOK
| Task | Location | Notes |
| Add generator | src/generators/ + register in code.ts GENERATORS | Also update drift-detection |
| Centralized constants | src/generators/shared.ts | ALL magic numbers must live here |
| Icon utilities | src/generators/icon-utils.ts | createIconInstance, bindIconColor |
| Tailwind → Figma parsing | src/parsers/tailwind-to-figma.ts | Scale lookups from theme-data.json |
| Token sync to Figma | scripts/sync-tokens-to-figma.ts | Requires FIGMA_TOKEN |
| Drift detection | src/generators/drift-detection.test.ts | Meta-test enforcing sync |
CONVENTIONS
Build Pipeline (Sequential, Order Matters)
pnpm build =
1. sync:maybe # Sync tokens if FIGMA_TOKEN present
2. build:data = # 4 codegen steps:
a. tsx build-theme-data.ts → generated/theme-data.json
b. tsx build-loader-data.ts → generated/loader-data.json
c. tsx build-phosphor-icons.ts → generated/phosphor-icons.json
d. tsx build-figma-variables.ts → generated/figma-variables.json
3. build:plugin = # vp pack (tsdown) → src/code.js (IIFE, ES2017)Testing Philosophy
- Test structure, NOT values:
"DO NOT test specific colors, sizes, or variant names" - Tests validate against registry as source of truth
_test-utils.ts:expectValidRegistryProp(),expectAllClassesParsable(),expectValidParsedTypes()- Drift detection enforces: every registry component has generator, no magic numbers
ANTI-PATTERNS
| Pattern | Why | Instead |
Hardcoded SECTION_PADDING, SECTION_GAP | Drift detection fails | Import from shared.ts |
| Hardcoded shadow effects | Test enforcement | Import SHADOWS from shared.ts |
Hardcoded opacity = 0.5 | Test enforcement | Use OPACITY.disabled |
Hardcoded RGB { r: 0.5, ... } | Test enforcement | Use COLORS from shared.ts |
.toBe(16) for font sizes in tests | Fragile assertions | Use FONT_SIZE.* or registry values |
.toBe(600) for font weights | Fragile assertions | Use FALLBACK_VALUES.fontWeight.* |
| Redeclaring constants from shared.ts | Drift detection catches | Always import |
?? operator | ES2017 doesn't support | Use if (x === undefined) pattern |
NOTES
generated/is gitignored: Runpnpm build:dataafter clone/branch switch. Tests fail without it.- ES2017 target: Figma runtime constraint. Avoid
??, output is IIFE not ESM. code.jslives insrc/: Notdist/. Figma readsmanifest.jsonwhich points tocode.jsin same dir.- Two color conversion paths:
build-figma-variables.ts(manual oklch→RGB),scripts/color-utils.ts(culori). Manual one is less accurate. - Opacity variables created at runtime:
getOrCreateVariableWithOpacity("color-kumo-info/20")alpha-blends against white/black on the fly. - Component name mapping in drift-detection:
DropdownMenu→dropdown,Toasty→toast,Switch.Group→switch VAR_NAMESin shared.ts has legacy aliases (bothcolor.surfaceandcolor.basemap to same variable)- Font: Inter is required (default Figma font).
createTextNode()handles async loading. - 26
@ts-ignoreinstances: All forfigma.combineAsVariants()type mismatch at runtime
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

