@skra/tokens 0.5.0 → 0.7.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/README.md +7 -0
- package/brutal/_comp.scss +36 -19
- package/brutal/_density.comfortable.scoped.scss +1 -0
- package/brutal/_density.comfortable.scss +1 -0
- package/brutal/_density.compact.scoped.scss +1 -0
- package/brutal/_density.compact.scss +1 -0
- package/brutal/_theme.dark.scoped.scss +67 -51
- package/brutal/_theme.dark.scss +67 -51
- package/brutal/_theme.scoped.scss +48 -31
- package/brutal/_theme.scss +15 -12
- package/manifests/alert.json +117 -107
- package/manifests/button.json +134 -133
- package/manifests/chip.json +117 -116
- package/manifests/star-rating.json +96 -96
- package/manifests/toast.json +134 -133
- package/package.json +1 -1
- package/skra/_comp.scss +36 -19
- package/skra/_density.comfortable.scss +1 -0
- package/skra/_density.compact.scss +1 -0
- package/skra/_theme.dark.scss +62 -46
- package/skra/_theme.scss +7 -4
package/manifests/chip.json
CHANGED
|
@@ -1,116 +1,117 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://skra-ds/schemas/skin-surface.v1.json",
|
|
3
|
-
"component": "chip",
|
|
4
|
-
"skraVersion": ">=1.0.0",
|
|
5
|
-
"axes": [
|
|
6
|
-
{
|
|
7
|
-
"token": "--skra-comp-chip-background",
|
|
8
|
-
"label": "Chip — background colour (resting)",
|
|
9
|
-
"group": "Surface",
|
|
10
|
-
"type": "color",
|
|
11
|
-
"states": ["default"],
|
|
12
|
-
"scopedBy": ["intent", "emphasis"],
|
|
13
|
-
"constraint": { "oklch": true },
|
|
14
|
-
"overridable": ["overlay", "subtree", "instance"]
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"token": "--skra-comp-chip-foreground",
|
|
18
|
-
"label": "Chip — text/icon/remove-glyph colour (resting)",
|
|
19
|
-
"group": "Surface",
|
|
20
|
-
"type": "color",
|
|
21
|
-
"states": ["default"],
|
|
22
|
-
"scopedBy": ["intent", "emphasis"],
|
|
23
|
-
"constraint": { "oklch": true },
|
|
24
|
-
"overridable": ["overlay", "subtree", "instance"]
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"token": "--skra-comp-chip-border-color",
|
|
28
|
-
"label": "Chip — border colour",
|
|
29
|
-
"group": "Surface",
|
|
30
|
-
"type": "color",
|
|
31
|
-
"states": ["default"],
|
|
32
|
-
"scopedBy": ["intent", "emphasis"],
|
|
33
|
-
"constraint": { "oklch": true },
|
|
34
|
-
"overridable": ["overlay", "subtree"]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"token": "--skra-comp-chip-radius",
|
|
38
|
-
"label": "Chip — corner radius (pill by default)",
|
|
39
|
-
"group": "Surface",
|
|
40
|
-
"type": "dimension",
|
|
41
|
-
"states": ["default"],
|
|
42
|
-
"constraint": { "unit": "rem", "min": 0, "max": 2 },
|
|
43
|
-
"overridable": ["overlay", "subtree"]
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"token": "--skra-comp-chip-shadow",
|
|
47
|
-
"label": "Chip — resting shadow",
|
|
48
|
-
"group": "Surface",
|
|
49
|
-
"type": "shadow",
|
|
50
|
-
"states": ["default"],
|
|
51
|
-
"overridable": ["overlay"]
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"token": "--skra-comp-chip-focus-ring-color",
|
|
55
|
-
"label": "Remove control — focus ring colour on :focus-visible",
|
|
56
|
-
"group": "State",
|
|
57
|
-
"type": "color",
|
|
58
|
-
"states": ["focus-visible"],
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://skra-ds/schemas/skin-surface.v1.json",
|
|
3
|
+
"component": "chip",
|
|
4
|
+
"skraVersion": ">=1.0.0",
|
|
5
|
+
"axes": [
|
|
6
|
+
{
|
|
7
|
+
"token": "--skra-comp-chip-background",
|
|
8
|
+
"label": "Chip — background colour (resting)",
|
|
9
|
+
"group": "Surface",
|
|
10
|
+
"type": "color",
|
|
11
|
+
"states": ["default"],
|
|
12
|
+
"scopedBy": ["intent", "emphasis"],
|
|
13
|
+
"constraint": { "oklch": true },
|
|
14
|
+
"overridable": ["overlay", "subtree", "instance"]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"token": "--skra-comp-chip-foreground",
|
|
18
|
+
"label": "Chip — text/icon/remove-glyph colour (resting)",
|
|
19
|
+
"group": "Surface",
|
|
20
|
+
"type": "color",
|
|
21
|
+
"states": ["default"],
|
|
22
|
+
"scopedBy": ["intent", "emphasis"],
|
|
23
|
+
"constraint": { "oklch": true },
|
|
24
|
+
"overridable": ["overlay", "subtree", "instance"]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"token": "--skra-comp-chip-border-color",
|
|
28
|
+
"label": "Chip — border colour",
|
|
29
|
+
"group": "Surface",
|
|
30
|
+
"type": "color",
|
|
31
|
+
"states": ["default"],
|
|
32
|
+
"scopedBy": ["intent", "emphasis"],
|
|
33
|
+
"constraint": { "oklch": true },
|
|
34
|
+
"overridable": ["overlay", "subtree"]
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"token": "--skra-comp-chip-radius",
|
|
38
|
+
"label": "Chip — corner radius (pill by default)",
|
|
39
|
+
"group": "Surface",
|
|
40
|
+
"type": "dimension",
|
|
41
|
+
"states": ["default"],
|
|
42
|
+
"constraint": { "unit": "rem", "min": 0, "max": 2 },
|
|
43
|
+
"overridable": ["overlay", "subtree"]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"token": "--skra-comp-chip-shadow",
|
|
47
|
+
"label": "Chip — resting shadow",
|
|
48
|
+
"group": "Surface",
|
|
49
|
+
"type": "shadow",
|
|
50
|
+
"states": ["default"],
|
|
51
|
+
"overridable": ["overlay"]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"token": "--skra-comp-chip-focus-ring-color",
|
|
55
|
+
"label": "Remove control — focus ring colour on :focus-visible",
|
|
56
|
+
"group": "State",
|
|
57
|
+
"type": "color",
|
|
58
|
+
"states": ["focus-visible"],
|
|
59
|
+
"scopedBy": ["intent", "emphasis"],
|
|
60
|
+
"constraint": { "oklch": true },
|
|
61
|
+
"overridable": ["overlay"]
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"token": "--skra-comp-chip-focus-ring-width",
|
|
65
|
+
"label": "Remove control — focus ring thickness on :focus-visible",
|
|
66
|
+
"group": "State",
|
|
67
|
+
"type": "dimension",
|
|
68
|
+
"states": ["focus-visible"],
|
|
69
|
+
"constraint": { "unit": "rem", "min": 0.0625, "max": 0.25 },
|
|
70
|
+
"overridable": ["overlay"]
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"token": "--skra-comp-chip-icon-gap",
|
|
74
|
+
"label": "Chip — gap between the leading icon and the label",
|
|
75
|
+
"group": "Spacing",
|
|
76
|
+
"type": "dimension",
|
|
77
|
+
"states": ["default"],
|
|
78
|
+
"constraint": { "unit": "rem", "min": 0, "max": 2 },
|
|
79
|
+
"overridable": ["overlay", "subtree"]
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"token": "--skra-comp-chip-remove-gap",
|
|
83
|
+
"label": "Chip — gap between the label and the remove control",
|
|
84
|
+
"group": "Spacing",
|
|
85
|
+
"type": "dimension",
|
|
86
|
+
"states": ["default"],
|
|
87
|
+
"constraint": { "unit": "rem", "min": 0, "max": 2 },
|
|
88
|
+
"overridable": ["overlay", "subtree"]
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"token": "--skra-comp-chip-remove-size",
|
|
92
|
+
"label": "Chip — remove control hit-area size (WCAG 2.5.8 target; also the host min-block-size)",
|
|
93
|
+
"group": "Spacing",
|
|
94
|
+
"type": "dimension",
|
|
95
|
+
"states": ["default"],
|
|
96
|
+
"constraint": { "unit": "rem", "min": 1, "max": 3 },
|
|
97
|
+
"overridable": ["overlay", "subtree"]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"token": "--skra-comp-chip-motion-duration",
|
|
101
|
+
"label": "Remove control — transition duration",
|
|
102
|
+
"group": "Motion",
|
|
103
|
+
"type": "duration",
|
|
104
|
+
"states": ["default"],
|
|
105
|
+
"constraint": { "unit": "ms" },
|
|
106
|
+
"overridable": ["overlay"]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"token": "--skra-comp-chip-motion-easing",
|
|
110
|
+
"label": "Remove control — transition easing curve",
|
|
111
|
+
"group": "Motion",
|
|
112
|
+
"type": "cubic-bezier",
|
|
113
|
+
"states": ["default"],
|
|
114
|
+
"overridable": ["overlay"]
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://skra-ds/schemas/skin-surface.v1.json",
|
|
3
|
-
"component": "star-rating",
|
|
4
|
-
"skraVersion": ">=1.0.0",
|
|
5
|
-
"axes": [
|
|
6
|
-
{
|
|
7
|
-
"token": "--skra-comp-star-rating-star-color-empty",
|
|
8
|
-
"label": "Star — unselected (empty)
|
|
9
|
-
"group": "Surface",
|
|
10
|
-
"type": "color",
|
|
11
|
-
"states": ["default"],
|
|
12
|
-
"constraint": { "oklch": true },
|
|
13
|
-
"overridable": ["overlay", "subtree", "instance"]
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"token": "--skra-comp-star-rating-star-color-filled",
|
|
17
|
-
"label": "Star — selected / hover-preview glyph colour (the rating accent)",
|
|
18
|
-
"group": "Surface",
|
|
19
|
-
"type": "color",
|
|
20
|
-
"states": ["default"],
|
|
21
|
-
"constraint": { "oklch": true },
|
|
22
|
-
"overridable": ["overlay", "subtree", "instance"]
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"token": "--skra-comp-star-rating-gap",
|
|
26
|
-
"label": "Star rating — gap between stars",
|
|
27
|
-
"group": "Spacing",
|
|
28
|
-
"type": "dimension",
|
|
29
|
-
"states": ["default"],
|
|
30
|
-
"constraint": { "unit": "rem", "min": 0, "max": 1 },
|
|
31
|
-
"overridable": ["overlay", "subtree"]
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"token": "--skra-comp-star-rating-star-size-sm",
|
|
35
|
-
"label": "Star glyph size — size=sm",
|
|
36
|
-
"group": "Spacing",
|
|
37
|
-
"type": "dimension",
|
|
38
|
-
"states": ["default"],
|
|
39
|
-
"constraint": { "unit": "rem", "min": 0.5, "max": 3 },
|
|
40
|
-
"overridable": ["overlay", "subtree"]
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"token": "--skra-comp-star-rating-star-size-md",
|
|
44
|
-
"label": "Star glyph size — size=md (default)",
|
|
45
|
-
"group": "Spacing",
|
|
46
|
-
"type": "dimension",
|
|
47
|
-
"states": ["default"],
|
|
48
|
-
"constraint": { "unit": "rem", "min": 0.5, "max": 3 },
|
|
49
|
-
"overridable": ["overlay", "subtree"]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"token": "--skra-comp-star-rating-star-size-lg",
|
|
53
|
-
"label": "Star glyph size — size=lg",
|
|
54
|
-
"group": "Spacing",
|
|
55
|
-
"type": "dimension",
|
|
56
|
-
"states": ["default"],
|
|
57
|
-
"constraint": { "unit": "rem", "min": 0.5, "max": 3 },
|
|
58
|
-
"overridable": ["overlay", "subtree"]
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"token": "--skra-comp-star-rating-focus-ring-color",
|
|
62
|
-
"label": "Focused star — focus ring colour on :focus-visible",
|
|
63
|
-
"group": "State",
|
|
64
|
-
"type": "color",
|
|
65
|
-
"states": ["focus-visible"],
|
|
66
|
-
"constraint": { "oklch": true },
|
|
67
|
-
"overridable": ["overlay"]
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"token": "--skra-comp-star-rating-focus-ring-width",
|
|
71
|
-
"label": "Focused star — focus ring thickness on :focus-visible",
|
|
72
|
-
"group": "State",
|
|
73
|
-
"type": "dimension",
|
|
74
|
-
"states": ["focus-visible"],
|
|
75
|
-
"constraint": { "unit": "rem", "min": 0.0625, "max": 0.25 },
|
|
76
|
-
"overridable": ["overlay"]
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"token": "--skra-comp-star-rating-motion-duration",
|
|
80
|
-
"label": "Star fill — colour transition duration",
|
|
81
|
-
"group": "Motion",
|
|
82
|
-
"type": "duration",
|
|
83
|
-
"states": ["default"],
|
|
84
|
-
"constraint": { "unit": "ms" },
|
|
85
|
-
"overridable": ["overlay"]
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
"token": "--skra-comp-star-rating-motion-easing",
|
|
89
|
-
"label": "Star fill — colour transition easing curve",
|
|
90
|
-
"group": "Motion",
|
|
91
|
-
"type": "cubic-bezier",
|
|
92
|
-
"states": ["default"],
|
|
93
|
-
"overridable": ["overlay"]
|
|
94
|
-
}
|
|
95
|
-
]
|
|
96
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://skra-ds/schemas/skin-surface.v1.json",
|
|
3
|
+
"component": "star-rating",
|
|
4
|
+
"skraVersion": ">=1.0.0",
|
|
5
|
+
"axes": [
|
|
6
|
+
{
|
|
7
|
+
"token": "--skra-comp-star-rating-star-color-empty",
|
|
8
|
+
"label": "Star — unselected (empty) OUTLINE colour — ≥3:1 vs surface",
|
|
9
|
+
"group": "Surface",
|
|
10
|
+
"type": "color",
|
|
11
|
+
"states": ["default"],
|
|
12
|
+
"constraint": { "oklch": true },
|
|
13
|
+
"overridable": ["overlay", "subtree", "instance"]
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"token": "--skra-comp-star-rating-star-color-filled",
|
|
17
|
+
"label": "Star — selected / hover-preview solid glyph colour (the rating accent) — ≥3:1 vs surface",
|
|
18
|
+
"group": "Surface",
|
|
19
|
+
"type": "color",
|
|
20
|
+
"states": ["default"],
|
|
21
|
+
"constraint": { "oklch": true },
|
|
22
|
+
"overridable": ["overlay", "subtree", "instance"]
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"token": "--skra-comp-star-rating-gap",
|
|
26
|
+
"label": "Star rating — gap between stars",
|
|
27
|
+
"group": "Spacing",
|
|
28
|
+
"type": "dimension",
|
|
29
|
+
"states": ["default"],
|
|
30
|
+
"constraint": { "unit": "rem", "min": 0, "max": 1 },
|
|
31
|
+
"overridable": ["overlay", "subtree"]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"token": "--skra-comp-star-rating-star-size-sm",
|
|
35
|
+
"label": "Star glyph size — size=sm",
|
|
36
|
+
"group": "Spacing",
|
|
37
|
+
"type": "dimension",
|
|
38
|
+
"states": ["default"],
|
|
39
|
+
"constraint": { "unit": "rem", "min": 0.5, "max": 3 },
|
|
40
|
+
"overridable": ["overlay", "subtree"]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"token": "--skra-comp-star-rating-star-size-md",
|
|
44
|
+
"label": "Star glyph size — size=md (default)",
|
|
45
|
+
"group": "Spacing",
|
|
46
|
+
"type": "dimension",
|
|
47
|
+
"states": ["default"],
|
|
48
|
+
"constraint": { "unit": "rem", "min": 0.5, "max": 3 },
|
|
49
|
+
"overridable": ["overlay", "subtree"]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"token": "--skra-comp-star-rating-star-size-lg",
|
|
53
|
+
"label": "Star glyph size — size=lg",
|
|
54
|
+
"group": "Spacing",
|
|
55
|
+
"type": "dimension",
|
|
56
|
+
"states": ["default"],
|
|
57
|
+
"constraint": { "unit": "rem", "min": 0.5, "max": 3 },
|
|
58
|
+
"overridable": ["overlay", "subtree"]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"token": "--skra-comp-star-rating-focus-ring-color",
|
|
62
|
+
"label": "Focused star — focus ring colour on :focus-visible",
|
|
63
|
+
"group": "State",
|
|
64
|
+
"type": "color",
|
|
65
|
+
"states": ["focus-visible"],
|
|
66
|
+
"constraint": { "oklch": true },
|
|
67
|
+
"overridable": ["overlay"]
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"token": "--skra-comp-star-rating-focus-ring-width",
|
|
71
|
+
"label": "Focused star — focus ring thickness on :focus-visible",
|
|
72
|
+
"group": "State",
|
|
73
|
+
"type": "dimension",
|
|
74
|
+
"states": ["focus-visible"],
|
|
75
|
+
"constraint": { "unit": "rem", "min": 0.0625, "max": 0.25 },
|
|
76
|
+
"overridable": ["overlay"]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"token": "--skra-comp-star-rating-motion-duration",
|
|
80
|
+
"label": "Star fill — colour transition duration",
|
|
81
|
+
"group": "Motion",
|
|
82
|
+
"type": "duration",
|
|
83
|
+
"states": ["default"],
|
|
84
|
+
"constraint": { "unit": "ms" },
|
|
85
|
+
"overridable": ["overlay"]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"token": "--skra-comp-star-rating-motion-easing",
|
|
89
|
+
"label": "Star fill — colour transition easing curve",
|
|
90
|
+
"group": "Motion",
|
|
91
|
+
"type": "cubic-bezier",
|
|
92
|
+
"states": ["default"],
|
|
93
|
+
"overridable": ["overlay"]
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|