@atlaskit/tokens 1.20.1 → 1.21.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/artifacts/palettes-raw/spacing-scale.js +136 -1
  3. package/dist/cjs/artifacts/themes/atlassian-spacing.js +2 -2
  4. package/dist/cjs/artifacts/token-default-values.js +10 -1
  5. package/dist/cjs/artifacts/token-names.js +10 -1
  6. package/dist/cjs/artifacts/tokens-raw/atlassian-spacing.js +217 -1
  7. package/dist/cjs/get-token-value.js +1 -1
  8. package/dist/cjs/get-token.js +1 -1
  9. package/dist/cjs/palettes/spacing-scale.js +54 -0
  10. package/dist/cjs/tokens/atlassian-spacing/spacing.js +29 -0
  11. package/dist/cjs/tokens/default/spacing/spacing.js +83 -0
  12. package/dist/es2019/artifacts/palettes-raw/spacing-scale.js +136 -1
  13. package/dist/es2019/artifacts/themes/atlassian-spacing.js +10 -1
  14. package/dist/es2019/artifacts/token-default-values.js +10 -1
  15. package/dist/es2019/artifacts/token-names.js +10 -1
  16. package/dist/es2019/artifacts/tokens-raw/atlassian-spacing.js +217 -1
  17. package/dist/es2019/get-token-value.js +1 -1
  18. package/dist/es2019/get-token.js +1 -1
  19. package/dist/es2019/palettes/spacing-scale.js +54 -0
  20. package/dist/es2019/tokens/atlassian-spacing/spacing.js +29 -0
  21. package/dist/es2019/tokens/default/spacing/spacing.js +83 -0
  22. package/dist/esm/artifacts/palettes-raw/spacing-scale.js +136 -1
  23. package/dist/esm/artifacts/themes/atlassian-spacing.js +2 -2
  24. package/dist/esm/artifacts/token-default-values.js +10 -1
  25. package/dist/esm/artifacts/token-names.js +10 -1
  26. package/dist/esm/artifacts/tokens-raw/atlassian-spacing.js +217 -1
  27. package/dist/esm/get-token-value.js +1 -1
  28. package/dist/esm/get-token.js +1 -1
  29. package/dist/esm/palettes/spacing-scale.js +54 -0
  30. package/dist/esm/tokens/atlassian-spacing/spacing.js +29 -0
  31. package/dist/esm/tokens/default/spacing/spacing.js +83 -0
  32. package/dist/types/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  33. package/dist/types/artifacts/themes/atlassian-spacing.d.ts +2 -2
  34. package/dist/types/artifacts/token-default-values.d.ts +10 -1
  35. package/dist/types/artifacts/token-names.d.ts +19 -1
  36. package/dist/types/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -1
  37. package/dist/types/artifacts/types-internal.d.ts +2 -2
  38. package/dist/types/artifacts/types.d.ts +2 -2
  39. package/dist/types/palettes/spacing-scale.d.ts +54 -0
  40. package/dist/types/types.d.ts +11 -0
  41. package/dist/types-ts4.5/artifacts/palettes-raw/spacing-scale.d.ts +1 -1
  42. package/dist/types-ts4.5/artifacts/themes/atlassian-spacing.d.ts +2 -2
  43. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +10 -1
  44. package/dist/types-ts4.5/artifacts/token-names.d.ts +19 -1
  45. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-spacing.d.ts +1 -1
  46. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  47. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  48. package/dist/types-ts4.5/palettes/spacing-scale.d.ts +54 -0
  49. package/dist/types-ts4.5/types.d.ts +11 -0
  50. package/figma/atlassian-spacing.json +131 -0
  51. package/package.json +1 -1
  52. package/report.api.md +90 -0
  53. package/tmp/api-report-tmp.d.ts +74 -2
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::4cad6a8b4b676f9379fa2d4fca019b0e>>
3
+ * @codegen <<SignedSource::f1c7eb6fca38275b61cb71127efc2f1a>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -213,5 +213,140 @@ const tokens = [{
213
213
  },
214
214
  "name": "space.Space800",
215
215
  "path": ["space", "Space800"]
216
+ }, {
217
+ "value": "-2px",
218
+ "attributes": {
219
+ "group": "spacing"
220
+ },
221
+ "filePath": "src/palettes/spacing-scale.tsx",
222
+ "isSource": true,
223
+ "original": {
224
+ "value": -2,
225
+ "attributes": {
226
+ "group": "spacing"
227
+ }
228
+ },
229
+ "name": "space.SpaceNegative025",
230
+ "path": ["space", "SpaceNegative025"]
231
+ }, {
232
+ "value": "-4px",
233
+ "attributes": {
234
+ "group": "spacing"
235
+ },
236
+ "filePath": "src/palettes/spacing-scale.tsx",
237
+ "isSource": true,
238
+ "original": {
239
+ "value": -4,
240
+ "attributes": {
241
+ "group": "spacing"
242
+ }
243
+ },
244
+ "name": "space.SpaceNegative050",
245
+ "path": ["space", "SpaceNegative050"]
246
+ }, {
247
+ "value": "-6px",
248
+ "attributes": {
249
+ "group": "spacing"
250
+ },
251
+ "filePath": "src/palettes/spacing-scale.tsx",
252
+ "isSource": true,
253
+ "original": {
254
+ "value": -6,
255
+ "attributes": {
256
+ "group": "spacing"
257
+ }
258
+ },
259
+ "name": "space.SpaceNegative075",
260
+ "path": ["space", "SpaceNegative075"]
261
+ }, {
262
+ "value": "-8px",
263
+ "attributes": {
264
+ "group": "spacing"
265
+ },
266
+ "filePath": "src/palettes/spacing-scale.tsx",
267
+ "isSource": true,
268
+ "original": {
269
+ "value": -8,
270
+ "attributes": {
271
+ "group": "spacing"
272
+ }
273
+ },
274
+ "name": "space.SpaceNegative100",
275
+ "path": ["space", "SpaceNegative100"]
276
+ }, {
277
+ "value": "-12px",
278
+ "attributes": {
279
+ "group": "spacing"
280
+ },
281
+ "filePath": "src/palettes/spacing-scale.tsx",
282
+ "isSource": true,
283
+ "original": {
284
+ "value": -12,
285
+ "attributes": {
286
+ "group": "spacing"
287
+ }
288
+ },
289
+ "name": "space.SpaceNegative150",
290
+ "path": ["space", "SpaceNegative150"]
291
+ }, {
292
+ "value": "-16px",
293
+ "attributes": {
294
+ "group": "spacing"
295
+ },
296
+ "filePath": "src/palettes/spacing-scale.tsx",
297
+ "isSource": true,
298
+ "original": {
299
+ "value": -16,
300
+ "attributes": {
301
+ "group": "spacing"
302
+ }
303
+ },
304
+ "name": "space.SpaceNegative200",
305
+ "path": ["space", "SpaceNegative200"]
306
+ }, {
307
+ "value": "-20px",
308
+ "attributes": {
309
+ "group": "spacing"
310
+ },
311
+ "filePath": "src/palettes/spacing-scale.tsx",
312
+ "isSource": true,
313
+ "original": {
314
+ "value": -20,
315
+ "attributes": {
316
+ "group": "spacing"
317
+ }
318
+ },
319
+ "name": "space.SpaceNegative250",
320
+ "path": ["space", "SpaceNegative250"]
321
+ }, {
322
+ "value": "-24px",
323
+ "attributes": {
324
+ "group": "spacing"
325
+ },
326
+ "filePath": "src/palettes/spacing-scale.tsx",
327
+ "isSource": true,
328
+ "original": {
329
+ "value": -24,
330
+ "attributes": {
331
+ "group": "spacing"
332
+ }
333
+ },
334
+ "name": "space.SpaceNegative300",
335
+ "path": ["space", "SpaceNegative300"]
336
+ }, {
337
+ "value": "-32px",
338
+ "attributes": {
339
+ "group": "spacing"
340
+ },
341
+ "filePath": "src/palettes/spacing-scale.tsx",
342
+ "isSource": true,
343
+ "original": {
344
+ "value": -32,
345
+ "attributes": {
346
+ "group": "spacing"
347
+ }
348
+ },
349
+ "name": "space.SpaceNegative400",
350
+ "path": ["space", "SpaceNegative400"]
216
351
  }];
217
352
  export default tokens;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::36f0214aaedb62d3639cb79a9195eaf6>>
3
+ * @codegen <<SignedSource::50b812651f792cc85f9294bc1f28b366>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  export default `
@@ -19,5 +19,14 @@ html[data-theme~="spacing:spacing"] {
19
19
  --ds-space-600: 3rem;
20
20
  --ds-space-800: 4rem;
21
21
  --ds-space-1000: 5rem;
22
+ --ds-space-negative-025: -0.125rem;
23
+ --ds-space-negative-050: -0.25rem;
24
+ --ds-space-negative-075: -0.375rem;
25
+ --ds-space-negative-100: -0.5rem;
26
+ --ds-space-negative-150: -0.75rem;
27
+ --ds-space-negative-200: -1rem;
28
+ --ds-space-negative-250: -1.25rem;
29
+ --ds-space-negative-300: -1.5rem;
30
+ --ds-space-negative-400: -2rem;
22
31
  }
23
32
  `;
@@ -7,7 +7,7 @@
7
7
  * Token names mapped to their value in the default Atlassian themes ('light').
8
8
  * These default values are used by the Babel plugin to optionally provide automatic fallbacks.
9
9
  *
10
- * @codegen <<SignedSource::b5c908d96d2198b69df03d013b3c2b6a>>
10
+ * @codegen <<SignedSource::89d57f1ac024661bf2b7ee3c1e74dfa9>>
11
11
  * @codegenCommand yarn build tokens
12
12
  */
13
13
  const defaultTokenValues = {
@@ -423,6 +423,15 @@ const defaultTokenValues = {
423
423
  'space.600': '3rem',
424
424
  'space.800': '4rem',
425
425
  'space.1000': '5rem',
426
+ 'space.negative.025': '-0.125rem',
427
+ 'space.negative.050': '-0.25rem',
428
+ 'space.negative.075': '-0.375rem',
429
+ 'space.negative.100': '-0.5rem',
430
+ 'space.negative.150': '-0.75rem',
431
+ 'space.negative.200': '-1rem',
432
+ 'space.negative.250': '-1.25rem',
433
+ 'space.negative.300': '-1.5rem',
434
+ 'space.negative.400': '-2rem',
426
435
  'font.body': 'normal 400 0.875rem/1.25rem ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
427
436
  'font.body.lg': 'normal 400 1rem/1.5rem ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
428
437
  'font.body.sm': 'normal 400 0.6875rem/1.25rem ui-sans-serif, "Segoe UI", system-ui, Ubuntu, "Helvetica Neue", sans-serif',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::5688852b9c5bb12cbce375967cb93ef5>>
3
+ * @codegen <<SignedSource::487e60f0791ae39572ec7cc90e77eb13>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = {
@@ -416,6 +416,15 @@ const tokens = {
416
416
  'space.600': '--ds-space-600',
417
417
  'space.800': '--ds-space-800',
418
418
  'space.1000': '--ds-space-1000',
419
+ 'space.negative.025': '--ds-space-negative-025',
420
+ 'space.negative.050': '--ds-space-negative-050',
421
+ 'space.negative.075': '--ds-space-negative-075',
422
+ 'space.negative.100': '--ds-space-negative-100',
423
+ 'space.negative.150': '--ds-space-negative-150',
424
+ 'space.negative.200': '--ds-space-negative-200',
425
+ 'space.negative.250': '--ds-space-negative-250',
426
+ 'space.negative.300': '--ds-space-negative-300',
427
+ 'space.negative.400': '--ds-space-negative-400',
419
428
  'font.body': '--ds-font-body',
420
429
  'font.body.lg': '--ds-font-body-lg',
421
430
  'font.body.sm': '--ds-font-body-sm',
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::93b85a1d24e82271f0bc792e089efef5>>
3
+ * @codegen <<SignedSource::54cdec07bc1ce255f26b8254ca514b76>>
4
4
  * @codegenCommand yarn build tokens
5
5
  */
6
6
  const tokens = [{
@@ -329,5 +329,221 @@ const tokens = [{
329
329
  "name": "space.1000",
330
330
  "path": ["space", "1000"],
331
331
  "cleanName": "space.1000"
332
+ }, {
333
+ "attributes": {
334
+ "group": "spacing",
335
+ "state": "active",
336
+ "suggest": ["-1px", "-3px"],
337
+ "introduced": "1.21.0",
338
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
339
+ },
340
+ "value": "-2px",
341
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
342
+ "isSource": true,
343
+ "original": {
344
+ "attributes": {
345
+ "group": "spacing",
346
+ "state": "active",
347
+ "suggest": ["-1px", "-3px"],
348
+ "introduced": "1.21.0",
349
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
350
+ },
351
+ "value": "SpaceNegative025"
352
+ },
353
+ "name": "space.negative.025",
354
+ "path": ["space", "negative", "025"],
355
+ "cleanName": "space.negative.025"
356
+ }, {
357
+ "attributes": {
358
+ "group": "spacing",
359
+ "state": "active",
360
+ "suggest": ["-3px", "-5px"],
361
+ "introduced": "1.21.0",
362
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
363
+ },
364
+ "value": "-4px",
365
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
366
+ "isSource": true,
367
+ "original": {
368
+ "attributes": {
369
+ "group": "spacing",
370
+ "state": "active",
371
+ "suggest": ["-3px", "-5px"],
372
+ "introduced": "1.21.0",
373
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
374
+ },
375
+ "value": "SpaceNegative050"
376
+ },
377
+ "name": "space.negative.050",
378
+ "path": ["space", "negative", "050"],
379
+ "cleanName": "space.negative.050"
380
+ }, {
381
+ "attributes": {
382
+ "group": "spacing",
383
+ "state": "active",
384
+ "suggest": ["-5px", "-7px"],
385
+ "introduced": "1.21.0",
386
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
387
+ },
388
+ "value": "-6px",
389
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
390
+ "isSource": true,
391
+ "original": {
392
+ "attributes": {
393
+ "group": "spacing",
394
+ "state": "active",
395
+ "suggest": ["-5px", "-7px"],
396
+ "introduced": "1.21.0",
397
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
398
+ },
399
+ "value": "SpaceNegative075"
400
+ },
401
+ "name": "space.negative.075",
402
+ "path": ["space", "negative", "075"],
403
+ "cleanName": "space.negative.075"
404
+ }, {
405
+ "attributes": {
406
+ "group": "spacing",
407
+ "state": "active",
408
+ "suggest": ["-7px", "-9px"],
409
+ "introduced": "1.21.0",
410
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
411
+ },
412
+ "value": "-8px",
413
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
414
+ "isSource": true,
415
+ "original": {
416
+ "attributes": {
417
+ "group": "spacing",
418
+ "state": "active",
419
+ "suggest": ["-7px", "-9px"],
420
+ "introduced": "1.21.0",
421
+ "description": "Use to negate parent whitespace or overlap small pieces of UI."
422
+ },
423
+ "value": "SpaceNegative100"
424
+ },
425
+ "name": "space.negative.100",
426
+ "path": ["space", "negative", "100"],
427
+ "cleanName": "space.negative.100"
428
+ }, {
429
+ "attributes": {
430
+ "group": "spacing",
431
+ "state": "active",
432
+ "suggest": ["-10px", "-11px", "-13px", "-14px"],
433
+ "introduced": "1.21.0",
434
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
435
+ },
436
+ "value": "-12px",
437
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
438
+ "isSource": true,
439
+ "original": {
440
+ "attributes": {
441
+ "group": "spacing",
442
+ "state": "active",
443
+ "suggest": ["-10px", "-11px", "-13px", "-14px"],
444
+ "introduced": "1.21.0",
445
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
446
+ },
447
+ "value": "SpaceNegative150"
448
+ },
449
+ "name": "space.negative.150",
450
+ "path": ["space", "negative", "150"],
451
+ "cleanName": "space.negative.150"
452
+ }, {
453
+ "attributes": {
454
+ "group": "spacing",
455
+ "state": "active",
456
+ "suggest": ["-14px", "-15px", "-17px", "-18px"],
457
+ "introduced": "1.21.0",
458
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
459
+ },
460
+ "value": "-16px",
461
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
462
+ "isSource": true,
463
+ "original": {
464
+ "attributes": {
465
+ "group": "spacing",
466
+ "state": "active",
467
+ "suggest": ["-14px", "-15px", "-17px", "-18px"],
468
+ "introduced": "1.21.0",
469
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
470
+ },
471
+ "value": "SpaceNegative200"
472
+ },
473
+ "name": "space.negative.200",
474
+ "path": ["space", "negative", "200"],
475
+ "cleanName": "space.negative.200"
476
+ }, {
477
+ "attributes": {
478
+ "group": "spacing",
479
+ "state": "active",
480
+ "suggest": ["-19px", "-21px", "-22px", "-23px"],
481
+ "introduced": "1.21.0",
482
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
483
+ },
484
+ "value": "-20px",
485
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
486
+ "isSource": true,
487
+ "original": {
488
+ "attributes": {
489
+ "group": "spacing",
490
+ "state": "active",
491
+ "suggest": ["-19px", "-21px", "-22px", "-23px"],
492
+ "introduced": "1.21.0",
493
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
494
+ },
495
+ "value": "SpaceNegative250"
496
+ },
497
+ "name": "space.negative.250",
498
+ "path": ["space", "negative", "250"],
499
+ "cleanName": "space.negative.250"
500
+ }, {
501
+ "attributes": {
502
+ "group": "spacing",
503
+ "state": "active",
504
+ "suggest": ["-23px", "-25px", "-26px", "-27px", "-28px"],
505
+ "introduced": "1.21.0",
506
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
507
+ },
508
+ "value": "-24px",
509
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
510
+ "isSource": true,
511
+ "original": {
512
+ "attributes": {
513
+ "group": "spacing",
514
+ "state": "active",
515
+ "suggest": ["-23px", "-25px", "-26px", "-27px", "-28px"],
516
+ "introduced": "1.21.0",
517
+ "description": "Use to negate parent whitespace or overlap larger pieces of UI."
518
+ },
519
+ "value": "SpaceNegative300"
520
+ },
521
+ "name": "space.negative.300",
522
+ "path": ["space", "negative", "300"],
523
+ "cleanName": "space.negative.300"
524
+ }, {
525
+ "attributes": {
526
+ "group": "spacing",
527
+ "state": "active",
528
+ "suggest": ["-28px", "-29px", "-30px", "-31px", "-33px", "-34px", "-35px"],
529
+ "introduced": "1.21.0",
530
+ "description": "Use to negate parent whitespace or overlap the largest pieces of UI."
531
+ },
532
+ "value": "-32px",
533
+ "filePath": "src/tokens/atlassian-spacing/spacing.tsx",
534
+ "isSource": true,
535
+ "original": {
536
+ "attributes": {
537
+ "group": "spacing",
538
+ "state": "active",
539
+ "suggest": ["-28px", "-29px", "-30px", "-31px", "-33px", "-34px", "-35px"],
540
+ "introduced": "1.21.0",
541
+ "description": "Use to negate parent whitespace or overlap the largest pieces of UI."
542
+ },
543
+ "value": "SpaceNegative400"
544
+ },
545
+ "name": "space.negative.400",
546
+ "path": ["space", "negative", "400"],
547
+ "cleanName": "space.negative.400"
332
548
  }];
333
549
  export default tokens;
@@ -1,7 +1,7 @@
1
1
  import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  const name = "@atlaskit/tokens";
4
- const version = "1.20.1";
4
+ const version = "1.21.0";
5
5
  /**
6
6
  * Takes a dot-separated token name and and an optional fallback, and returns the current computed CSS value for the
7
7
  * resulting CSS Custom Property.
@@ -2,7 +2,7 @@ import warnOnce from '@atlaskit/ds-lib/warn-once';
2
2
  import tokens from './artifacts/token-names';
3
3
  import { TOKEN_NOT_FOUND_CSS_VAR } from './constants';
4
4
  const name = "@atlaskit/tokens";
5
- const version = "1.20.1";
5
+ const version = "1.21.0";
6
6
  /**
7
7
  * Takes a dot-separated token name and an optional fallback, and returns the CSS custom property for the corresponding token.
8
8
  * This should be used to implement design decisions throughout your application.
@@ -86,6 +86,60 @@ const baseSpacingTokens = {
86
86
  attributes: {
87
87
  group: 'spacing'
88
88
  }
89
+ },
90
+ SpaceNegative025: {
91
+ value: -2,
92
+ attributes: {
93
+ group: 'spacing'
94
+ }
95
+ },
96
+ SpaceNegative050: {
97
+ value: -4,
98
+ attributes: {
99
+ group: 'spacing'
100
+ }
101
+ },
102
+ SpaceNegative075: {
103
+ value: -6,
104
+ attributes: {
105
+ group: 'spacing'
106
+ }
107
+ },
108
+ SpaceNegative100: {
109
+ value: -8,
110
+ attributes: {
111
+ group: 'spacing'
112
+ }
113
+ },
114
+ SpaceNegative150: {
115
+ value: -12,
116
+ attributes: {
117
+ group: 'spacing'
118
+ }
119
+ },
120
+ SpaceNegative200: {
121
+ value: -16,
122
+ attributes: {
123
+ group: 'spacing'
124
+ }
125
+ },
126
+ SpaceNegative250: {
127
+ value: -20,
128
+ attributes: {
129
+ group: 'spacing'
130
+ }
131
+ },
132
+ SpaceNegative300: {
133
+ value: -24,
134
+ attributes: {
135
+ group: 'spacing'
136
+ }
137
+ },
138
+ SpaceNegative400: {
139
+ value: -32,
140
+ attributes: {
141
+ group: 'spacing'
142
+ }
89
143
  }
90
144
  };
91
145
  const spacingPalette = {
@@ -48,6 +48,35 @@ const spacing = {
48
48
  },
49
49
  '1000': {
50
50
  value: 'Space1000'
51
+ },
52
+ negative: {
53
+ '025': {
54
+ value: 'SpaceNegative025'
55
+ },
56
+ '050': {
57
+ value: 'SpaceNegative050'
58
+ },
59
+ '075': {
60
+ value: 'SpaceNegative075'
61
+ },
62
+ '100': {
63
+ value: 'SpaceNegative100'
64
+ },
65
+ '150': {
66
+ value: 'SpaceNegative150'
67
+ },
68
+ '200': {
69
+ value: 'SpaceNegative200'
70
+ },
71
+ '250': {
72
+ value: 'SpaceNegative250'
73
+ },
74
+ '300': {
75
+ value: 'SpaceNegative300'
76
+ },
77
+ '400': {
78
+ value: 'SpaceNegative400'
79
+ }
51
80
  }
52
81
  }
53
82
  };
@@ -125,6 +125,89 @@ const spacing = {
125
125
  introduced: '0.12.0',
126
126
  description: 'Use for the largest pieces of UI and for layout elements.'
127
127
  }
128
+ },
129
+ negative: {
130
+ '025': {
131
+ attributes: {
132
+ group: 'spacing',
133
+ state: 'active',
134
+ suggest: ['-1px', '-3px'],
135
+ introduced: '1.21.0',
136
+ description: 'Use to negate parent whitespace or overlap small pieces of UI.'
137
+ }
138
+ },
139
+ '050': {
140
+ attributes: {
141
+ group: 'spacing',
142
+ state: 'active',
143
+ suggest: ['-3px', '-5px'],
144
+ introduced: '1.21.0',
145
+ description: 'Use to negate parent whitespace or overlap small pieces of UI.'
146
+ }
147
+ },
148
+ '075': {
149
+ attributes: {
150
+ group: 'spacing',
151
+ state: 'active',
152
+ suggest: ['-5px', '-7px'],
153
+ introduced: '1.21.0',
154
+ description: 'Use to negate parent whitespace or overlap small pieces of UI.'
155
+ }
156
+ },
157
+ '100': {
158
+ attributes: {
159
+ group: 'spacing',
160
+ state: 'active',
161
+ suggest: ['-7px', '-9px'],
162
+ introduced: '1.21.0',
163
+ description: 'Use to negate parent whitespace or overlap small pieces of UI.'
164
+ }
165
+ },
166
+ '150': {
167
+ attributes: {
168
+ group: 'spacing',
169
+ state: 'active',
170
+ suggest: ['-10px', '-11px', '-13px', '-14px'],
171
+ introduced: '1.21.0',
172
+ description: 'Use to negate parent whitespace or overlap larger pieces of UI.'
173
+ }
174
+ },
175
+ '200': {
176
+ attributes: {
177
+ group: 'spacing',
178
+ state: 'active',
179
+ suggest: ['-14px', '-15px', '-17px', '-18px'],
180
+ introduced: '1.21.0',
181
+ description: 'Use to negate parent whitespace or overlap larger pieces of UI.'
182
+ }
183
+ },
184
+ '250': {
185
+ attributes: {
186
+ group: 'spacing',
187
+ state: 'active',
188
+ suggest: ['-19px', '-21px', '-22px', '-23px'],
189
+ introduced: '1.21.0',
190
+ description: 'Use to negate parent whitespace or overlap larger pieces of UI.'
191
+ }
192
+ },
193
+ '300': {
194
+ attributes: {
195
+ group: 'spacing',
196
+ state: 'active',
197
+ suggest: ['-23px', '-25px', '-26px', '-27px', '-28px'],
198
+ introduced: '1.21.0',
199
+ description: 'Use to negate parent whitespace or overlap larger pieces of UI.'
200
+ }
201
+ },
202
+ '400': {
203
+ attributes: {
204
+ group: 'spacing',
205
+ state: 'active',
206
+ suggest: ['-28px', '-29px', '-30px', '-31px', '-33px', '-34px', '-35px'],
207
+ introduced: '1.21.0',
208
+ description: 'Use to negate parent whitespace or overlap the largest pieces of UI.'
209
+ }
210
+ }
128
211
  }
129
212
  }
130
213
  };