libraryPackage manifestv3.0.4

lib.design-catalog

Serializable built-in design pack and theme catalog for ContractSpec applications.

@lssm-tech/lib.design-catalog
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 3.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.design-catalogplatform

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

4 déclarationsSELECT TO INSPECT

@lssm-tech/lib.design-catalog

./visual-scenario-spec exposes the complete original validateVisualScenario and validateVisualAuthoring implementations with their supplied presentation and binding context types. The validators preserve default context, diagnostic ordering and paths, React presentation requirements, nested binding resolution, authoring rules, and fail-closed snapshot publishing. They use the canonical scenario model and complete portable Core presentation model, without rendering or collecting evidence. Legacy visual-scenario validator imports remain exact forwards to these same functions.

./themes, its validation leaves, and ./design-packs with its exact subpaths own the complete reusable theme and design-pack families. Original legacy imports forward to these same definitions, nominal registry classes, Editorial defaults, selection policies, safe patch checks, and resolver implementations. Both registry classes extend the shared generic registry in the runtime kernel. The narrow ./visual-scenario-spec leaf owns the complete pure visual case model used by the catalog. ./visual-scenario-registry owns the same nominal scenario registry and ./visual-scenario-platform owns the visual-testing capability and Storybook feature. Legacy imports forward to these exact values; capture runtime remains separate. Existing Catalog consumers use local canonical definitions.

Serializable, versioned design packs for ContractSpec applications.

The package exports 30 certified built-ins, their ThemeSpec values, independent industry/style taxonomy, manifest, registries, deterministic style profiles, and catalog certification. Every built-in declares complete, contrast-safe light and dark semantic palettes, explicit body/heading fonts, web/native support, reduced-motion behavior, and all eight canonical surface recipes. Certification fails closed when a required authored token is absent, and normalized signatures prevent visually duplicate built-ins.

The Editorial design pack retains the stable contractspec.editorial@1.0.0 theme identity while publishing the same complete token groups as every other certified built-in.

contractspec.design.executive-ledger@2.0.0 is the canonical CompanyOS pack. It pairs Newsreader headings with IBM Plex Sans interface copy and IBM Plex Mono evidence, using independently authored parchment/mineral/oxblood and carbon/bone/brass light and dark palettes. Pin version 2.0.0; the former generated 1.0.0 palette is not a compatible substitute.

ts
import {
  BUILT_IN_DESIGN_PACKS,
  DESIGN_PACK_REGISTRY,
  DESIGN_THEME_REGISTRY,
  certifyDesignPack,
} from "@lssm-tech/lib.design-catalog";

const result = certifyDesignPack(
  BUILT_IN_DESIGN_PACKS[0],
  DESIGN_THEME_REGISTRY,
);

Design packs own presentation only. Resolve RoleMorph authorization and bounded personalization before applying a registered design recipe.

Static CSS and visual coverage

The published css/ directory contains one deterministic light/dark artifact per built-in pack plus css/index.css. Import a single pack file or the index.

DESIGN_VISUAL_MATRIX describes the canonical 30 × 8 × 4 screenshot suite, including mobile/desktop web and phone/tablet native-token profiles. Both modes, both platforms, reduced motion, and every registered surface recipe are covered.

Measured surface contrast

measureThemeSurfaceContrast(theme) / findSurfaceContrastFailures(theme) compute WCAG ratios from a theme's actual light and dark colour tokens: 4.5:1 for text pairs (background, card, popover, primary, secondary, muted, accent and state colours, plus primary as text on background and card) and 3:1 for the ring and focusRing indicators. Pack metadata such as componentProfile.accessibility is not a measurement, and a missing or non-hex token fails closed. Every built-in pack is gated by src/surface-contrast.test.ts. Built-in palettes derive readable ink with ensureContrast, which leaves passing colours untouched.

resolveDesignSelection accepts an optional scope (tenantId, userId, appId); a private selection recorded for another scope is ignored with the user_selection_scope_mismatch diagnostic after an account or workspace switch.

Storybook catalog

The opt-in @lssm-tech/lib.design-catalog/storybook export is data-only. It embeds eight VisualScenarioSpec values derived directly from the web entries of DESIGN_VISUAL_MATRIX (30 packs × 8 surfaces × 2 profiles = 480 cases). The host resolves @lssm-tech/lib.design-system/storybook-bindings and @lssm-tech/lib.design-system/storybook-preview; this package does not import React, Storybook, or the Storybook integration at runtime. The repaired matrix uses real design-system surface bindings, complete pack tokens, local fonts, and classified synthetic fixtures; its 480 web cases are approved for governed Chromatic capture.

Run bun run storybook:generate to refresh the committed scenario hash and bun run storybook:check to fail on scenario or case drift.

Generate or verify artifacts with contractspec design css, contractspec design certify, and contractspec design preview. Developer registries can be checked without publishing by passing --module to certify or preview.

Rich-field form fixture

@lssm-tech/lib.design-catalog/forms/rich-fields-showcase exports the existing RichFieldsShowcaseForm singleton for field authoring, renderer checks and surface certification. Its original Zod-backed model is constructed once before the same form identity factory call. The fixture owns no renderer, provider or populated runtime registry; Legacy imports forward to the canonical singleton.

Custom designs from product packs

materializeCustomDesign({ ref, base, patch, owner, catalog? }) applies a validated safe patch to a pinned base. catalog ({ packs, themes }) defaults to the built-in packs; a product can pass its own certified packs (for example COMPANYOS_CUSTOM_DESIGN_BASES from @lssm-tech/bundle.managed-companyos/design) so tenants can start custom designs from them. Unknown bases still throw Custom design base not found.

Declared capabilities.

Lib Design Catalog

Serializable built-in design pack and theme catalog for ContractSpec applications.

Use it to

  • Adopt serializable built-in design pack and theme catalog for contractspec applications

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/lib.design-catalog package constraints do not match the target runtime or platform.

@lssm-tech/lib.design-catalog/visual-scenario-spec

@lssm-tech/lib.design-catalog/themes

@lssm-tech/lib.design-catalog/themes.validation

@lssm-tech/lib.design-catalog/themes.platform-validation

@lssm-tech/lib.design-catalog/design-packs/validation

@lssm-tech/lib.design-catalog/design-packs/types

@lssm-tech/lib.design-catalog/design-packs/runtime

@lssm-tech/lib.design-catalog/design-packs/resolution-helpers

@lssm-tech/lib.design-catalog/design-packs/registry

@lssm-tech/lib.design-catalog/design-packs/records

@lssm-tech/lib.design-catalog/design-packs/ports

@lssm-tech/lib.design-catalog/design-packs/policy

@lssm-tech/lib.design-catalog/design-packs/patches

@lssm-tech/lib.design-catalog/design-packs/patch-value-validation

@lssm-tech/lib.design-catalog/design-packs/patch-validation

@lssm-tech/lib.design-catalog/design-packs/operations

@lssm-tech/lib.design-catalog/design-packs/legacy-theme

@lssm-tech/lib.design-catalog/design-packs/inheritance

@lssm-tech/lib.design-catalog/design-packs

@lssm-tech/lib.design-catalog

@lssm-tech/lib.design-catalog/builtins

@lssm-tech/lib.design-catalog/certification

@lssm-tech/lib.design-catalog/custom-design

@lssm-tech/lib.design-catalog/creator-font-manifests

@lssm-tech/lib.design-catalog/manifest

@lssm-tech/lib.design-catalog/registry

@lssm-tech/lib.design-catalog/style-profiles

@lssm-tech/lib.design-catalog/taxonomy

@lssm-tech/lib.design-catalog/visual-matrix

@lssm-tech/lib.design-catalog/visual-scenariosDESIGN_MATRIX_VISUAL_SCENARIOS

@lssm-tech/lib.design-catalog/storybookdesignCatalogStorybookCatalog

@lssm-tech/lib.design-catalog/css/*

Imports and export paths.

43 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

43 imports · 35 affichés

Dependencies and related packages.

Runtime dependencies 4
zod
catalog:
Development dependencies 3
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
lint:checknode ../../../../scripts/biome.cjs check .
storybook:generatebun scripts/storybook-catalog.mjs
storybook:checkbun scripts/storybook-catalog.mjs --check
testbun test
typechecktsgo --noEmit
Votre vue

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.