Repository navigation
docs: add an agents page and a readme for nine packages - #347
Merged
alexgrozav merged 3 commits intoOct 21, 2026
Merged
Conversation
Agents that write a Styleframe config made the same mistakes over and over, because the traps were written down only in the contributor guides. Add a "Using Styleframe with AI agents" page with the inspect, check and strict loop and the mistakes that build without a warning, and fix two claims the output contradicts: the colour levels in the design system guide are fixed oklch() values, and the Tailwind comparison now says what the type checks and the build checks cover. The utilities page warns that an uncalled creator emits no CSS. Nine published packages listed README.md in their files but shipped none, so their npm pages were empty. Each now says what it is, how to install it and where its docs and the agents page are.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
A plain "@token" in a selector or a theme declaration still throws when it's defined; only recipes, utility values and css template literals report it as a diagnostic. The Tailwind comparison now says so, in three short paragraphs, and the agents page matches it. The scanner README says the plugin only scans once scanner.content is set. The agents page splits its overview, says that check prints no JSON when a config throws and that --typecheck needs typescript, and the theme, plugin and core READMEs are more exact about runtime, Bun and the standalone core import.
A string "@token" in a utility created with an object throws when it is defined, like one in a selector; only the array form reports unresolved-reference. The Tailwind comparison and the agents page now name both forms.
alexgrozav
merged commit Oct 21, 2026
0aebf3c
into
styleframe-agent-ergonomics-uxf-406
2 of 3 checks passed
8 of 13 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Agents that write a Styleframe config keep making the same mistakes, because the traps are written down only in the contributor guides, which don't ship to consumers. This PR puts them where an agent reads.
08.tooling/03.agents.md, at/docs/getting-started/tooling/agentsand inllms.txt). It covers the loop (inspect --json,check --typecheck --json,build,strict: true) and the common mistakes: an uncalled utility creator emits nothing, the presets depend on the design-tokens preset's token names, that preset adds adarktheme with its own primary,@tokenagainst plain strings against[…], registering modifiers before a recipe uses&::after, colour levels are fixed values, and utilities before recipes. Every config on the page builds against the packed packages of this branch.oklch(from var(--color--primary) …). The real output is a fixedoklch(…), so the excerpt now shows it, with a note on what that means for themes. The Tailwind comparison said mistyped styles surface as TypeScript issues. It now says what TypeScript checks, whatcheckand the build report, and links the mistakes that still build silently. The utilities API page warns that an uncalled creator emits no CSS.@styleframe/core,loader,transpiler,runtime,scanner,theme,cli,pluginandfigmalistedREADME.mdinfilesbut shipped none. Each says what the package is, how to install it, and links its docs page and the agents page.Related issue
None in this repository.
Type of change
Checklist
feat(theme): …)pnpm build:nodocs && pnpm lint && pnpm typecheck && pnpm testand everything passespnpm changeset) for changes to publishable packages, or this change only touches docs/storybook/app/playground/testsdist/,.styleframe/)mainand stays focused in scopeNotes / screenshots
patchfor each of the nine, so the README ships with their next release.main, and lands with the rest of it.pnpm build:docs(the page is listed inllms.txt),pnpm --filter @styleframe/docs test:build, every/docslink and anchor in the changed files against the built site, and each README listed in its packed tarball.