@ds-mo/tokens 2.13.2 → 2.15.0
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/dist/agent.d.ts +20 -0
- package/dist/agent.json +80 -0
- package/dist/agent.mjs +81 -0
- package/dist/dimensions.css +13 -0
- package/dist/index.cjs +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +9 -0
- package/dist/json/colors.json +5265 -585
- package/dist/json/colors.modes.json +9930 -0
- package/dist/json/dimensions.json +36 -0
- package/dist/tokens-index.json +5301 -585
- package/dist/tokens.json +5301 -585
- package/package.json +11 -2
package/dist/agent.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface TokenFamilyAgentEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
status: 'experimental' | 'stable' | 'deprecated' | 'removed';
|
|
4
|
+
summary: string;
|
|
5
|
+
tokenPatterns: string[];
|
|
6
|
+
useWhen: string[];
|
|
7
|
+
avoidWhen: string[];
|
|
8
|
+
constraints: string[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface TokenAgentManifest {
|
|
12
|
+
schemaVersion: '1.0.0';
|
|
13
|
+
package: '@ds-mo/tokens';
|
|
14
|
+
packageVersion: string;
|
|
15
|
+
kind: 'tokens';
|
|
16
|
+
entries: TokenFamilyAgentEntry[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare const manifest: TokenAgentManifest;
|
|
20
|
+
export default manifest;
|
package/dist/agent.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"package": "@ds-mo/tokens",
|
|
4
|
+
"packageVersion": "2.15.0",
|
|
5
|
+
"kind": "tokens",
|
|
6
|
+
"entries": [
|
|
7
|
+
{
|
|
8
|
+
"id": "token-family:color.background",
|
|
9
|
+
"status": "stable",
|
|
10
|
+
"summary": "Semantic fills for page, component, interaction, and contrast surfaces.",
|
|
11
|
+
"tokenPatterns": [
|
|
12
|
+
"--color-background-*"
|
|
13
|
+
],
|
|
14
|
+
"useWhen": [
|
|
15
|
+
"Setting the fill of a page, panel, control, selected state, or semantic surface."
|
|
16
|
+
],
|
|
17
|
+
"avoidWhen": [
|
|
18
|
+
"Coloring text, icons, borders, or data marks.",
|
|
19
|
+
"A reference palette value appears visually similar."
|
|
20
|
+
],
|
|
21
|
+
"constraints": [
|
|
22
|
+
"Pair content with a foreground token intended for the resulting surface contrast.",
|
|
23
|
+
"Use semantic tokens in product UI; reference colors are foundation inputs only."
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "token-family:dimension.space",
|
|
28
|
+
"status": "stable",
|
|
29
|
+
"summary": "Spacing scale for gaps, padding, margins, and layout separation.",
|
|
30
|
+
"tokenPatterns": [
|
|
31
|
+
"--dimension-space-*"
|
|
32
|
+
],
|
|
33
|
+
"useWhen": [
|
|
34
|
+
"Separating or padding layout elements on the design-system spacing grid."
|
|
35
|
+
],
|
|
36
|
+
"avoidWhen": [
|
|
37
|
+
"Sizing controls, icons, strokes, or semantic component dimensions."
|
|
38
|
+
],
|
|
39
|
+
"constraints": [
|
|
40
|
+
"Prefer the smallest scale step that preserves the intended hierarchy.",
|
|
41
|
+
"Use component-specific dimension tokens when one exists."
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "token-family:typography.text",
|
|
46
|
+
"status": "stable",
|
|
47
|
+
"summary": "Font, size, weight, line-height, and text recipe tokens.",
|
|
48
|
+
"tokenPatterns": [
|
|
49
|
+
"--typography-*"
|
|
50
|
+
],
|
|
51
|
+
"useWhen": [
|
|
52
|
+
"Implementing typography through a documented ds-text recipe or component-owned text style."
|
|
53
|
+
],
|
|
54
|
+
"avoidWhen": [
|
|
55
|
+
"Inventing a one-off type scale or using viewport width to scale text."
|
|
56
|
+
],
|
|
57
|
+
"constraints": [
|
|
58
|
+
"Prefer ds-text variants over assembling individual font tokens in application code."
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "token-family:effect.motion",
|
|
63
|
+
"status": "stable",
|
|
64
|
+
"summary": "Combined interaction duration and easing recipes.",
|
|
65
|
+
"tokenPatterns": [
|
|
66
|
+
"--effect-motion-*"
|
|
67
|
+
],
|
|
68
|
+
"useWhen": [
|
|
69
|
+
"Defining a CSS transition that needs both a system duration and easing curve."
|
|
70
|
+
],
|
|
71
|
+
"avoidWhen": [
|
|
72
|
+
"JavaScript needs a numeric duration; use an animation-duration token and resolve it at runtime."
|
|
73
|
+
],
|
|
74
|
+
"constraints": [
|
|
75
|
+
"Use short motion for direct interactions and medium motion for larger structural changes.",
|
|
76
|
+
"Respect the global reduced-motion behavior."
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
package/dist/agent.mjs
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
const manifest = {
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"package": "@ds-mo/tokens",
|
|
4
|
+
"packageVersion": "2.15.0",
|
|
5
|
+
"kind": "tokens",
|
|
6
|
+
"entries": [
|
|
7
|
+
{
|
|
8
|
+
"id": "token-family:color.background",
|
|
9
|
+
"status": "stable",
|
|
10
|
+
"summary": "Semantic fills for page, component, interaction, and contrast surfaces.",
|
|
11
|
+
"tokenPatterns": [
|
|
12
|
+
"--color-background-*"
|
|
13
|
+
],
|
|
14
|
+
"useWhen": [
|
|
15
|
+
"Setting the fill of a page, panel, control, selected state, or semantic surface."
|
|
16
|
+
],
|
|
17
|
+
"avoidWhen": [
|
|
18
|
+
"Coloring text, icons, borders, or data marks.",
|
|
19
|
+
"A reference palette value appears visually similar."
|
|
20
|
+
],
|
|
21
|
+
"constraints": [
|
|
22
|
+
"Pair content with a foreground token intended for the resulting surface contrast.",
|
|
23
|
+
"Use semantic tokens in product UI; reference colors are foundation inputs only."
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "token-family:dimension.space",
|
|
28
|
+
"status": "stable",
|
|
29
|
+
"summary": "Spacing scale for gaps, padding, margins, and layout separation.",
|
|
30
|
+
"tokenPatterns": [
|
|
31
|
+
"--dimension-space-*"
|
|
32
|
+
],
|
|
33
|
+
"useWhen": [
|
|
34
|
+
"Separating or padding layout elements on the design-system spacing grid."
|
|
35
|
+
],
|
|
36
|
+
"avoidWhen": [
|
|
37
|
+
"Sizing controls, icons, strokes, or semantic component dimensions."
|
|
38
|
+
],
|
|
39
|
+
"constraints": [
|
|
40
|
+
"Prefer the smallest scale step that preserves the intended hierarchy.",
|
|
41
|
+
"Use component-specific dimension tokens when one exists."
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"id": "token-family:typography.text",
|
|
46
|
+
"status": "stable",
|
|
47
|
+
"summary": "Font, size, weight, line-height, and text recipe tokens.",
|
|
48
|
+
"tokenPatterns": [
|
|
49
|
+
"--typography-*"
|
|
50
|
+
],
|
|
51
|
+
"useWhen": [
|
|
52
|
+
"Implementing typography through a documented ds-text recipe or component-owned text style."
|
|
53
|
+
],
|
|
54
|
+
"avoidWhen": [
|
|
55
|
+
"Inventing a one-off type scale or using viewport width to scale text."
|
|
56
|
+
],
|
|
57
|
+
"constraints": [
|
|
58
|
+
"Prefer ds-text variants over assembling individual font tokens in application code."
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"id": "token-family:effect.motion",
|
|
63
|
+
"status": "stable",
|
|
64
|
+
"summary": "Combined interaction duration and easing recipes.",
|
|
65
|
+
"tokenPatterns": [
|
|
66
|
+
"--effect-motion-*"
|
|
67
|
+
],
|
|
68
|
+
"useWhen": [
|
|
69
|
+
"Defining a CSS transition that needs both a system duration and easing curve."
|
|
70
|
+
],
|
|
71
|
+
"avoidWhen": [
|
|
72
|
+
"JavaScript needs a numeric duration; use an animation-duration token and resolve it at runtime."
|
|
73
|
+
],
|
|
74
|
+
"constraints": [
|
|
75
|
+
"Use short motion for direct interactions and medium motion for larger structural changes.",
|
|
76
|
+
"Respect the global reduced-motion behavior."
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
export default manifest;
|
package/dist/dimensions.css
CHANGED
|
@@ -139,6 +139,19 @@
|
|
|
139
139
|
--dimension-panel-width-2xl: 800px;
|
|
140
140
|
--dimension-panel-width-fill: 100%;
|
|
141
141
|
|
|
142
|
+
/* Card heights */
|
|
143
|
+
--dimension-card-height-xs: 300px;
|
|
144
|
+
--dimension-card-height-sm: 400px;
|
|
145
|
+
--dimension-card-height-md: 500px;
|
|
146
|
+
--dimension-card-height-lg: 600px;
|
|
147
|
+
|
|
148
|
+
/* Modal heights */
|
|
149
|
+
--dimension-modal-height-xs: 300px;
|
|
150
|
+
--dimension-modal-height-sm: 400px;
|
|
151
|
+
--dimension-modal-height-md: 500px;
|
|
152
|
+
--dimension-modal-height-lg: 600px;
|
|
153
|
+
--dimension-modal-height-fill: 100%;
|
|
154
|
+
|
|
142
155
|
/* Offset — for transforms and background-position, calc() relative to --dimension-space-base */
|
|
143
156
|
--dimension-offset-100: var(--dimension-space-base);
|
|
144
157
|
--dimension-offset-125: calc(var(--dimension-space-base) * 5 / 4);
|
package/dist/index.cjs
CHANGED
|
@@ -725,6 +725,10 @@ exports.colorSettingsProfileForeground = '--color-settings-profile-foreground';
|
|
|
725
725
|
exports.colorShimmerFade = '--color-shimmer-fade';
|
|
726
726
|
exports.colorShimmerHighlight = '--color-shimmer-highlight';
|
|
727
727
|
exports.dimensionBase = '--dimension-base';
|
|
728
|
+
exports.dimensionCardHeightLg = '--dimension-card-height-lg';
|
|
729
|
+
exports.dimensionCardHeightMd = '--dimension-card-height-md';
|
|
730
|
+
exports.dimensionCardHeightSm = '--dimension-card-height-sm';
|
|
731
|
+
exports.dimensionCardHeightXs = '--dimension-card-height-xs';
|
|
728
732
|
exports.dimensionCardWidthLg = '--dimension-card-width-lg';
|
|
729
733
|
exports.dimensionCardWidthMd = '--dimension-card-width-md';
|
|
730
734
|
exports.dimensionCardWidthSm = '--dimension-card-width-sm';
|
|
@@ -745,6 +749,11 @@ exports.dimensionMenuWidthLg = '--dimension-menu-width-lg';
|
|
|
745
749
|
exports.dimensionMenuWidthMd = '--dimension-menu-width-md';
|
|
746
750
|
exports.dimensionMenuWidthSm = '--dimension-menu-width-sm';
|
|
747
751
|
exports.dimensionMenuWidthXs = '--dimension-menu-width-xs';
|
|
752
|
+
exports.dimensionModalHeightFill = '--dimension-modal-height-fill';
|
|
753
|
+
exports.dimensionModalHeightLg = '--dimension-modal-height-lg';
|
|
754
|
+
exports.dimensionModalHeightMd = '--dimension-modal-height-md';
|
|
755
|
+
exports.dimensionModalHeightSm = '--dimension-modal-height-sm';
|
|
756
|
+
exports.dimensionModalHeightXs = '--dimension-modal-height-xs';
|
|
748
757
|
exports.dimensionModalWidth2xl = '--dimension-modal-width-2xl';
|
|
749
758
|
exports.dimensionModalWidthFill = '--dimension-modal-width-fill';
|
|
750
759
|
exports.dimensionModalWidthLg = '--dimension-modal-width-lg';
|
package/dist/index.d.ts
CHANGED
|
@@ -725,6 +725,10 @@ export declare const colorSettingsProfileForeground: '--color-settings-profile-f
|
|
|
725
725
|
export declare const colorShimmerFade: '--color-shimmer-fade';
|
|
726
726
|
export declare const colorShimmerHighlight: '--color-shimmer-highlight';
|
|
727
727
|
export declare const dimensionBase: '--dimension-base';
|
|
728
|
+
export declare const dimensionCardHeightLg: '--dimension-card-height-lg';
|
|
729
|
+
export declare const dimensionCardHeightMd: '--dimension-card-height-md';
|
|
730
|
+
export declare const dimensionCardHeightSm: '--dimension-card-height-sm';
|
|
731
|
+
export declare const dimensionCardHeightXs: '--dimension-card-height-xs';
|
|
728
732
|
export declare const dimensionCardWidthLg: '--dimension-card-width-lg';
|
|
729
733
|
export declare const dimensionCardWidthMd: '--dimension-card-width-md';
|
|
730
734
|
export declare const dimensionCardWidthSm: '--dimension-card-width-sm';
|
|
@@ -745,6 +749,11 @@ export declare const dimensionMenuWidthLg: '--dimension-menu-width-lg';
|
|
|
745
749
|
export declare const dimensionMenuWidthMd: '--dimension-menu-width-md';
|
|
746
750
|
export declare const dimensionMenuWidthSm: '--dimension-menu-width-sm';
|
|
747
751
|
export declare const dimensionMenuWidthXs: '--dimension-menu-width-xs';
|
|
752
|
+
export declare const dimensionModalHeightFill: '--dimension-modal-height-fill';
|
|
753
|
+
export declare const dimensionModalHeightLg: '--dimension-modal-height-lg';
|
|
754
|
+
export declare const dimensionModalHeightMd: '--dimension-modal-height-md';
|
|
755
|
+
export declare const dimensionModalHeightSm: '--dimension-modal-height-sm';
|
|
756
|
+
export declare const dimensionModalHeightXs: '--dimension-modal-height-xs';
|
|
748
757
|
export declare const dimensionModalWidth2xl: '--dimension-modal-width-2xl';
|
|
749
758
|
export declare const dimensionModalWidthFill: '--dimension-modal-width-fill';
|
|
750
759
|
export declare const dimensionModalWidthLg: '--dimension-modal-width-lg';
|
package/dist/index.mjs
CHANGED
|
@@ -725,6 +725,10 @@ export const colorSettingsProfileForeground = '--color-settings-profile-foregrou
|
|
|
725
725
|
export const colorShimmerFade = '--color-shimmer-fade';
|
|
726
726
|
export const colorShimmerHighlight = '--color-shimmer-highlight';
|
|
727
727
|
export const dimensionBase = '--dimension-base';
|
|
728
|
+
export const dimensionCardHeightLg = '--dimension-card-height-lg';
|
|
729
|
+
export const dimensionCardHeightMd = '--dimension-card-height-md';
|
|
730
|
+
export const dimensionCardHeightSm = '--dimension-card-height-sm';
|
|
731
|
+
export const dimensionCardHeightXs = '--dimension-card-height-xs';
|
|
728
732
|
export const dimensionCardWidthLg = '--dimension-card-width-lg';
|
|
729
733
|
export const dimensionCardWidthMd = '--dimension-card-width-md';
|
|
730
734
|
export const dimensionCardWidthSm = '--dimension-card-width-sm';
|
|
@@ -745,6 +749,11 @@ export const dimensionMenuWidthLg = '--dimension-menu-width-lg';
|
|
|
745
749
|
export const dimensionMenuWidthMd = '--dimension-menu-width-md';
|
|
746
750
|
export const dimensionMenuWidthSm = '--dimension-menu-width-sm';
|
|
747
751
|
export const dimensionMenuWidthXs = '--dimension-menu-width-xs';
|
|
752
|
+
export const dimensionModalHeightFill = '--dimension-modal-height-fill';
|
|
753
|
+
export const dimensionModalHeightLg = '--dimension-modal-height-lg';
|
|
754
|
+
export const dimensionModalHeightMd = '--dimension-modal-height-md';
|
|
755
|
+
export const dimensionModalHeightSm = '--dimension-modal-height-sm';
|
|
756
|
+
export const dimensionModalHeightXs = '--dimension-modal-height-xs';
|
|
748
757
|
export const dimensionModalWidth2xl = '--dimension-modal-width-2xl';
|
|
749
758
|
export const dimensionModalWidthFill = '--dimension-modal-width-fill';
|
|
750
759
|
export const dimensionModalWidthLg = '--dimension-modal-width-lg';
|