@primer/primitives 0.0.0-20260504090522 → 0.0.0-20260504090826
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/css/functional/spacing/space.css +6 -6
- package/dist/docs/functional/spacing/space.json +12 -30
- package/dist/fallbacks/functional/spacing/space.json +6 -6
- package/dist/styleLint/functional/spacing/space.json +12 -30
- package/package.json +1 -1
- package/src/tokens/functional/spacing/space.json5 +6 -6
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--space-lg:
|
|
3
|
-
--space-md:
|
|
4
|
-
--space-sm:
|
|
5
|
-
--space-xl:
|
|
6
|
-
--space-xs:
|
|
7
|
-
--space-xxs:
|
|
2
|
+
--space-lg: 16px; /** Spacious spacing for major layout divisions and visual separation between content blocks. */
|
|
3
|
+
--space-md: 12px; /** Relaxed spacing for breathing room and comfortable internal container space. */
|
|
4
|
+
--space-sm: 8px; /** Default spacing for most UI elements. Comfortable visual density for standard component layouts. */
|
|
5
|
+
--space-xl: 24px; /** Expansive spacing for large sections and top-level structure separation. */
|
|
6
|
+
--space-xs: 4px; /** Compact spacing for small badges, tight internal spacing, and minimal breathing room. */
|
|
7
|
+
--space-xxs: 2px; /** Ultra-compact spacing for form field separators and tight visual divisions. */
|
|
8
8
|
}
|
|
@@ -14,10 +14,7 @@
|
|
|
14
14
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
15
15
|
"isSource": true,
|
|
16
16
|
"original": {
|
|
17
|
-
"$value":
|
|
18
|
-
"value": 16,
|
|
19
|
-
"unit": "px"
|
|
20
|
-
},
|
|
17
|
+
"$value": "16px",
|
|
21
18
|
"$type": "dimension",
|
|
22
19
|
"$description": "Spacious spacing for major layout divisions and visual separation between content blocks.",
|
|
23
20
|
"$extensions": {
|
|
@@ -35,7 +32,7 @@
|
|
|
35
32
|
"name": "space-lg",
|
|
36
33
|
"attributes": {},
|
|
37
34
|
"path": ["space", "lg"],
|
|
38
|
-
"value": "
|
|
35
|
+
"value": "16px",
|
|
39
36
|
"type": "dimension",
|
|
40
37
|
"description": "Spacious spacing for major layout divisions and visual separation between content blocks."
|
|
41
38
|
},
|
|
@@ -54,10 +51,7 @@
|
|
|
54
51
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
55
52
|
"isSource": true,
|
|
56
53
|
"original": {
|
|
57
|
-
"$value":
|
|
58
|
-
"value": 12,
|
|
59
|
-
"unit": "px"
|
|
60
|
-
},
|
|
54
|
+
"$value": "12px",
|
|
61
55
|
"$type": "dimension",
|
|
62
56
|
"$description": "Relaxed spacing for breathing room and comfortable internal container space.",
|
|
63
57
|
"$extensions": {
|
|
@@ -75,7 +69,7 @@
|
|
|
75
69
|
"name": "space-md",
|
|
76
70
|
"attributes": {},
|
|
77
71
|
"path": ["space", "md"],
|
|
78
|
-
"value": "
|
|
72
|
+
"value": "12px",
|
|
79
73
|
"type": "dimension",
|
|
80
74
|
"description": "Relaxed spacing for breathing room and comfortable internal container space."
|
|
81
75
|
},
|
|
@@ -94,10 +88,7 @@
|
|
|
94
88
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
95
89
|
"isSource": true,
|
|
96
90
|
"original": {
|
|
97
|
-
"$value":
|
|
98
|
-
"value": 8,
|
|
99
|
-
"unit": "px"
|
|
100
|
-
},
|
|
91
|
+
"$value": "8px",
|
|
101
92
|
"$type": "dimension",
|
|
102
93
|
"$description": "Default spacing for most UI elements. Comfortable visual density for standard component layouts.",
|
|
103
94
|
"$extensions": {
|
|
@@ -115,7 +106,7 @@
|
|
|
115
106
|
"name": "space-sm",
|
|
116
107
|
"attributes": {},
|
|
117
108
|
"path": ["space", "sm"],
|
|
118
|
-
"value": "
|
|
109
|
+
"value": "8px",
|
|
119
110
|
"type": "dimension",
|
|
120
111
|
"description": "Default spacing for most UI elements. Comfortable visual density for standard component layouts."
|
|
121
112
|
},
|
|
@@ -134,10 +125,7 @@
|
|
|
134
125
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
135
126
|
"isSource": true,
|
|
136
127
|
"original": {
|
|
137
|
-
"$value":
|
|
138
|
-
"value": 24,
|
|
139
|
-
"unit": "px"
|
|
140
|
-
},
|
|
128
|
+
"$value": "24px",
|
|
141
129
|
"$type": "dimension",
|
|
142
130
|
"$description": "Expansive spacing for large sections and top-level structure separation.",
|
|
143
131
|
"$extensions": {
|
|
@@ -155,7 +143,7 @@
|
|
|
155
143
|
"name": "space-xl",
|
|
156
144
|
"attributes": {},
|
|
157
145
|
"path": ["space", "xl"],
|
|
158
|
-
"value": "
|
|
146
|
+
"value": "24px",
|
|
159
147
|
"type": "dimension",
|
|
160
148
|
"description": "Expansive spacing for large sections and top-level structure separation."
|
|
161
149
|
},
|
|
@@ -174,10 +162,7 @@
|
|
|
174
162
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
175
163
|
"isSource": true,
|
|
176
164
|
"original": {
|
|
177
|
-
"$value":
|
|
178
|
-
"value": 4,
|
|
179
|
-
"unit": "px"
|
|
180
|
-
},
|
|
165
|
+
"$value": "4px",
|
|
181
166
|
"$type": "dimension",
|
|
182
167
|
"$description": "Compact spacing for small badges, tight internal spacing, and minimal breathing room.",
|
|
183
168
|
"$extensions": {
|
|
@@ -195,7 +180,7 @@
|
|
|
195
180
|
"name": "space-xs",
|
|
196
181
|
"attributes": {},
|
|
197
182
|
"path": ["space", "xs"],
|
|
198
|
-
"value": "
|
|
183
|
+
"value": "4px",
|
|
199
184
|
"type": "dimension",
|
|
200
185
|
"description": "Compact spacing for small badges, tight internal spacing, and minimal breathing room."
|
|
201
186
|
},
|
|
@@ -214,10 +199,7 @@
|
|
|
214
199
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
215
200
|
"isSource": true,
|
|
216
201
|
"original": {
|
|
217
|
-
"$value":
|
|
218
|
-
"value": 2,
|
|
219
|
-
"unit": "px"
|
|
220
|
-
},
|
|
202
|
+
"$value": "2px",
|
|
221
203
|
"$type": "dimension",
|
|
222
204
|
"$description": "Ultra-compact spacing for form field separators and tight visual divisions.",
|
|
223
205
|
"$extensions": {
|
|
@@ -235,7 +217,7 @@
|
|
|
235
217
|
"name": "space-xxs",
|
|
236
218
|
"attributes": {},
|
|
237
219
|
"path": ["space", "xxs"],
|
|
238
|
-
"value": "
|
|
220
|
+
"value": "2px",
|
|
239
221
|
"type": "dimension",
|
|
240
222
|
"description": "Ultra-compact spacing for form field separators and tight visual divisions."
|
|
241
223
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"--space-xxs": "
|
|
3
|
-
"--space-xs": "
|
|
4
|
-
"--space-sm": "
|
|
5
|
-
"--space-md": "
|
|
6
|
-
"--space-lg": "
|
|
7
|
-
"--space-xl": "
|
|
2
|
+
"--space-xxs": "2px",
|
|
3
|
+
"--space-xs": "4px",
|
|
4
|
+
"--space-sm": "8px",
|
|
5
|
+
"--space-md": "12px",
|
|
6
|
+
"--space-lg": "16px",
|
|
7
|
+
"--space-xl": "24px"
|
|
8
8
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"space-lg": {
|
|
3
3
|
"key": "{space.lg}",
|
|
4
|
-
"$value":
|
|
4
|
+
"$value": "16px",
|
|
5
5
|
"$type": "dimension",
|
|
6
6
|
"$description": "Spacious spacing for major layout divisions and visual separation between content blocks.",
|
|
7
7
|
"$extensions": {
|
|
@@ -17,10 +17,7 @@
|
|
|
17
17
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
18
18
|
"isSource": true,
|
|
19
19
|
"original": {
|
|
20
|
-
"$value":
|
|
21
|
-
"value": 16,
|
|
22
|
-
"unit": "px"
|
|
23
|
-
},
|
|
20
|
+
"$value": "16px",
|
|
24
21
|
"$type": "dimension",
|
|
25
22
|
"$description": "Spacious spacing for major layout divisions and visual separation between content blocks.",
|
|
26
23
|
"$extensions": {
|
|
@@ -41,7 +38,7 @@
|
|
|
41
38
|
},
|
|
42
39
|
"space-md": {
|
|
43
40
|
"key": "{space.md}",
|
|
44
|
-
"$value":
|
|
41
|
+
"$value": "12px",
|
|
45
42
|
"$type": "dimension",
|
|
46
43
|
"$description": "Relaxed spacing for breathing room and comfortable internal container space.",
|
|
47
44
|
"$extensions": {
|
|
@@ -57,10 +54,7 @@
|
|
|
57
54
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
58
55
|
"isSource": true,
|
|
59
56
|
"original": {
|
|
60
|
-
"$value":
|
|
61
|
-
"value": 12,
|
|
62
|
-
"unit": "px"
|
|
63
|
-
},
|
|
57
|
+
"$value": "12px",
|
|
64
58
|
"$type": "dimension",
|
|
65
59
|
"$description": "Relaxed spacing for breathing room and comfortable internal container space.",
|
|
66
60
|
"$extensions": {
|
|
@@ -81,7 +75,7 @@
|
|
|
81
75
|
},
|
|
82
76
|
"space-sm": {
|
|
83
77
|
"key": "{space.sm}",
|
|
84
|
-
"$value":
|
|
78
|
+
"$value": "8px",
|
|
85
79
|
"$type": "dimension",
|
|
86
80
|
"$description": "Default spacing for most UI elements. Comfortable visual density for standard component layouts.",
|
|
87
81
|
"$extensions": {
|
|
@@ -97,10 +91,7 @@
|
|
|
97
91
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
98
92
|
"isSource": true,
|
|
99
93
|
"original": {
|
|
100
|
-
"$value":
|
|
101
|
-
"value": 8,
|
|
102
|
-
"unit": "px"
|
|
103
|
-
},
|
|
94
|
+
"$value": "8px",
|
|
104
95
|
"$type": "dimension",
|
|
105
96
|
"$description": "Default spacing for most UI elements. Comfortable visual density for standard component layouts.",
|
|
106
97
|
"$extensions": {
|
|
@@ -121,7 +112,7 @@
|
|
|
121
112
|
},
|
|
122
113
|
"space-xl": {
|
|
123
114
|
"key": "{space.xl}",
|
|
124
|
-
"$value":
|
|
115
|
+
"$value": "24px",
|
|
125
116
|
"$type": "dimension",
|
|
126
117
|
"$description": "Expansive spacing for large sections and top-level structure separation.",
|
|
127
118
|
"$extensions": {
|
|
@@ -137,10 +128,7 @@
|
|
|
137
128
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
138
129
|
"isSource": true,
|
|
139
130
|
"original": {
|
|
140
|
-
"$value":
|
|
141
|
-
"value": 24,
|
|
142
|
-
"unit": "px"
|
|
143
|
-
},
|
|
131
|
+
"$value": "24px",
|
|
144
132
|
"$type": "dimension",
|
|
145
133
|
"$description": "Expansive spacing for large sections and top-level structure separation.",
|
|
146
134
|
"$extensions": {
|
|
@@ -161,7 +149,7 @@
|
|
|
161
149
|
},
|
|
162
150
|
"space-xs": {
|
|
163
151
|
"key": "{space.xs}",
|
|
164
|
-
"$value":
|
|
152
|
+
"$value": "4px",
|
|
165
153
|
"$type": "dimension",
|
|
166
154
|
"$description": "Compact spacing for small badges, tight internal spacing, and minimal breathing room.",
|
|
167
155
|
"$extensions": {
|
|
@@ -177,10 +165,7 @@
|
|
|
177
165
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
178
166
|
"isSource": true,
|
|
179
167
|
"original": {
|
|
180
|
-
"$value":
|
|
181
|
-
"value": 4,
|
|
182
|
-
"unit": "px"
|
|
183
|
-
},
|
|
168
|
+
"$value": "4px",
|
|
184
169
|
"$type": "dimension",
|
|
185
170
|
"$description": "Compact spacing for small badges, tight internal spacing, and minimal breathing room.",
|
|
186
171
|
"$extensions": {
|
|
@@ -201,7 +186,7 @@
|
|
|
201
186
|
},
|
|
202
187
|
"space-xxs": {
|
|
203
188
|
"key": "{space.xxs}",
|
|
204
|
-
"$value":
|
|
189
|
+
"$value": "2px",
|
|
205
190
|
"$type": "dimension",
|
|
206
191
|
"$description": "Ultra-compact spacing for form field separators and tight visual divisions.",
|
|
207
192
|
"$extensions": {
|
|
@@ -217,10 +202,7 @@
|
|
|
217
202
|
"filePath": "src/tokens/functional/spacing/space.json5",
|
|
218
203
|
"isSource": true,
|
|
219
204
|
"original": {
|
|
220
|
-
"$value":
|
|
221
|
-
"value": 2,
|
|
222
|
-
"unit": "px"
|
|
223
|
-
},
|
|
205
|
+
"$value": "2px",
|
|
224
206
|
"$type": "dimension",
|
|
225
207
|
"$description": "Ultra-compact spacing for form field separators and tight visual divisions.",
|
|
226
208
|
"$extensions": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
space: {
|
|
3
3
|
xxs: {
|
|
4
|
-
$value:
|
|
4
|
+
$value: '2px',
|
|
5
5
|
$type: 'dimension',
|
|
6
6
|
$description: 'Ultra-compact spacing for form field separators and tight visual divisions.',
|
|
7
7
|
$extensions: {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
},
|
|
18
18
|
xs: {
|
|
19
|
-
$value:
|
|
19
|
+
$value: '4px',
|
|
20
20
|
$type: 'dimension',
|
|
21
21
|
$description: 'Compact spacing for small badges, tight internal spacing, and minimal breathing room.',
|
|
22
22
|
$extensions: {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
},
|
|
33
33
|
sm: {
|
|
34
|
-
$value:
|
|
34
|
+
$value: '8px',
|
|
35
35
|
$type: 'dimension',
|
|
36
36
|
$description: 'Default spacing for most UI elements. Comfortable visual density for standard component layouts.',
|
|
37
37
|
$extensions: {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
md: {
|
|
49
|
-
$value:
|
|
49
|
+
$value: '12px',
|
|
50
50
|
$type: 'dimension',
|
|
51
51
|
$description: 'Relaxed spacing for breathing room and comfortable internal container space.',
|
|
52
52
|
$extensions: {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
},
|
|
63
63
|
lg: {
|
|
64
|
-
$value:
|
|
64
|
+
$value: '16px',
|
|
65
65
|
$type: 'dimension',
|
|
66
66
|
$description: 'Spacious spacing for major layout divisions and visual separation between content blocks.',
|
|
67
67
|
$extensions: {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
},
|
|
78
78
|
xl: {
|
|
79
|
-
$value:
|
|
79
|
+
$value: '24px',
|
|
80
80
|
$type: 'dimension',
|
|
81
81
|
$description: 'Expansive spacing for large sections and top-level structure separation.',
|
|
82
82
|
$extensions: {
|