Minor Changes
-
c9dd0f0: Replace
specs/tokens.jsonandspecs/semantic-tokens.jsonwith onespecs/design-system.jsoncovering
every token, condition and theme. It records what each token resolves through, so tools can answer what a semantic
token points at and what breaks when a primitive changes. Read it withparseDesignSystemand query it with
indexDesignSystemfrom@pandacss/compiler-shared. -
048c70c:
panda codegenno longer writesstyled-system/specs/design-system.json. Pass--specto get it. Nothing
else in the build reads the file, and on a config with a few hundred semantic tokens it was about half of codegen
time.--specworks oncodegen,buildandlib. Add a path to put it somewhere else:panda codegen --spec=meta.json.
panda lib --specwrites it besidepreset.mjsso you can ship it with a design system. -
4db4f75:
panda lib --specnow records the spec inpanda/lib.jsonasspec, relative to the manifest likepreset
andbuildInfo. Tooling that reads the manifest can tell whether a package shipped one instead of trying the path.A
--specpath that package.jsonfileswould not publish is left out with adesign_system_spec_not_publishable
warning, so the manifest never points at a file that did not ship. -
8bbb6bb: The design system spec now describes more than tokens:
recipes,slotRecipesandpatterns, keyed by name, with variants, defaults and resolved property kindskeyframes,colorPalettes,textStyles,layerStylesandanimationStylesoriginalValueon tokens: the value before reference expansion or derivation
Empty tables are left out. The reader gains
recipes(),slotRecipes(),patterns(),keyframes(),
colorPalettes()andcomposition(kind). -
c014979: The design system spec now says where each token came from.
--specgives every token asourceindex into
a newsources.entrieslist of the presets and configs that contributed.This answers "is this token ours or the parent design system's" without reproducing Panda's merge order — useful when
a product package builds on a shared one.
Patch Changes
- @pandacss/types@2.0.0-beta.18