@utopia-studio-design/design-system-cli 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/bin/utopia-ds-mcp.mjs +5 -3
- package/bin/utopia-ds.mjs +67 -27
- package/data/docs/ai-platform-plan.md +1 -1
- package/data/docs/community-template-contributions.md +85 -0
- package/data/docs/foundations.md +24 -4
- package/data/docs/quick-start-ai.md +1 -1
- package/data/manifests/catalog.json +10 -6
- package/data/manifests/community-template.schema.json +51 -0
- package/data/manifests/components.json +72 -6
- package/data/manifests/motion-profiles.json +121 -0
- package/data/manifests/theme-barrier-intelligence.json +83 -4
- package/data/manifests/theme-dextrum.json +140 -180
- package/data/manifests/theme-utopia-default.json +41 -6
- package/data/manifests/themes.json +35 -18
- package/data/templates/saas-solution-homepage/main.tsx +6 -2
- package/lib/api.mjs +42 -9
- package/lib/template-submission.mjs +137 -0
- package/package.json +13 -4
|
@@ -699,7 +699,10 @@
|
|
|
699
699
|
],
|
|
700
700
|
"ai": {
|
|
701
701
|
"props": {
|
|
702
|
-
"motion": "Optional boolean. Defaults to the MotionProvider policy and disables this component pattern when false."
|
|
702
|
+
"motion": "Optional boolean. Defaults to the MotionProvider policy and disables this component pattern when false.",
|
|
703
|
+
"contentAlign": "Use 'start' for leading-aligned labels, 'center' for the default action layout, or 'between' to pin endContent to the logical inline end.",
|
|
704
|
+
"startContent": "Optional leading icon or content slot with package-owned alignment.",
|
|
705
|
+
"endContent": "Optional trailing content slot. With contentAlign='between', it remains pinned while the label truncates."
|
|
703
706
|
}
|
|
704
707
|
}
|
|
705
708
|
},
|
|
@@ -2980,8 +2983,8 @@
|
|
|
2980
2983
|
"name": "Native Select",
|
|
2981
2984
|
"category": "Forms",
|
|
2982
2985
|
"status": "available",
|
|
2983
|
-
"packageImport": "import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from '@utopia-studio-design/design-system/
|
|
2984
|
-
"sourcePath": "packages/design-system/src/components/
|
|
2986
|
+
"packageImport": "import { NativeSelect, NativeSelectOptGroup, NativeSelectOption } from '@utopia-studio-design/design-system/Forms';",
|
|
2987
|
+
"sourcePath": "packages/design-system/src/components/Forms.tsx",
|
|
2985
2988
|
"shadcnFoundation": [
|
|
2986
2989
|
"native-select",
|
|
2987
2990
|
"shadcn/ui registry",
|
|
@@ -3008,10 +3011,12 @@
|
|
|
3008
3011
|
"avoidWhen": [
|
|
3009
3012
|
"Searchable or async option sets",
|
|
3010
3013
|
"Complex custom option rendering",
|
|
3014
|
+
"The opened option menu must match dark, light, or popover semantic tokens; use Select, SelectTrigger, SelectContent, and SelectItem",
|
|
3011
3015
|
"Product localization rules inside reusable component logic"
|
|
3012
3016
|
],
|
|
3013
3017
|
"neverInvent": [
|
|
3014
3018
|
"Product-owned option values or selection rules",
|
|
3019
|
+
"A promise that the opened native option menu can be fully themed; the OS or browser owns that surface",
|
|
3015
3020
|
"Production Arabic option labels not supplied by localization",
|
|
3016
3021
|
"Left/right-only layout rules",
|
|
3017
3022
|
"Utopia brand primitives inside reusable component logic"
|
|
@@ -3482,10 +3487,12 @@
|
|
|
3482
3487
|
"--background",
|
|
3483
3488
|
"--foreground",
|
|
3484
3489
|
"--muted-foreground",
|
|
3490
|
+
"--icon-size-sm",
|
|
3485
3491
|
"--button-height-sm"
|
|
3486
3492
|
],
|
|
3487
3493
|
"useWhen": [
|
|
3488
3494
|
"Compact option selection",
|
|
3495
|
+
"Dark, light, or branded surfaces where the opened menu must follow popover semantic tokens",
|
|
3489
3496
|
"Longer option sets than Radio Group",
|
|
3490
3497
|
"AI-generated forms that need explicit trigger, value, content, and item parts",
|
|
3491
3498
|
"Grouped option lists with labels",
|
|
@@ -3617,7 +3624,7 @@
|
|
|
3617
3624
|
"name": "Side Nav",
|
|
3618
3625
|
"category": "Navigation",
|
|
3619
3626
|
"status": "available",
|
|
3620
|
-
"packageImport": "import { PanelIcon, SideNav, SideNavCollapseButton, SideNavContent, SideNavHeading, SideNavItem, SideNavNestedGroup, SideNavNestedItems, SideNavSearch, SideNavSection } from '@utopia-studio-design/design-system/Navigation';",
|
|
3627
|
+
"packageImport": "import { PanelIcon, SideNav, SideNavAccount, SideNavAuxiliary, SideNavCollapseButton, SideNavCommand, SideNavContent, SideNavFooter, SideNavHeader, SideNavHeading, SideNavItem, SideNavMain, SideNavNestedGroup, SideNavNestedItems, SideNavSearch, SideNavSection, SideNavStatus, SideNavWorkspaceSwitcher } from '@utopia-studio-design/design-system/Navigation';",
|
|
3621
3628
|
"sourcePath": "packages/design-system/src/components/Navigation.tsx",
|
|
3622
3629
|
"shadcnFoundation": [
|
|
3623
3630
|
"sidebar",
|
|
@@ -3641,6 +3648,8 @@
|
|
|
3641
3648
|
"useWhen": [
|
|
3642
3649
|
"Persistent docs or app navigation",
|
|
3643
3650
|
"Grouped navigation links with current page state",
|
|
3651
|
+
"An application shell needs fixed header and footer regions with only the main navigation scrolling",
|
|
3652
|
+
"Search, AI commands, status, and account controls must adapt to expanded and collapsed states without app CSS overrides",
|
|
3644
3653
|
"A navigation surface needs package-owned content, search, section, nested group, item, heading, account, and collapse composition parts",
|
|
3645
3654
|
"A navigation surface should receive heading and search as SideNav props instead of hardcoding local wrappers",
|
|
3646
3655
|
"AI-generated app shells that need explicit section, heading, item, nested item, search, and collapse button parts"
|
|
@@ -3654,7 +3663,7 @@
|
|
|
3654
3663
|
"Raw shadcn theme colors",
|
|
3655
3664
|
"Left/right-only layout rules",
|
|
3656
3665
|
"Utopia brand primitives inside reusable component logic",
|
|
3657
|
-
"Local CSS-only search,
|
|
3666
|
+
"Local CSS-only search, command, account, footer, or content wrappers when the corresponding SideNav composition parts are available"
|
|
3658
3667
|
],
|
|
3659
3668
|
"ai": {
|
|
3660
3669
|
"props": {
|
|
@@ -3662,7 +3671,15 @@
|
|
|
3662
3671
|
"density": "Use default for app navigation; use compact for docs/library sidebars with dense catalog lists.",
|
|
3663
3672
|
"heading": "Optional SideNavHeading node rendered before search and navigation content.",
|
|
3664
3673
|
"search": "Optional SideNavSearch node rendered after heading and before navigation content.",
|
|
3665
|
-
"SideNavContent": "
|
|
3674
|
+
"SideNavContent": "Compatibility body region. Set layout='stack' for a flex column that supports an auto-positioned footer, or layout='grid' for the legacy grid flow.",
|
|
3675
|
+
"SideNavHeader": "Fixed header region for brand, workspace, and collapse controls.",
|
|
3676
|
+
"SideNavMain": "The only independently scrolling navigation region. It defaults to layout='stack' and fills remaining height.",
|
|
3677
|
+
"SideNavFooter": "Bottom-pinned, bounded footer region for status and account controls.",
|
|
3678
|
+
"SideNavCommand": "Full-width icon, label, and shortcut action. It derives collapsed state, accessible name, and tooltip title from SideNav context.",
|
|
3679
|
+
"SideNavAccount": "Stable avatar, single-line identity, and action layout. Use asChild or trigger to compose an app-owned popover/auth trigger.",
|
|
3680
|
+
"SideNavStatus": "Status indicator with label and optional description. Collapsed navigation retains the label for assistive technology and exposes a tooltip title.",
|
|
3681
|
+
"SideNavWorkspaceSwitcher": "Fixed region for an app-owned organization or workspace switcher.",
|
|
3682
|
+
"SideNavAuxiliary": "Fixed auxiliary action region outside the independently scrolling main navigation.",
|
|
3666
3683
|
"SideNavSearch": "Package-owned search field for filtering navigation lists without local input styling.",
|
|
3667
3684
|
"SideNavNestedGroup": "Groups a parent SideNavItem and its nested child collection.",
|
|
3668
3685
|
"SideNavNestedItems": "Indented child item collection using logical inline-start spacing and border.",
|
|
@@ -3823,6 +3840,7 @@
|
|
|
3823
3840
|
],
|
|
3824
3841
|
"ai": {
|
|
3825
3842
|
"props": {
|
|
3843
|
+
"asChild": "Use with a framework-native link such as Next.js Link so the link remains the single interactive element while SideNavItem supplies styling and state.",
|
|
3826
3844
|
"icon": "Optional leading visual slot. Omit for text-only rows; do not add placeholder marks.",
|
|
3827
3845
|
"depth": "Use 0 for root rows, 1 for items inside a top-level section, 2 for nested section children, and 3 only for rare deep navigation.",
|
|
3828
3846
|
"badge": "Optional trailing count or status pill aligned to the inline end.",
|
|
@@ -4089,6 +4107,54 @@
|
|
|
4089
4107
|
"arabicFriendly": "Loading labels come from product localization. The spinner is direction-neutral and must not be mirrored."
|
|
4090
4108
|
}
|
|
4091
4109
|
},
|
|
4110
|
+
{
|
|
4111
|
+
"name": "Utopia Wordmark Loader",
|
|
4112
|
+
"category": "Data Display",
|
|
4113
|
+
"status": "available",
|
|
4114
|
+
"packageImport": "import { UtopiaWordmarkLoader } from '@utopia-studio-design/design-system/UtopiaWordmarkLoader';",
|
|
4115
|
+
"sourcePath": "packages/design-system/src/components/UtopiaWordmarkLoader.tsx",
|
|
4116
|
+
"shadcnFoundation": [
|
|
4117
|
+
"spinner status semantics",
|
|
4118
|
+
"full-screen loading state"
|
|
4119
|
+
],
|
|
4120
|
+
"fallbackToShadcn": "spinner",
|
|
4121
|
+
"requiredTokens": [
|
|
4122
|
+
"--brand-loader-background",
|
|
4123
|
+
"--brand-loader-accent",
|
|
4124
|
+
"--brand-loader-foreground",
|
|
4125
|
+
"--brand-loader-size",
|
|
4126
|
+
"--brand-loader-duration-enter",
|
|
4127
|
+
"--brand-loader-duration-cycle",
|
|
4128
|
+
"--brand-loader-duration-stagger",
|
|
4129
|
+
"--brand-loader-duration-exit",
|
|
4130
|
+
"--brand-loader-distance-exit"
|
|
4131
|
+
],
|
|
4132
|
+
"useWhen": [
|
|
4133
|
+
"A Utopia product needs a branded full-page or contained loading transition",
|
|
4134
|
+
"Workspace or route loading should end as soon as the consumer loading state resolves",
|
|
4135
|
+
"The Utopia Default theme is active and the stacked studio wordmark is appropriate"
|
|
4136
|
+
],
|
|
4137
|
+
"avoidWhen": [
|
|
4138
|
+
"Short inline pending states; use Spinner",
|
|
4139
|
+
"Layout-preserving content loading; use Skeleton",
|
|
4140
|
+
"A non-Utopia product theme needs its own brand mark"
|
|
4141
|
+
],
|
|
4142
|
+
"neverInvent": [
|
|
4143
|
+
"A timer that delays navigation after the real loading state resolves",
|
|
4144
|
+
"Left/right-only layout rules",
|
|
4145
|
+
"Utopia brand primitives outside this explicitly branded component contract"
|
|
4146
|
+
],
|
|
4147
|
+
"ai": {
|
|
4148
|
+
"props": {
|
|
4149
|
+
"label": "Required localized loading text announced through role=status.",
|
|
4150
|
+
"phase": "Use intro while loading and exit after the consumer loading state resolves.",
|
|
4151
|
+
"fullscreen": "Defaults to true. Set false for a contained loading region.",
|
|
4152
|
+
"size": "sm is the production default; md and lg are available for larger brand moments.",
|
|
4153
|
+
"onExitComplete": "Called after the exit motion so the consumer can unmount the overlay."
|
|
4154
|
+
},
|
|
4155
|
+
"arabicFriendly": "The mark is direction-neutral and must not mirror. The localized status label is visually hidden and remains consumer-owned."
|
|
4156
|
+
}
|
|
4157
|
+
},
|
|
4092
4158
|
{
|
|
4093
4159
|
"name": "Switch",
|
|
4094
4160
|
"category": "Forms",
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://utopia-studio.co/design-system/motion-profiles.schema.json",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"contract": {
|
|
5
|
+
"themeChooses": "motion personality and semantic recipes",
|
|
6
|
+
"applicationChooses": "runtime adapter",
|
|
7
|
+
"componentRequests": "feedback, page, surface, or layout",
|
|
8
|
+
"escapeHatch": "motion={false}",
|
|
9
|
+
"reducedMotion": "apply the semantic final state immediately without transform, filter, or temporal animation"
|
|
10
|
+
},
|
|
11
|
+
"adapters": [
|
|
12
|
+
{ "id": "waapi", "package": "built-in", "entry": "Motion" },
|
|
13
|
+
{ "id": "framer-motion", "package": "framer-motion", "entry": "MotionFramer" },
|
|
14
|
+
{ "id": "animejs", "package": "animejs", "entry": "MotionAnime" },
|
|
15
|
+
{ "id": "gsap", "package": "gsap", "entry": "MotionGsap" }
|
|
16
|
+
],
|
|
17
|
+
"profiles": [
|
|
18
|
+
{
|
|
19
|
+
"id": "ceremonial",
|
|
20
|
+
"label": "Ceremonial reveal",
|
|
21
|
+
"themes": ["utopia-default"],
|
|
22
|
+
"personality": "ceremonial",
|
|
23
|
+
"description": "A composed, high-fidelity reveal with restrained blur and long deceleration.",
|
|
24
|
+
"rules": ["Keep direct feedback fast", "Use blur only for page and large-surface reveals", "Make exits shorter than entrances"],
|
|
25
|
+
"timings": {
|
|
26
|
+
"press": { "duration": 0.16, "ease": [0.2, 0, 0, 1] },
|
|
27
|
+
"page": { "duration": 0.42, "ease": [0.16, 1, 0.3, 1] },
|
|
28
|
+
"expand": { "duration": 0.36, "ease": [0.16, 1, 0.3, 1] },
|
|
29
|
+
"reveal": { "duration": 0.44, "ease": [0.16, 1, 0.3, 1] },
|
|
30
|
+
"icon": { "duration": 0.64, "ease": [0.16, 1, 0.3, 1] }
|
|
31
|
+
},
|
|
32
|
+
"recipes": {
|
|
33
|
+
"feedback": {
|
|
34
|
+
"enter": { "from": { "scale": 1 }, "to": { "scale": 0.98 }, "timing": { "duration": 0.14, "ease": [0.2, 0, 0, 1] } },
|
|
35
|
+
"exit": { "from": { "scale": 0.98 }, "to": { "scale": 1 }, "timing": { "duration": 0.12, "ease": [0.2, 0, 0, 1] } }
|
|
36
|
+
},
|
|
37
|
+
"page": {
|
|
38
|
+
"enter": { "from": { "opacity": 0, "y": 6, "blur": 8 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.42, "ease": [0.16, 1, 0.3, 1] } },
|
|
39
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0, "y": -2, "blur": 4 }, "timing": { "duration": 0.24, "ease": [0.7, 0, 0.84, 0] } }
|
|
40
|
+
},
|
|
41
|
+
"surface": {
|
|
42
|
+
"enter": { "from": { "opacity": 0, "y": 8, "scale": 0.995, "blur": 8 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.44, "ease": [0.16, 1, 0.3, 1] } },
|
|
43
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0, "y": 2, "scale": 0.995, "blur": 4 }, "timing": { "duration": 0.26, "ease": [0.7, 0, 0.84, 0] } }
|
|
44
|
+
},
|
|
45
|
+
"layout": {
|
|
46
|
+
"enter": { "from": { "opacity": 0.88, "x": 8 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.36, "ease": [0.16, 1, 0.3, 1] } },
|
|
47
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0.88, "x": 4 }, "timing": { "duration": 0.22, "ease": [0.7, 0, 0.84, 0] } }
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"orchestration": { "delayChildren": 0.04, "stagger": 0.035 }
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "swift",
|
|
54
|
+
"label": "Swift response",
|
|
55
|
+
"themes": ["dextrum"],
|
|
56
|
+
"personality": "swift",
|
|
57
|
+
"description": "Fast, compact movement for dense technical workflows.",
|
|
58
|
+
"rules": ["No reveal blur", "No orchestration delay", "Prefer short directional shifts"],
|
|
59
|
+
"timings": {
|
|
60
|
+
"press": { "duration": 0.08, "ease": [0.2, 0, 0, 1] },
|
|
61
|
+
"page": { "duration": 0.14, "ease": [0.2, 0, 0, 1] },
|
|
62
|
+
"expand": { "duration": 0.16, "ease": [0.2, 0, 0, 1] },
|
|
63
|
+
"reveal": { "duration": 0.14, "ease": [0.2, 0, 0, 1] },
|
|
64
|
+
"icon": { "duration": 0.24, "ease": [0.2, 0, 0, 1] }
|
|
65
|
+
},
|
|
66
|
+
"recipes": {
|
|
67
|
+
"feedback": {
|
|
68
|
+
"enter": { "from": { "scale": 1 }, "to": { "scale": 0.97 }, "timing": { "duration": 0.08, "ease": [0.2, 0, 0, 1] } },
|
|
69
|
+
"exit": { "from": { "scale": 0.97 }, "to": { "scale": 1 }, "timing": { "duration": 0.07, "ease": [0.2, 0, 0, 1] } }
|
|
70
|
+
},
|
|
71
|
+
"page": {
|
|
72
|
+
"enter": { "from": { "opacity": 0, "x": 3 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.14, "ease": [0.2, 0, 0, 1] } },
|
|
73
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0, "x": -2 }, "timing": { "duration": 0.09, "ease": [0.7, 0, 0.84, 0] } }
|
|
74
|
+
},
|
|
75
|
+
"surface": {
|
|
76
|
+
"enter": { "from": { "opacity": 0, "y": 2 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.14, "ease": [0.2, 0, 0, 1] } },
|
|
77
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0 }, "timing": { "duration": 0.09, "ease": [0.7, 0, 0.84, 0] } }
|
|
78
|
+
},
|
|
79
|
+
"layout": {
|
|
80
|
+
"enter": { "from": { "opacity": 0.94, "x": 4 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.16, "ease": [0.2, 0, 0, 1] } },
|
|
81
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0.94, "x": 2 }, "timing": { "duration": 0.1, "ease": [0.7, 0, 0.84, 0] } }
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"orchestration": { "delayChildren": 0, "stagger": 0 }
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "precise",
|
|
88
|
+
"label": "Precise dissolve",
|
|
89
|
+
"themes": ["barrier-intelligence"],
|
|
90
|
+
"personality": "precise",
|
|
91
|
+
"description": "Controlled dissolves and small scale changes for analytical surfaces.",
|
|
92
|
+
"rules": ["Prefer opacity over travel", "Keep scale changes below two percent", "Preserve analytical continuity"],
|
|
93
|
+
"timings": {
|
|
94
|
+
"press": { "duration": 0.1, "ease": [0.2, 0, 0, 1] },
|
|
95
|
+
"page": { "duration": 0.2, "ease": [0.16, 1, 0.3, 1] },
|
|
96
|
+
"expand": { "duration": 0.22, "ease": [0.16, 1, 0.3, 1] },
|
|
97
|
+
"reveal": { "duration": 0.24, "ease": [0.16, 1, 0.3, 1] },
|
|
98
|
+
"icon": { "duration": 0.32, "ease": [0.16, 1, 0.3, 1] }
|
|
99
|
+
},
|
|
100
|
+
"recipes": {
|
|
101
|
+
"feedback": {
|
|
102
|
+
"enter": { "from": { "scale": 1 }, "to": { "scale": 0.985 }, "timing": { "duration": 0.1, "ease": [0.2, 0, 0, 1] } },
|
|
103
|
+
"exit": { "from": { "scale": 0.985 }, "to": { "scale": 1 }, "timing": { "duration": 0.08, "ease": [0.2, 0, 0, 1] } }
|
|
104
|
+
},
|
|
105
|
+
"page": {
|
|
106
|
+
"enter": { "from": { "opacity": 0 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.2, "ease": [0.16, 1, 0.3, 1] } },
|
|
107
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0 }, "timing": { "duration": 0.14, "ease": [0.7, 0, 0.84, 0] } }
|
|
108
|
+
},
|
|
109
|
+
"surface": {
|
|
110
|
+
"enter": { "from": { "opacity": 0, "scale": 0.99 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.24, "ease": [0.16, 1, 0.3, 1] } },
|
|
111
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0, "scale": 0.995 }, "timing": { "duration": 0.16, "ease": [0.7, 0, 0.84, 0] } }
|
|
112
|
+
},
|
|
113
|
+
"layout": {
|
|
114
|
+
"enter": { "from": { "opacity": 0.92, "x": 5 }, "to": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "timing": { "duration": 0.22, "ease": [0.16, 1, 0.3, 1] } },
|
|
115
|
+
"exit": { "from": { "opacity": 1, "x": 0, "y": 0, "scale": 1, "rotate": 0, "blur": 0 }, "to": { "opacity": 0.92, "x": 3 }, "timing": { "duration": 0.14, "ease": [0.7, 0, 0.84, 0] } }
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"orchestration": { "delayChildren": 0.02, "stagger": 0.02 }
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"packages/design-system/src/themes/barrier-intelligence.css",
|
|
10
10
|
"packages/design-system/src/manifests/theme-barrier-intelligence.json"
|
|
11
11
|
],
|
|
12
|
+
"motionProfile": "precise",
|
|
12
13
|
"brandPrimitives": {
|
|
13
14
|
"colors": {
|
|
14
15
|
"black": "#000000",
|
|
@@ -23,16 +24,22 @@
|
|
|
23
24
|
"goldDark": "#8A6637",
|
|
24
25
|
"gold": "#A6824C",
|
|
25
26
|
"goldLight": "#D2AC6C",
|
|
26
|
-
"goldForeground": "#1A1208"
|
|
27
|
+
"goldForeground": "#1A1208",
|
|
28
|
+
"detectorLime": "#A6B86A",
|
|
29
|
+
"assuranceAtRisk": "#C47C48",
|
|
30
|
+
"assuranceLost": "#C76B62",
|
|
31
|
+
"assuranceWarning": "#D2A65A"
|
|
27
32
|
},
|
|
28
33
|
"typography": {
|
|
29
34
|
"appWebsite": {
|
|
30
35
|
"ui": "Hanken Grotesk",
|
|
36
|
+
"mono": "JetBrains Mono",
|
|
31
37
|
"use": "Product UI, dashboards, documentation, and long-form reading"
|
|
32
38
|
},
|
|
33
39
|
"arabicFamily": "IBM Plex Sans Arabic",
|
|
34
40
|
"weights": {
|
|
35
|
-
"hankenGrotesk": [400, 500, 600, 700]
|
|
41
|
+
"hankenGrotesk": [400, 500, 600, 700],
|
|
42
|
+
"jetBrainsMono": [400, 500, 600]
|
|
36
43
|
},
|
|
37
44
|
"arabicWeights": [400, 500, 700],
|
|
38
45
|
"headlineCasing": "sentence",
|
|
@@ -66,7 +73,21 @@
|
|
|
66
73
|
"--font-sans": "Hanken Grotesk",
|
|
67
74
|
"--font-ui-support": "Hanken Grotesk",
|
|
68
75
|
"--font-marketing-display": "Hanken Grotesk scoped through theme selectors",
|
|
76
|
+
"--font-mono": "JetBrains Mono",
|
|
69
77
|
"--font-arabic": "IBM Plex Sans Arabic",
|
|
78
|
+
"--font-size-marketing-h1": "clamp(3rem, 6vw, 5.75rem)",
|
|
79
|
+
"--font-size-marketing-h2": "clamp(2.25rem, 4vw, 3.75rem)",
|
|
80
|
+
"--font-size-marketing-h3": "clamp(1.5rem, 2.5vw, 2.25rem)",
|
|
81
|
+
"--line-height-marketing-h1": "1",
|
|
82
|
+
"--line-height-marketing-h2": "1.06",
|
|
83
|
+
"--line-height-marketing-h3": "1.14",
|
|
84
|
+
"--measure-marketing-h1": "12ch",
|
|
85
|
+
"--measure-marketing-h2": "18ch",
|
|
86
|
+
"--measure-marketing-h3": "28ch",
|
|
87
|
+
"--container-standard": "72rem",
|
|
88
|
+
"--container-wide": "90rem",
|
|
89
|
+
"--page-gutter": "clamp(1rem, 3vw, 2.5rem)",
|
|
90
|
+
"--content-measure": "72ch",
|
|
70
91
|
"--sidebar-width": "17rem",
|
|
71
92
|
"--shadow-control": "none",
|
|
72
93
|
"--control-height-sm": "2rem",
|
|
@@ -77,6 +98,48 @@
|
|
|
77
98
|
"--modal-surface": "Card High",
|
|
78
99
|
"--popover-surface": "Card High"
|
|
79
100
|
},
|
|
101
|
+
"activationContract": {
|
|
102
|
+
"brandAttribute": "data-brand=\"barrier-intelligence\"",
|
|
103
|
+
"modeAttribute": "data-color-mode=\"dark|light|system\"",
|
|
104
|
+
"defaultMode": "dark",
|
|
105
|
+
"legacyAlias": "data-theme=\"barrier-intelligence\" remains supported during migration",
|
|
106
|
+
"rule": "Changing brand must not overwrite the persisted color mode. System follows prefers-color-scheme."
|
|
107
|
+
},
|
|
108
|
+
"layoutContract": {
|
|
109
|
+
"standard": "--container-standard",
|
|
110
|
+
"wide": "--container-wide",
|
|
111
|
+
"gutter": "--page-gutter",
|
|
112
|
+
"readingMeasure": "--content-measure",
|
|
113
|
+
"formula": "inline-size: min(calc(100% - 2 * var(--page-gutter)), var(--container-standard)); margin-inline: auto",
|
|
114
|
+
"rule": "Navigation, hero, and body content share the same responsive gutter. Products do not invent --page or --hero-page aliases."
|
|
115
|
+
},
|
|
116
|
+
"detectorStatus": {
|
|
117
|
+
"primitive": { "token": "--bi-detector-lime", "value": "#A6B86A" },
|
|
118
|
+
"semanticTokens": ["--detector-active", "--detector-active-foreground", "--detector-active-surface", "--detector-active-border"],
|
|
119
|
+
"use": ["active detectors", "verified detector output"],
|
|
120
|
+
"avoid": ["general calls to action", "decorative glow", "neon page accents"],
|
|
121
|
+
"accessibility": "Pair color with an icon and localized status label; verify text and control contrast in Dark and Light."
|
|
122
|
+
},
|
|
123
|
+
"assuranceStates": {
|
|
124
|
+
"credited": ["--assurance-credited", "--assurance-credited-foreground", "--assurance-credited-surface", "--assurance-credited-border"],
|
|
125
|
+
"atRisk": ["--assurance-at-risk", "--assurance-at-risk-foreground", "--assurance-at-risk-surface", "--assurance-at-risk-border"],
|
|
126
|
+
"lost": ["--assurance-lost", "--assurance-lost-foreground", "--assurance-lost-surface", "--assurance-lost-border"],
|
|
127
|
+
"warning": ["--assurance-warning", "--assurance-warning-foreground", "--assurance-warning-surface", "--assurance-warning-border"],
|
|
128
|
+
"verified": ["--assurance-verified", "--assurance-verified-foreground", "--assurance-verified-surface", "--assurance-verified-border"],
|
|
129
|
+
"rule": "Assurance states are domain semantics, not aliases for generic success/warning/destructive. Never communicate state by color alone."
|
|
130
|
+
},
|
|
131
|
+
"motionContract": {
|
|
132
|
+
"durations": ["--motion-duration-press", "--motion-duration-page", "--motion-duration-expand", "--motion-duration-reveal", "--motion-duration-icon"],
|
|
133
|
+
"easing": ["--motion-ease-standard", "--motion-ease-emphasized", "--motion-ease-icon"],
|
|
134
|
+
"distance": { "page": "6px", "reveal": "10px" },
|
|
135
|
+
"reducedMotion": "Core sets durations and distances to zero, disables icon animation, and restores press scale to 1 under prefers-reduced-motion."
|
|
136
|
+
},
|
|
137
|
+
"fontSupply": {
|
|
138
|
+
"hankenGrotesk": "Loaded by the theme stylesheet from Google Fonts",
|
|
139
|
+
"jetBrainsMono": "Loaded by the theme stylesheet from Google Fonts",
|
|
140
|
+
"ibmPlexSansArabic": "Self-hosted in the package with 400, 500, and 700 weights",
|
|
141
|
+
"display": "swap"
|
|
142
|
+
},
|
|
80
143
|
"visualPolicy": {
|
|
81
144
|
"tone": ["rigorous", "quiet", "technical", "premium"],
|
|
82
145
|
"allow": [
|
|
@@ -84,14 +147,16 @@
|
|
|
84
147
|
"warm gold accents for primary action and signal",
|
|
85
148
|
"neutral ink hierarchy for reading",
|
|
86
149
|
"rounded cards with hairline borders",
|
|
87
|
-
"minimal shadow; depth via border and surface steps"
|
|
150
|
+
"minimal shadow; depth via border and surface steps",
|
|
151
|
+
"restrained detector lime for active and verified engineering states"
|
|
88
152
|
],
|
|
89
153
|
"avoid": [
|
|
90
154
|
"bright neon accents",
|
|
91
155
|
"colorful gradients as a default surface treatment",
|
|
92
156
|
"overly rounded, playful geometry",
|
|
93
157
|
"Utopia brick red palette",
|
|
94
|
-
"marketing display fonts in dense app UI"
|
|
158
|
+
"marketing display fonts in dense app UI",
|
|
159
|
+
"detector lime used as a decorative or glowing accent"
|
|
95
160
|
]
|
|
96
161
|
},
|
|
97
162
|
"iconPolicy": {
|
|
@@ -101,6 +166,15 @@
|
|
|
101
166
|
"avoid": ["emoji", "mixed icon families in one surface"],
|
|
102
167
|
"coreNote": "Icon policy is theme-owned. Core components remain icon-system neutral."
|
|
103
168
|
},
|
|
169
|
+
"marketingAssetPolicy": {
|
|
170
|
+
"relationshipToIcons": "Lucide remains the UI icon system. Three-dimensional engineering assets are marketing media, not component icons.",
|
|
171
|
+
"palette": ["warm gold", "controlled grayscale", "restrained detector lime"],
|
|
172
|
+
"material": "Machined, technical, and restrained rather than glossy or toy-like.",
|
|
173
|
+
"lighting": "Directional studio lighting with clear form and no decorative neon glow.",
|
|
174
|
+
"background": "Near-black or controlled neutral fields with sufficient object separation.",
|
|
175
|
+
"use": ["engineering concepts", "detector visualization", "assurance evidence", "product capability storytelling"],
|
|
176
|
+
"avoid": ["generic abstract blobs", "glassmorphism", "cyberpunk glow", "decorative lime accents", "Lucide icons rendered as 3D objects"]
|
|
177
|
+
},
|
|
104
178
|
"translations": {
|
|
105
179
|
"ar": {
|
|
106
180
|
"summary": "ثيم Barrier Intelligence مربوط بعقد Ceramic الدلالي. يستخدم أسطح منتجات شبه سوداء ولمسات ذهبية دافئة وتسلسلا محايدا محسوبا. يقود Hanken Grotesk واجهة المنتج والتوثيق، وتبقى أي طباعة تسويقية محصورة في محددات يملكها الثيم.",
|
|
@@ -114,9 +188,14 @@
|
|
|
114
188
|
"aiRules": [
|
|
115
189
|
"Read this theme policy after the core semantic contract.",
|
|
116
190
|
"Map Barrier Intelligence palette through semantic tokens only.",
|
|
191
|
+
"Select the Barrier Intelligence brand with data-brand and select Dark, Light, or System independently with data-color-mode.",
|
|
192
|
+
"Use core container and gutter tokens instead of product-local --page or --hero-page aliases.",
|
|
117
193
|
"Use gold for primary actions and high-signal emphasis, not as a full-page wash.",
|
|
194
|
+
"Use detector lime only for active detectors and verified states, always with a non-color status cue.",
|
|
195
|
+
"Use assurance semantic token families for credited, at risk, lost, warning, and verified states.",
|
|
118
196
|
"Prefer near-black and stepped card surfaces with ink hierarchy.",
|
|
119
197
|
"Use Hanken Grotesk for Latin app UI and body copy in this theme.",
|
|
198
|
+
"Use the dedicated marketing H1, H2, and H3 size, line-height, and measure tokens instead of scaling --font-size-display ad hoc.",
|
|
120
199
|
"Keep Arabic on IBM Plex Sans Arabic tokens.",
|
|
121
200
|
"Do not swap Ceramic shell navigation branding when this theme is active."
|
|
122
201
|
]
|