Skip to main content

Module contract

Module contract 

Source
Expand description

moss HTML/CSS contract surface.

Federated sources for the moss design contract:

  • tokens: W3C Design Tokens (CSS variables, defaults, groups, descriptions)
  • components: emitter contract — class names, data attributes, examples

Consumed by the codegen binary at src-tauri/dev-bin/generate-contract-docs.rs, by moss describe (Phase 2), and by snapshot tests.

Modules§

components
moss component contract — Source 2 of the federated contract.
describe
Serializable payload for moss describe --json.
frontmatter
Serializer that maps [schema_fields::BUILTIN_FIELDS] into FrontmatterFieldJson entries for inclusion in the moss describe --json payload.
tokens
W3C Design Tokens loader.