@valancex/style 0.0.0-stage → 0.14.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/LICENSE +21 -0
- package/README.md +33 -2
- package/contract/style-contract-v1.json +207 -0
- package/dist/check.d.ts +31 -0
- package/dist/check.js +250 -0
- package/dist/color.d.ts +17 -0
- package/dist/color.js +82 -0
- package/dist/contrast.d.ts +5 -0
- package/dist/contrast.js +13 -0
- package/dist/coverage.d.ts +21 -0
- package/dist/coverage.js +60 -0
- package/dist/css.d.ts +9 -0
- package/dist/css.js +201 -0
- package/dist/desktop.d.ts +33 -0
- package/dist/desktop.js +112 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +11 -0
- package/dist/load.d.ts +5 -0
- package/dist/load.js +8 -0
- package/dist/primitives.d.ts +2 -0
- package/dist/primitives.js +364 -0
- package/dist/suggest.d.ts +2 -0
- package/dist/suggest.js +22 -0
- package/dist/theme.d.ts +5 -0
- package/dist/theme.js +129 -0
- package/dist/tokens.d.ts +21 -0
- package/dist/tokens.js +257 -0
- package/dist/types.d.ts +114 -0
- package/dist/types.js +3 -0
- package/package.json +64 -3
- package/schema/dtcg-2025.10/NOTICE.md +6 -0
- package/schema/dtcg-2025.10/format/group.json +54 -0
- package/schema/dtcg-2025.10/format/groupOrToken.json +14 -0
- package/schema/dtcg-2025.10/format/token.json +450 -0
- package/schema/dtcg-2025.10/format/tokenType.json +22 -0
- package/schema/dtcg-2025.10/format/values/border.json +44 -0
- package/schema/dtcg-2025.10/format/values/color.json +570 -0
- package/schema/dtcg-2025.10/format/values/cubicBezier.json +56 -0
- package/schema/dtcg-2025.10/format/values/dimension.json +34 -0
- package/schema/dtcg-2025.10/format/values/duration.json +34 -0
- package/schema/dtcg-2025.10/format/values/fontFamily.json +33 -0
- package/schema/dtcg-2025.10/format/values/fontWeight.json +38 -0
- package/schema/dtcg-2025.10/format/values/gradient.json +52 -0
- package/schema/dtcg-2025.10/format/values/number.json +7 -0
- package/schema/dtcg-2025.10/format/values/shadow.json +102 -0
- package/schema/dtcg-2025.10/format/values/strokeStyle.json +63 -0
- package/schema/dtcg-2025.10/format/values/transition.json +44 -0
- package/schema/dtcg-2025.10/format/values/typography.json +72 -0
- package/schema/dtcg-2025.10/format.json +105 -0
- package/schema/recipe-v1.schema.json +43 -0
- package/schema/style-contract-v1.schema.json +171 -0
- package/schema/theme-v1.schema.json +78 -0
- package/themes/default/recipes/button.json +87 -0
- package/themes/default/recipes/checkbox.json +26 -0
- package/themes/default/recipes/column.json +10 -0
- package/themes/default/recipes/heading.json +11 -0
- package/themes/default/recipes/row.json +10 -0
- package/themes/default/recipes/text.json +12 -0
- package/themes/default/recipes/textfield.json +37 -0
- package/themes/default/theme.json +61 -0
- package/themes/default/tokens/base.tokens.json +193 -0
- package/themes/default/tokens/contrast.tokens.json +127 -0
- package/themes/default/tokens/dark.tokens.json +127 -0
- package/themes/default/tokens/light.tokens.json +127 -0
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
|
|
3
|
+
"$description": "The contrast mode: the color roles. Mode-independent tokens (space, radius, border width, type) are in base.tokens.json.",
|
|
4
|
+
"color": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"text": {
|
|
7
|
+
"$value": {
|
|
8
|
+
"colorSpace": "srgb",
|
|
9
|
+
"components": [
|
|
10
|
+
0.0,
|
|
11
|
+
0.0,
|
|
12
|
+
0.0
|
|
13
|
+
],
|
|
14
|
+
"hex": "#000000"
|
|
15
|
+
},
|
|
16
|
+
"$description": "Body text and the text of controls."
|
|
17
|
+
},
|
|
18
|
+
"text-muted": {
|
|
19
|
+
"$value": {
|
|
20
|
+
"colorSpace": "srgb",
|
|
21
|
+
"components": [
|
|
22
|
+
0.0,
|
|
23
|
+
0.0,
|
|
24
|
+
0.0
|
|
25
|
+
],
|
|
26
|
+
"hex": "#000000"
|
|
27
|
+
},
|
|
28
|
+
"$description": "Secondary text."
|
|
29
|
+
},
|
|
30
|
+
"surface": {
|
|
31
|
+
"$value": {
|
|
32
|
+
"colorSpace": "srgb",
|
|
33
|
+
"components": [
|
|
34
|
+
1.0,
|
|
35
|
+
1.0,
|
|
36
|
+
1.0
|
|
37
|
+
],
|
|
38
|
+
"hex": "#ffffff"
|
|
39
|
+
},
|
|
40
|
+
"$description": "The page and the surface of a control."
|
|
41
|
+
},
|
|
42
|
+
"surface-field": {
|
|
43
|
+
"$value": {
|
|
44
|
+
"colorSpace": "srgb",
|
|
45
|
+
"components": [
|
|
46
|
+
1.0,
|
|
47
|
+
1.0,
|
|
48
|
+
1.0
|
|
49
|
+
],
|
|
50
|
+
"hex": "#ffffff"
|
|
51
|
+
},
|
|
52
|
+
"$description": "The inside of a text field."
|
|
53
|
+
},
|
|
54
|
+
"border": {
|
|
55
|
+
"$value": {
|
|
56
|
+
"colorSpace": "srgb",
|
|
57
|
+
"components": [
|
|
58
|
+
0.0,
|
|
59
|
+
0.0,
|
|
60
|
+
0.0
|
|
61
|
+
],
|
|
62
|
+
"hex": "#000000"
|
|
63
|
+
},
|
|
64
|
+
"$description": "The edge of a control, which must be seen against the surface."
|
|
65
|
+
},
|
|
66
|
+
"accent": {
|
|
67
|
+
"$value": {
|
|
68
|
+
"colorSpace": "srgb",
|
|
69
|
+
"components": [
|
|
70
|
+
0.0,
|
|
71
|
+
0.0,
|
|
72
|
+
0.702
|
|
73
|
+
],
|
|
74
|
+
"hex": "#0000b3"
|
|
75
|
+
},
|
|
76
|
+
"$description": "The surface of a primary control."
|
|
77
|
+
},
|
|
78
|
+
"on-accent": {
|
|
79
|
+
"$value": {
|
|
80
|
+
"colorSpace": "srgb",
|
|
81
|
+
"components": [
|
|
82
|
+
1.0,
|
|
83
|
+
1.0,
|
|
84
|
+
1.0
|
|
85
|
+
],
|
|
86
|
+
"hex": "#ffffff"
|
|
87
|
+
},
|
|
88
|
+
"$description": "Text on the accent."
|
|
89
|
+
},
|
|
90
|
+
"danger": {
|
|
91
|
+
"$value": {
|
|
92
|
+
"colorSpace": "srgb",
|
|
93
|
+
"components": [
|
|
94
|
+
0.549,
|
|
95
|
+
0.0,
|
|
96
|
+
0.0
|
|
97
|
+
],
|
|
98
|
+
"hex": "#8c0000"
|
|
99
|
+
},
|
|
100
|
+
"$description": "The surface of a control that destroys."
|
|
101
|
+
},
|
|
102
|
+
"on-danger": {
|
|
103
|
+
"$value": {
|
|
104
|
+
"colorSpace": "srgb",
|
|
105
|
+
"components": [
|
|
106
|
+
1.0,
|
|
107
|
+
1.0,
|
|
108
|
+
1.0
|
|
109
|
+
],
|
|
110
|
+
"hex": "#ffffff"
|
|
111
|
+
},
|
|
112
|
+
"$description": "Text on the danger color."
|
|
113
|
+
},
|
|
114
|
+
"focus": {
|
|
115
|
+
"$value": {
|
|
116
|
+
"colorSpace": "srgb",
|
|
117
|
+
"components": [
|
|
118
|
+
0.0,
|
|
119
|
+
0.0,
|
|
120
|
+
0.0
|
|
121
|
+
],
|
|
122
|
+
"hex": "#000000"
|
|
123
|
+
},
|
|
124
|
+
"$description": "The focus ring."
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
|
|
3
|
+
"$description": "The dark mode: the color roles. Mode-independent tokens (space, radius, border width, type) are in base.tokens.json.",
|
|
4
|
+
"color": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"text": {
|
|
7
|
+
"$value": {
|
|
8
|
+
"colorSpace": "srgb",
|
|
9
|
+
"components": [
|
|
10
|
+
0.9098,
|
|
11
|
+
0.9176,
|
|
12
|
+
0.9451
|
|
13
|
+
],
|
|
14
|
+
"hex": "#e8eaf1"
|
|
15
|
+
},
|
|
16
|
+
"$description": "Body text and the text of controls."
|
|
17
|
+
},
|
|
18
|
+
"text-muted": {
|
|
19
|
+
"$value": {
|
|
20
|
+
"colorSpace": "srgb",
|
|
21
|
+
"components": [
|
|
22
|
+
0.6588,
|
|
23
|
+
0.6902,
|
|
24
|
+
0.7686
|
|
25
|
+
],
|
|
26
|
+
"hex": "#a8b0c4"
|
|
27
|
+
},
|
|
28
|
+
"$description": "Secondary text."
|
|
29
|
+
},
|
|
30
|
+
"surface": {
|
|
31
|
+
"$value": {
|
|
32
|
+
"colorSpace": "srgb",
|
|
33
|
+
"components": [
|
|
34
|
+
0.0706,
|
|
35
|
+
0.0784,
|
|
36
|
+
0.1059
|
|
37
|
+
],
|
|
38
|
+
"hex": "#12141b"
|
|
39
|
+
},
|
|
40
|
+
"$description": "The page and the surface of a control."
|
|
41
|
+
},
|
|
42
|
+
"surface-field": {
|
|
43
|
+
"$value": {
|
|
44
|
+
"colorSpace": "srgb",
|
|
45
|
+
"components": [
|
|
46
|
+
0.1059,
|
|
47
|
+
0.1176,
|
|
48
|
+
0.1608
|
|
49
|
+
],
|
|
50
|
+
"hex": "#1b1e29"
|
|
51
|
+
},
|
|
52
|
+
"$description": "The inside of a text field."
|
|
53
|
+
},
|
|
54
|
+
"border": {
|
|
55
|
+
"$value": {
|
|
56
|
+
"colorSpace": "srgb",
|
|
57
|
+
"components": [
|
|
58
|
+
0.5529,
|
|
59
|
+
0.5882,
|
|
60
|
+
0.6706
|
|
61
|
+
],
|
|
62
|
+
"hex": "#8d96ab"
|
|
63
|
+
},
|
|
64
|
+
"$description": "The edge of a control, which must be seen against the surface."
|
|
65
|
+
},
|
|
66
|
+
"accent": {
|
|
67
|
+
"$value": {
|
|
68
|
+
"colorSpace": "srgb",
|
|
69
|
+
"components": [
|
|
70
|
+
0.6549,
|
|
71
|
+
0.5451,
|
|
72
|
+
0.9804
|
|
73
|
+
],
|
|
74
|
+
"hex": "#a78bfa"
|
|
75
|
+
},
|
|
76
|
+
"$description": "The surface of a primary control."
|
|
77
|
+
},
|
|
78
|
+
"on-accent": {
|
|
79
|
+
"$value": {
|
|
80
|
+
"colorSpace": "srgb",
|
|
81
|
+
"components": [
|
|
82
|
+
0.0706,
|
|
83
|
+
0.0784,
|
|
84
|
+
0.1059
|
|
85
|
+
],
|
|
86
|
+
"hex": "#12141b"
|
|
87
|
+
},
|
|
88
|
+
"$description": "Text on the accent."
|
|
89
|
+
},
|
|
90
|
+
"danger": {
|
|
91
|
+
"$value": {
|
|
92
|
+
"colorSpace": "srgb",
|
|
93
|
+
"components": [
|
|
94
|
+
0.949,
|
|
95
|
+
0.7216,
|
|
96
|
+
0.7098
|
|
97
|
+
],
|
|
98
|
+
"hex": "#f2b8b5"
|
|
99
|
+
},
|
|
100
|
+
"$description": "The surface of a control that destroys."
|
|
101
|
+
},
|
|
102
|
+
"on-danger": {
|
|
103
|
+
"$value": {
|
|
104
|
+
"colorSpace": "srgb",
|
|
105
|
+
"components": [
|
|
106
|
+
0.2549,
|
|
107
|
+
0.0549,
|
|
108
|
+
0.0431
|
|
109
|
+
],
|
|
110
|
+
"hex": "#410e0b"
|
|
111
|
+
},
|
|
112
|
+
"$description": "Text on the danger color."
|
|
113
|
+
},
|
|
114
|
+
"focus": {
|
|
115
|
+
"$value": {
|
|
116
|
+
"colorSpace": "srgb",
|
|
117
|
+
"components": [
|
|
118
|
+
0.5412,
|
|
119
|
+
0.7059,
|
|
120
|
+
1.0
|
|
121
|
+
],
|
|
122
|
+
"hex": "#8ab4ff"
|
|
123
|
+
},
|
|
124
|
+
"$description": "The focus ring."
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://www.designtokens.org/schemas/2025.10/format.json",
|
|
3
|
+
"$description": "The light mode: the color roles. Mode-independent tokens (space, radius, border width, type) are in base.tokens.json.",
|
|
4
|
+
"color": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"text": {
|
|
7
|
+
"$value": {
|
|
8
|
+
"colorSpace": "srgb",
|
|
9
|
+
"components": [
|
|
10
|
+
0.1137,
|
|
11
|
+
0.1373,
|
|
12
|
+
0.1882
|
|
13
|
+
],
|
|
14
|
+
"hex": "#1d2330"
|
|
15
|
+
},
|
|
16
|
+
"$description": "Body text and the text of controls."
|
|
17
|
+
},
|
|
18
|
+
"text-muted": {
|
|
19
|
+
"$value": {
|
|
20
|
+
"colorSpace": "srgb",
|
|
21
|
+
"components": [
|
|
22
|
+
0.3098,
|
|
23
|
+
0.3451,
|
|
24
|
+
0.4392
|
|
25
|
+
],
|
|
26
|
+
"hex": "#4f5870"
|
|
27
|
+
},
|
|
28
|
+
"$description": "Secondary text."
|
|
29
|
+
},
|
|
30
|
+
"surface": {
|
|
31
|
+
"$value": {
|
|
32
|
+
"colorSpace": "srgb",
|
|
33
|
+
"components": [
|
|
34
|
+
1.0,
|
|
35
|
+
1.0,
|
|
36
|
+
1.0
|
|
37
|
+
],
|
|
38
|
+
"hex": "#ffffff"
|
|
39
|
+
},
|
|
40
|
+
"$description": "The page and the surface of a control."
|
|
41
|
+
},
|
|
42
|
+
"surface-field": {
|
|
43
|
+
"$value": {
|
|
44
|
+
"colorSpace": "srgb",
|
|
45
|
+
"components": [
|
|
46
|
+
1.0,
|
|
47
|
+
1.0,
|
|
48
|
+
1.0
|
|
49
|
+
],
|
|
50
|
+
"hex": "#ffffff"
|
|
51
|
+
},
|
|
52
|
+
"$description": "The inside of a text field."
|
|
53
|
+
},
|
|
54
|
+
"border": {
|
|
55
|
+
"$value": {
|
|
56
|
+
"colorSpace": "srgb",
|
|
57
|
+
"components": [
|
|
58
|
+
0.4196,
|
|
59
|
+
0.451,
|
|
60
|
+
0.5216
|
|
61
|
+
],
|
|
62
|
+
"hex": "#6b7385"
|
|
63
|
+
},
|
|
64
|
+
"$description": "The edge of a control, which must be seen against the surface."
|
|
65
|
+
},
|
|
66
|
+
"accent": {
|
|
67
|
+
"$value": {
|
|
68
|
+
"colorSpace": "srgb",
|
|
69
|
+
"components": [
|
|
70
|
+
0.2902,
|
|
71
|
+
0.1843,
|
|
72
|
+
0.7529
|
|
73
|
+
],
|
|
74
|
+
"hex": "#4a2fc0"
|
|
75
|
+
},
|
|
76
|
+
"$description": "The surface of a primary control."
|
|
77
|
+
},
|
|
78
|
+
"on-accent": {
|
|
79
|
+
"$value": {
|
|
80
|
+
"colorSpace": "srgb",
|
|
81
|
+
"components": [
|
|
82
|
+
1.0,
|
|
83
|
+
1.0,
|
|
84
|
+
1.0
|
|
85
|
+
],
|
|
86
|
+
"hex": "#ffffff"
|
|
87
|
+
},
|
|
88
|
+
"$description": "Text on the accent."
|
|
89
|
+
},
|
|
90
|
+
"danger": {
|
|
91
|
+
"$value": {
|
|
92
|
+
"colorSpace": "srgb",
|
|
93
|
+
"components": [
|
|
94
|
+
0.702,
|
|
95
|
+
0.149,
|
|
96
|
+
0.1176
|
|
97
|
+
],
|
|
98
|
+
"hex": "#b3261e"
|
|
99
|
+
},
|
|
100
|
+
"$description": "The surface of a control that destroys."
|
|
101
|
+
},
|
|
102
|
+
"on-danger": {
|
|
103
|
+
"$value": {
|
|
104
|
+
"colorSpace": "srgb",
|
|
105
|
+
"components": [
|
|
106
|
+
1.0,
|
|
107
|
+
1.0,
|
|
108
|
+
1.0
|
|
109
|
+
],
|
|
110
|
+
"hex": "#ffffff"
|
|
111
|
+
},
|
|
112
|
+
"$description": "Text on the danger color."
|
|
113
|
+
},
|
|
114
|
+
"focus": {
|
|
115
|
+
"$value": {
|
|
116
|
+
"colorSpace": "srgb",
|
|
117
|
+
"components": [
|
|
118
|
+
0.102,
|
|
119
|
+
0.3373,
|
|
120
|
+
0.8588
|
|
121
|
+
],
|
|
122
|
+
"hex": "#1a56db"
|
|
123
|
+
},
|
|
124
|
+
"$description": "The focus ring."
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|