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 declarationsSELECT 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 · showing 35

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
Your view

Make room for your context.

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

Your context

The different parts of you

Choose a starting point

A useful mix of context, visuals and gentle guidance.

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

Reading comfort

Choose your language

Interface language changes text only. Markets, prices and workflows keep their own settings.

Translation coverage

Original source

Navigation151
Graph616
Categories378
Portfolio833
Examples2,035
Source preview1,542

More translations will be added as content is reviewed.

This preference is saved on this browser.

Search the website

Useful starting points

No results. Try a shorter phrase, an operation name or another search area.

A LITTLE ROOM TO EXPLORE

Find something to explore.

Open a closer look on this page, try a different perspective, or follow the detail into its own page.

How previews and controls work
01

Look before you leave

Hover a link or focus it with Tab to see a preview. Clicking the original link or pressing Enter always opens its destination.

02

Stay with the context

Move into the preview to explore its sections. Use Alt + ↓ from a focused link to enter it with the keyboard. Escape closes it.

03

Open the possibilities

Disclosure rows, perspective choices and highlighted controls reveal more. Your view changes reading comfort and the context you explore.

A separate button for a closer look

Show small preview buttons beside links where there is room. Tap the eye to inspect, or tap the link to go straight there. This choice stays in this tab.

No browsing history is collected. Reduced motion follows your device and Your view.