@ai-created/ui
All guidelines
Guideline 07Evolving

Assets and distribution

Reusable tokens, package exports, presets, icon policy, media requirements, and the source-of-truth map for every consumer.

Owner
Design Systems and Frontend Platform
Last reviewed
August 2026
Review cadence
Every package and token release
Source of truth
Repository package exports and generated token artifact

Required outcomes

01

Consumers can install or download the system without copying values by hand.

02

Every asset type names its canonical source and update path.

03

Generated exports fail validation when they drift from source CSS.

01

Reusable downloads

The downloadable token artifact is generated from canonical CSS. Code consumers use package exports directly.

Asset directory

Consumer setup

Import tokens once, extend the preset, then import public components from the package root.

tsx
// app/globals.css
@import '@ai-created/ui/styles/tokens.css';

// tailwind.config.js
module.exports = {
  presets: [require('@ai-created/ui/tailwind-preset')],
  content: ['./src/**/*.{ts,tsx}'],
};

// product UI
import { Button, Surface } from '@ai-created/ui';
02

AI agent contract

Agents use the same versioned inputs and blocking gates as human contributors, without inferring undocumented design decisions.

Agent operating model

01

Query canonical context

Read the manifest or query CLI before implementation. Never reconstruct props, variants, or tokens from model memory.

02

Start from an approved archetype

Use the directory, detail, form, settings, dashboard, or onboarding template when its product shape matches.

03

Reject silent drift

Raw colors, reference tokens, internal imports, arbitrary system values, and local primitive copies fail the policy gate.

04

Make exceptions accountable

A necessary departure names one rule, narrow files, a concrete reason, an owner, and a future review date.

Agent query and validation

Commands return JSON and validate the same contract that ships with the selected package version.

bash
npm run agent:query -- component button
npm run agent:query -- guideline accessibility
npm run agent:query -- template dashboard
npm run agent:check
03

Source-of-truth map

Each asset has one canonical authoring location and an explicit distribution path.

Asset ownership

AssetCanonical sourceDistributionChange gate
Reference and semantic tokensstyles/tokens.cssCSS package export and generated JSONTheme and contrast review
Tailwind mappingstailwind-preset.jsPreset package exportMatches canonical CSS names
React componentssrc/componentsPackage root exportsAPI, a11y, unit, interaction and visual review
Component specificationsplayground/specsThis portalRegistry completeness and parity tests
Figma libraryProjection of public components, tokens and reviewed specificationsFigma Community snapshot and connected team libraryVariable, state, theme, resizing and instance-link review
IconsLucide dependencylucide-reactUse standard glyph before custom asset
Product imageryOwning product repositoryProduct deploymentTheme, crop, rights and accessibility review
Visual baselinese2e/__screenshots__Repository test artifactIntentional reviewed update
Agent manifest and contextRuntime, tokens, registries, templates, and AGENTS.mdPackage files and portal downloadsGenerated parity and freshness checks
04

Design library model

The published Figma library mirrors the public components, semantic tokens and reviewed specifications. Community copies are editable snapshots; connected library consumers review published updates.

Published library organization

PageContents
00 to 04 / Cover and foundationsGetting started, color, typography, layout and motion
10 to 30 / ComponentsPublic component sets, state examples, authoring guidance and connected private building blocks
40 to 45 / TemplatesDirectory, Detail, Form, Settings, Dashboard and Onboarding in desktop/mobile and both themes
80 / PatternsComposition and feedback guidance
90 to 92 / Accessibility, governance and QAKeyboard and announcement guidance, source precedence and verification coverage
99 / DeprecatedRetained assets and migration guidance

Publishing policy

01

Version the release

Publish design assets with the corresponding package version and changelog.

02

Expose semantic variables

Consumers select intent. Reference values remain hidden from product authoring.

03

Keep code-only exports honest

Providers and utilities receive documentation, not artificial canvas components.

04

Audit detached instances

Detachment signals either missing capability or unsupported product drift.

05

Asset quality gates

Reusable assets are complete only when their licensing, modes, states, naming, and fallback behavior are documented.

Release checklist by asset type

Tokens

  • Generated artifact matches CSS.
  • Aliases resolve without cycles.
  • Light and dark modes are complete.
  • Names and types remain stable or include migration.

Icons

  • Optical size matches 16, 20, or 32px role.
  • Accessible name comes from the control or nearby text.
  • Directionality is documented.
  • Custom icons include source and license.

Media

  • Usage rights and source are recorded.
  • Light/dark variants and crops are paired.
  • Fallback and alt behavior is defined.
  • Files meet product performance budgets.