Skip to content

Docs: spec.md calls the tokens "the normative values", PHILOSOPHY.md calls them "context" #194

Open

Description

@Prunil62

The two documents give the YAML tokens opposite roles:

  • docs/spec.md: "The tokens are the normative values; the prose provides context for how to apply them."
  • PHILOSOPHY.md: "The token values serve as context and are not rendering instructions. Generally, we do not accept or recommend token requirements in the specification."

This matters when the code already holds the values. Some CSS values cannot be written as tokens with 0.4.0. For example, a clamp() font size is refused as a dimension, and color-mix(in srgb, #f2b33d 10%, transparent) is exported as #f2b33d1a, so the link to the base colour is lost. If the tokens are normative, such a project must keep a second, lossy copy of its values. If they are context, it can keep the values in the code and let DESIGN.md name them.

Could the docs say which reading is intended, or when each applies? For example: normative when the YAML is the only source of the values, context when the code holds them. If the @-references of #180 are the intended answer, a sentence saying so in spec.md would settle it.

Related: #16 (the same facts written twice in one file), #181 (whether a page uses the tokens at all).

Activity

  1. zachshallbetter commented on Dec 2, 2026

    @zachshallbetter
    Contributor

    Thanks for the clamp() example. I opened #204 to clarify where YAML token values are defined and point readers to the external-reference syntax when those values already live in CSS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions