@adobe/design-data-spec 0.0.1 → 0.1.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/conformance/README.md +82 -10
- package/conformance/diff/cross-format/expected.json +27 -0
- package/conformance/diff/cross-format/new/tokens.tokens.json +8 -0
- package/conformance/diff/cross-format/old/tokens.json +7 -0
- package/conformance/diff/deprecated-new-token/expected.json +13 -0
- package/conformance/diff/deprecated-new-token/new/tokens.tokens.json +8 -0
- package/conformance/diff/deprecated-new-token/old/tokens.tokens.json +1 -0
- package/conformance/diff/deprecated-set-level/expected.json +13 -0
- package/conformance/diff/deprecated-set-level/new/tokens.tokens.json +10 -0
- package/conformance/diff/deprecated-set-level/old/tokens.tokens.json +1 -0
- package/conformance/diff/identical-tokens/expected.json +8 -0
- package/conformance/diff/identical-tokens/new/tokens.tokens.json +12 -0
- package/conformance/diff/identical-tokens/old/tokens.tokens.json +12 -0
- package/conformance/diff/matched-gaining-deprecated/expected.json +20 -0
- package/conformance/diff/matched-gaining-deprecated/new/tokens.tokens.json +8 -0
- package/conformance/diff/matched-gaining-deprecated/old/tokens.tokens.json +7 -0
- package/conformance/diff/property-nested-change/expected.json +27 -0
- package/conformance/diff/property-nested-change/new/tokens.tokens.json +10 -0
- package/conformance/diff/property-nested-change/old/tokens.tokens.json +10 -0
- package/conformance/diff/property-value-update/expected.json +21 -0
- package/conformance/diff/property-value-update/new/tokens.tokens.json +7 -0
- package/conformance/diff/property-value-update/old/tokens.tokens.json +7 -0
- package/conformance/diff/rename-by-uuid/expected.json +22 -0
- package/conformance/diff/rename-by-uuid/new/tokens.tokens.json +7 -0
- package/conformance/diff/rename-by-uuid/old/tokens.tokens.json +7 -0
- package/conformance/diff/rename-with-property-changes/expected.json +28 -0
- package/conformance/diff/rename-with-property-changes/new/tokens.tokens.json +7 -0
- package/conformance/diff/rename-with-property-changes/old/tokens.tokens.json +7 -0
- package/conformance/diff/replaced-by-pairing/expected.json +43 -0
- package/conformance/diff/replaced-by-pairing/new/tokens.tokens.json +7 -0
- package/conformance/diff/replaced-by-pairing/old/tokens.tokens.json +10 -0
- package/conformance/diff/reverted-token/expected.json +13 -0
- package/conformance/diff/reverted-token/new/tokens.tokens.json +7 -0
- package/conformance/diff/reverted-token/old/tokens.tokens.json +8 -0
- package/conformance/diff/simple-add-delete/expected.json +18 -0
- package/conformance/diff/simple-add-delete/new/tokens.tokens.json +7 -0
- package/conformance/diff/simple-add-delete/old/tokens.tokens.json +7 -0
- package/conformance/diff/uuid-backfill/expected.json +20 -0
- package/conformance/diff/uuid-backfill/new/tokens.tokens.json +7 -0
- package/conformance/diff/uuid-backfill/old/tokens.tokens.json +6 -0
- package/conformance/invalid/SPEC-008/dimension.json +5 -0
- package/conformance/invalid/SPEC-008/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-008/tokens.tokens.json +15 -0
- package/conformance/invalid/SPEC-010/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-010/tokens.tokens.json +9 -0
- package/conformance/invalid/SPEC-011/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-011/tokens.tokens.json +22 -0
- package/conformance/invalid/SPEC-012/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-012/tokens.tokens.json +13 -0
- package/conformance/invalid/SPEC-013/expected-errors.json +10 -0
- package/conformance/invalid/SPEC-013/tokens.tokens.json +8 -0
- package/conformance/query/and-conditions/expected.json +1 -0
- package/conformance/query/and-conditions/input/tokens.tokens.json +17 -0
- package/conformance/query/and-conditions/query.txt +1 -0
- package/conformance/query/and-or-precedence/expected.json +1 -0
- package/conformance/query/and-or-precedence/input/tokens.tokens.json +22 -0
- package/conformance/query/and-or-precedence/query.txt +1 -0
- package/conformance/query/empty-matches-all/expected.json +1 -0
- package/conformance/query/empty-matches-all/input/tokens.tokens.json +17 -0
- package/conformance/query/empty-matches-all/query.txt +1 -0
- package/conformance/query/negation/expected.json +1 -0
- package/conformance/query/negation/input/tokens.tokens.json +17 -0
- package/conformance/query/negation/query.txt +1 -0
- package/conformance/query/no-matches/expected.json +1 -0
- package/conformance/query/no-matches/input/tokens.tokens.json +7 -0
- package/conformance/query/no-matches/query.txt +1 -0
- package/conformance/query/or-conditions/expected.json +1 -0
- package/conformance/query/or-conditions/input/tokens.tokens.json +17 -0
- package/conformance/query/or-conditions/query.txt +1 -0
- package/conformance/query/schema-key/expected.json +1 -0
- package/conformance/query/schema-key/input/tokens.tokens.json +14 -0
- package/conformance/query/schema-key/query.txt +1 -0
- package/conformance/query/single-field/expected.json +1 -0
- package/conformance/query/single-field/input/tokens.tokens.json +17 -0
- package/conformance/query/single-field/query.txt +1 -0
- package/conformance/query/wildcard-prefix/expected.json +1 -0
- package/conformance/query/wildcard-prefix/input/tokens.tokens.json +17 -0
- package/conformance/query/wildcard-prefix/query.txt +1 -0
- package/conformance/query/wildcard-suffix/expected.json +1 -0
- package/conformance/query/wildcard-suffix/input/tokens.tokens.json +17 -0
- package/conformance/query/wildcard-suffix/query.txt +1 -0
- package/conformance/resolution/alias-resolved-after-cascade/dimensions/color-scheme.json +5 -0
- package/conformance/resolution/alias-resolved-after-cascade/expected.json +5 -0
- package/conformance/resolution/alias-resolved-after-cascade/input/tokens.tokens.json +12 -0
- package/conformance/resolution/alias-resolved-after-cascade/query.json +4 -0
- package/conformance/resolution/base-fallback/dimensions/color-scheme.json +5 -0
- package/conformance/resolution/base-fallback/expected.json +5 -0
- package/conformance/resolution/base-fallback/input/tokens.tokens.json +7 -0
- package/conformance/resolution/base-fallback/query.json +4 -0
- package/conformance/resolution/specificity-wins/dimensions/color-scheme.json +5 -0
- package/conformance/resolution/specificity-wins/expected.json +5 -0
- package/conformance/resolution/specificity-wins/input/tokens.tokens.json +12 -0
- package/conformance/resolution/specificity-wins/query.json +4 -0
- package/fields/anatomy.json +15 -0
- package/fields/color-scheme.json +15 -0
- package/fields/component.json +15 -0
- package/fields/contrast.json +15 -0
- package/fields/density.json +15 -0
- package/fields/object.json +15 -0
- package/fields/orientation.json +15 -0
- package/fields/position.json +15 -0
- package/fields/property.json +15 -0
- package/fields/scale.json +15 -0
- package/fields/shape.json +15 -0
- package/fields/size.json +15 -0
- package/fields/state.json +15 -0
- package/fields/structure.json +15 -0
- package/fields/substructure.json +15 -0
- package/fields/variant.json +15 -0
- package/package.json +3 -1
- package/rules/rules.yaml +56 -2
- package/schemas/cascade-file.schema.json +10 -0
- package/schemas/field.schema.json +85 -0
- package/schemas/manifest.schema.json +55 -1
- package/schemas/token.schema.json +89 -18
- package/spec/cascade.md +18 -2
- package/spec/diff.md +97 -0
- package/spec/dimensions.md +15 -6
- package/spec/evolution.md +98 -0
- package/spec/index.md +11 -8
- package/spec/manifest.md +15 -0
- package/spec/query.md +135 -0
- package/spec/taxonomy.md +173 -0
- package/spec/token-format.md +114 -19
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "A cascade token property that has non-default colorScheme variants (dark, wireframe) but no base/default variant (dimensionless or explicit light) MUST trigger SPEC-008.",
|
|
3
|
+
"errors": [
|
|
4
|
+
{
|
|
5
|
+
"rule_id": "SPEC-008",
|
|
6
|
+
"severity": "warning",
|
|
7
|
+
"message_pattern": "background-color-default"
|
|
8
|
+
}
|
|
9
|
+
]
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "background-color-default", "colorScheme": "dark" },
|
|
4
|
+
"value": "#000000",
|
|
5
|
+
"uuid": "spec008-dark-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": {
|
|
9
|
+
"property": "background-color-default",
|
|
10
|
+
"colorScheme": "wireframe"
|
|
11
|
+
},
|
|
12
|
+
"value": "#f5f5f5",
|
|
13
|
+
"uuid": "spec008-wire-4000-8000-000000000002"
|
|
14
|
+
}
|
|
15
|
+
]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "split-token" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001",
|
|
6
|
+
"deprecated": "3.0.0",
|
|
7
|
+
"replaced_by": [
|
|
8
|
+
"aaaaaaaa-0002-4000-8000-000000000001",
|
|
9
|
+
"aaaaaaaa-0003-4000-8000-000000000001"
|
|
10
|
+
]
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "replacement-a" },
|
|
14
|
+
"value": "#eeeeee",
|
|
15
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": { "property": "replacement-b" },
|
|
19
|
+
"value": "#dddddd",
|
|
20
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "not-deprecated-but-replaced" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001",
|
|
6
|
+
"replaced_by": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": { "property": "replacement" },
|
|
10
|
+
"value": "#000000",
|
|
11
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
12
|
+
}
|
|
13
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "bg", "component": "button", "state": "hover" },
|
|
4
|
+
"value": "#aaaaaa",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "bg", "component": "button" },
|
|
9
|
+
"value": "#bbbbbb",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "bg", "component": "checkbox", "state": "hover" },
|
|
14
|
+
"value": "#cccccc",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
component=button,state=hover
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001", "aaaaaaaa-0003-4000-8000-000000000001"]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "bg", "component": "button", "state": "hover" },
|
|
4
|
+
"value": "#aaaaaa",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "bg", "component": "button", "state": "default" },
|
|
9
|
+
"value": "#bbbbbb",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "bg", "component": "checkbox", "state": "default" },
|
|
14
|
+
"value": "#cccccc",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": { "property": "bg", "component": "slider", "state": "hover" },
|
|
19
|
+
"value": "#dddddd",
|
|
20
|
+
"uuid": "aaaaaaaa-0004-4000-8000-000000000001"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
component=button,state=hover|component=checkbox
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001", "aaaaaaaa-0002-4000-8000-000000000001", "aaaaaaaa-0003-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "alpha" },
|
|
4
|
+
"value": "1",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "beta" },
|
|
9
|
+
"value": "2",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "gamma" },
|
|
14
|
+
"value": "3",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0002-4000-8000-000000000001", "aaaaaaaa-0003-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "bg", "colorScheme": "light" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "bg", "colorScheme": "dark" },
|
|
9
|
+
"value": "#000000",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "bg" },
|
|
14
|
+
"value": "#888888",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
colorScheme!=light
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
component=nonexistent
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001", "aaaaaaaa-0002-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "bg", "component": "button" },
|
|
4
|
+
"value": "#aaaaaa",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "bg", "component": "checkbox" },
|
|
9
|
+
"value": "#bbbbbb",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "bg", "component": "slider" },
|
|
14
|
+
"value": "#cccccc",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
component=button|component=checkbox
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001"]
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "bg" },
|
|
4
|
+
"$schema": "https://example.com/color.json",
|
|
5
|
+
"value": "#ffffff",
|
|
6
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": { "property": "spacing" },
|
|
10
|
+
"$schema": "https://example.com/dimension.json",
|
|
11
|
+
"value": "8px",
|
|
12
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$schema=https://example.com/color.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "bg", "component": "button" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "bg", "component": "checkbox" },
|
|
9
|
+
"value": "#eeeeee",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "bg", "component": "slider" },
|
|
14
|
+
"value": "#dddddd",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
component=button
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001", "aaaaaaaa-0002-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "background-color" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "border-color" },
|
|
9
|
+
"value": "#cccccc",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "font-size" },
|
|
14
|
+
"value": "14px",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
property=*-color
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
["aaaaaaaa-0001-4000-8000-000000000001", "aaaaaaaa-0002-4000-8000-000000000001"]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "color-default" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "aaaaaaaa-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "color-hover" },
|
|
9
|
+
"value": "#eeeeee",
|
|
10
|
+
"uuid": "aaaaaaaa-0002-4000-8000-000000000001"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": { "property": "font-size" },
|
|
14
|
+
"value": "14px",
|
|
15
|
+
"uuid": "aaaaaaaa-0003-4000-8000-000000000001"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
property=color-*
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Cascade selects the winning token first (by specificity). Alias chains ($ref) are resolved AFTER the cascade winner is determined — not before. The winner here is the dark alias token; following its $ref yields blue-600.",
|
|
3
|
+
"resolved": true,
|
|
4
|
+
"expected_uuid": "cccccccc-0001-4000-8000-000000000001"
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "action-color-default", "colorScheme": "dark" },
|
|
4
|
+
"$ref": "cccccccc-0002-4000-8000-000000000002",
|
|
5
|
+
"uuid": "cccccccc-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "blue-600" },
|
|
9
|
+
"value": "#0050b3",
|
|
10
|
+
"uuid": "cccccccc-0002-4000-8000-000000000002"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": { "property": "background-color-default" },
|
|
4
|
+
"value": "#ffffff",
|
|
5
|
+
"uuid": "bbbbbbbb-0001-4000-8000-000000000001"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": { "property": "background-color-default", "colorScheme": "dark" },
|
|
9
|
+
"value": "#000000",
|
|
10
|
+
"uuid": "bbbbbbbb-0002-4000-8000-000000000002"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "anatomy",
|
|
5
|
+
"description": "Visible named part of a component (e.g. handle, icon, label, track). Refers to a specific sub-element, not a styling surface.",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": "packages/design-system-registry/registry/anatomy-terms.json",
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 4
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "colorScheme",
|
|
5
|
+
"description": "Theme / appearance dimension. Controls which color scheme a token applies to (e.g. light, dark, wireframe). Drives cascade resolution.",
|
|
6
|
+
"kind": "dimension",
|
|
7
|
+
"registry": null,
|
|
8
|
+
"validation": "strict",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 13
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "component",
|
|
5
|
+
"description": "Component scope — the UI component this token belongs to (e.g. button, checkbox, slider).",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": "packages/design-system-registry/registry/components.json",
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 1
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "contrast",
|
|
5
|
+
"description": "Contrast level dimension (e.g. regular, high). Drives cascade resolution.",
|
|
6
|
+
"kind": "dimension",
|
|
7
|
+
"registry": null,
|
|
8
|
+
"validation": "strict",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 15
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "density",
|
|
5
|
+
"description": "Space density within or around component parts (e.g. spacious, compact). Distinct from the dimension scale field.",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": "packages/design-system-registry/registry/densities.json",
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 10
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "object",
|
|
5
|
+
"description": "Styling surface being targeted (e.g. background, border, edge, visual). Refers to what is being styled, not the property value.",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": "packages/design-system-registry/registry/token-objects.json",
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 5
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "orientation",
|
|
5
|
+
"description": "Direction or layout axis (e.g. vertical, horizontal).",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": "packages/design-system-registry/registry/orientations.json",
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 7
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "position",
|
|
5
|
+
"description": "Location relative to another object or edge (e.g. top, bottom, start, end, affixed).",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": "packages/design-system-registry/registry/positions.json",
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 8
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": false,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://opensource.adobe.com/spectrum-design-data/schemas/v0/field.schema.json",
|
|
3
|
+
"specVersion": "1.0.0-draft",
|
|
4
|
+
"name": "property",
|
|
5
|
+
"description": "The stylistic attribute being defined (e.g. color, width, padding, gap). The only required field on every name object.",
|
|
6
|
+
"kind": "semantic",
|
|
7
|
+
"registry": null,
|
|
8
|
+
"validation": "advisory",
|
|
9
|
+
"serialization": {
|
|
10
|
+
"position": 6
|
|
11
|
+
},
|
|
12
|
+
"scope": null,
|
|
13
|
+
"required": true,
|
|
14
|
+
"valueType": "string"
|
|
15
|
+
}
|