openpencil/packages/docs
Danila Poyarkov 01e58a3ad0
feat: write variables as a CSS token stylesheet (#856)
* feat: write variables as a CSS token stylesheet

Copy a collection as CSS custom properties or a Tailwind v4 theme from the variables dialog, print it with openpencil tokens, and rebuild design_to_tokens on the same generator. Default modes go in :root or @theme, other modes override under their condition, and aliases are declared again in each mode scope so they follow it.

* fix: give modes that slug alike their own selector and variant

Two modes in one collection whose names reduce to the same slug, such as Dark and dark!, shared one default selector and Tailwind variant, so the later mode silently overrode the earlier one. Slugs are now numbered in mode order, as variable names already are.
2026-10-04 18:15:52 +00:00
..
.vitepress fix: validate parsed JSON at untrusted boundaries with Valibot (#855) 2026-10-04 17:01:50 +00:00
de docs: sync translations with documentation changes since v0.15.1 (#886) 2026-10-04 16:38:35 +00:00
development feat: create, fill, and edit slots (#862) 2026-10-04 17:02:28 +00:00
es docs: sync translations with documentation changes since v0.15.1 (#886) 2026-10-04 16:38:35 +00:00
fr docs: sync translations with documentation changes since v0.15.1 (#886) 2026-10-04 16:38:35 +00:00
it docs: sync translations with documentation changes since v0.15.1 (#886) 2026-10-04 16:38:35 +00:00
overview feat(code): link the Code tab to canvas layers and sync both ways (#805) 2026-10-04 10:08:40 +00:00
pl docs: sync translations with documentation changes since v0.15.1 (#886) 2026-10-04 16:38:35 +00:00
programmable feat: write variables as a CSS token stylesheet (#856) 2026-10-04 18:15:52 +00:00
public feat: refresh branding with generated platform icons (#707) 2026-09-16 11:54:07 +03:00
reference feat: write variables as a CSS token stylesheet (#856) 2026-10-04 18:15:52 +00:00
ru docs: sync translations with documentation changes since v0.15.1 (#886) 2026-10-04 16:38:35 +00:00
user-guide feat(lint): suggest group-to-frame and hidden-layer fixes; keep canvas edits in code previews (#870) 2026-10-04 12:46:06 +00:00
AGENTS.md build(tools): group tools by role and gate them like the rest of the repo (#791) 2026-09-30 05:00:31 +04:00
getting-started.md fix: explain unsupported browsers instead of a blank window (#745) 2026-09-22 14:40:59 +04:00
index.md Refine docs structure for SDK and automation 2026-03-24 23:24:08 +03:00
package.json build: update dependencies (#873) 2026-10-04 12:48:24 +00:00