DesignSystemManifest class final

A design system's manifest (design_system.json), loader-agnostic like SiteManifest: its id and name, references to its two documents and its component definitions (paths relative to the manifest, or publish ids), its tokens (a theme, the shape of site.json's theme), the fonts it ships and the base node types its components stand in for.

{"schema": 3, "id": "ssui", "name": "Soft SaaS UI", "version": "1.0.0",
 "design": "DESIGN.md", "patterns": "PATTERNS.md",
 "theme": {"primary": "#FF2563EB", "colors": {...}, "textStyles": {...}, "spacing": {...}, "radii": {...}},
 "components": ["components/Button.json", "components/TextInput.json"],
 "replaces": ["filledButton", "outlinedButton", "textButton", "textField"],
 "examples": ["examples/gallery.json"]}
Annotations
  • @immutable

Constructors

DesignSystemManifest({required String id, String name = '', String version = '', String description = '', String? design, String? patterns, ThemeTokens theme = ThemeTokens.none, List<String> components = const [], List<FontFamily> fonts = const [], List<String> replaces = const [], List<String> examples = const [], Json extra = const {}})
const

Properties

components → List<String>
References to its component definitions, in the order its list shows them.
final
description → String
One sentence: what it looks like and what it is for.
final
design → String?
A reference to its principles (DESIGN.md): the look, the tokens' roles, do and don't. Null: none.
final
examples → List<String>
References to example documents (a gallery, sample screens).
final
extra → Json
Keys it doesn't model, kept.
final
fonts → List<FontFamily>
The font families it ships, files relative to the manifest.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
Its id (ssui): what a site's designSystem names when it is published, and the prefix of its components' publish paths.
final
name → String
final
patterns → String?
A reference to its patterns (PATTERNS.md): how screens are composed of its components (forms, lists, cards, empty, loading and error states, density). Null: none.
final
replaces → List<String>
The base node types its components stand in for (filledButton, textField): a prompt generated from it lists its components instead of them. They stay valid in documents.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
theme → ThemeTokens
Its tokens: colors light and dark, text styles, and the named scales (spacing, radii, sizes, shadows, durations, curves). A site's theme is merged over them.
final
version → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Json
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromJson(Object? json) → DesignSystemManifest

Constants

fileName → const String
The file name a design system's folder has its manifest under.
keys → const Set<String>