Skip to content

docs(readme): add an output formats section - #67

Merged
Hebilicious merged 1 commit into
mainfrom
docs/output-formats
Sep 24, 2026
Merged

Hebilicious merged 1 commit into
mainfrom
docs/output-formats

Conversation

@Hebilicious

Copy link
Copy Markdown
Owner

What

The README explained the generated CSS in detail and mentioned the TypeScript output in a single Quick Start step, so it was easy to read CSS Forge as a CSS-only tool. This adds an ## Output Formats section between Quick Start and Configuration that covers every generated artifact.

It documents:

  • The CSS, TypeScript, JSON, and Style Dictionary outputs with mode, flag, and default path.
  • The key / value / variable shape of a generated token, and why numeric and @ keys are read as strings.
  • Importing a token value as a color string in TypeScript, and reading the same tree from JSON.
  • Which tokens carry final values (palette, spacing, typography) and which keep var(--token) (theme, gradient, primitive), which decides whether a consumer outside the browser can use a value.

Docs site

The docs sync script now emits guide/output-formats.md from the same section. The page is wired into the VitePress sidebar, the docs:sync-docs declared outputs, and the agent routing index. packages/cssforge/README.md is the generated mirror, updated by cssforge:readme-update.

Verification

Every snippet was run against the real generator, and the TypeScript example was type-checked with the documented compiler options and executed:

  • card resolved to {"backgroundColor":"oklch(73.511% 0.16799 40.24666)","padding":"0.5rem","fontSize":"clamp(0.875rem, 0.8391rem + 0.1794vw, 1rem)"}.
  • cssForge.theme.light.background.primary.value is "var(--palette-coral-100)", and cssForge.palette.coral["100"].value is the final OKLCH string, matching the section's table.
  • cssforge:readme-check passes; vitest run passes 87 tests; the VitePress build renders the new page.

tests/version-artifact.test.ts cannot run in the sandbox this was prepared in because it shells out to pnpm install, which needs write access to the pnpm store.

Changeset

.changeset/output-formats-section.md marks a patch for @hebilicious/cssforge, since the README ships in the published package.

@changeset-bot

changeset-bot Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 7d85450

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hebilicious/cssforge Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 24, 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
cssforge 7d85450 Commit Preview URL

Branch Preview URL
Sep 24 2026, 12:41 PM

The README described the generated CSS in detail and mentioned the
TypeScript output in one Quick Start step, so it was easy to read CSS Forge
as a CSS-only tool. It now has an Output Formats section that covers every
generated artifact.

The section lists the CSS, TypeScript, JSON, and Style Dictionary outputs
with their mode, flag, and default path, documents the key / value /
variable shape of a token, and shows importing a token value as a color
string in TypeScript or reading the same tree from JSON. It also records
which tokens carry final values and which keep var(--token), which decides
whether a consumer outside the browser can use them.

The docs site gains the matching guide/output-formats page, wired into the
sidebar, the sync task outputs, and the agent routing index.
@Hebilicious
Hebilicious merged commit 97a55c3 into main Sep 24, 2026
5 checks passed
@Hebilicious
Hebilicious deleted the docs/output-formats branch September 24, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant