@atlaskit/ds-explorations 0.0.2 → 0.1.1

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 (88) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/components/box.partial.js +217 -82
  3. package/dist/cjs/components/inline.partial.js +120 -0
  4. package/dist/cjs/components/stack.partial.js +112 -0
  5. package/dist/cjs/components/text.partial.js +92 -34
  6. package/dist/cjs/components/types.js +5 -0
  7. package/dist/cjs/constants.js +2 -0
  8. package/dist/cjs/index.js +34 -3
  9. package/dist/cjs/version.json +1 -1
  10. package/dist/es2019/components/box.partial.js +200 -82
  11. package/dist/es2019/components/inline.partial.js +107 -0
  12. package/dist/es2019/components/stack.partial.js +102 -0
  13. package/dist/es2019/components/text.partial.js +80 -34
  14. package/dist/es2019/components/types.js +1 -0
  15. package/dist/es2019/constants.js +2 -0
  16. package/dist/es2019/index.js +4 -1
  17. package/dist/es2019/version.json +1 -1
  18. package/dist/esm/components/box.partial.js +212 -82
  19. package/dist/esm/components/inline.partial.js +106 -0
  20. package/dist/esm/components/stack.partial.js +101 -0
  21. package/dist/esm/components/text.partial.js +89 -33
  22. package/dist/esm/components/types.js +1 -0
  23. package/dist/esm/constants.js +2 -0
  24. package/dist/esm/index.js +4 -1
  25. package/dist/esm/version.json +1 -1
  26. package/dist/types/components/box.partial.d.ts +87 -26
  27. package/dist/types/components/inline.partial.d.ts +52 -0
  28. package/dist/types/components/stack.partial.d.ts +47 -0
  29. package/dist/types/components/text.partial.d.ts +63 -15
  30. package/dist/types/components/types.d.ts +13 -0
  31. package/dist/types/constants.d.ts +2 -0
  32. package/dist/types/index.d.ts +4 -2
  33. package/examples/00-basic.tsx +18 -1
  34. package/examples/01-box.tsx +126 -2
  35. package/examples/02-text.tsx +55 -2
  36. package/examples/03-stack.tsx +125 -0
  37. package/examples/04-inline.tsx +134 -0
  38. package/examples/{03-badge.tsx → 05-badge.tsx} +4 -4
  39. package/examples/{04-section-message.tsx → 06-section-message.tsx} +5 -5
  40. package/examples/{05-comment.tsx → 07-comment.tsx} +10 -8
  41. package/examples/08-lozenge.tsx +29 -0
  42. package/package.json +2 -2
  43. package/report.api.md +457 -4
  44. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +80 -47
  45. package/scripts/codegen-styles.tsx +5 -1
  46. package/scripts/color-codegen-template.tsx +33 -11
  47. package/scripts/spacing-codegen-template.tsx +9 -1
  48. package/src/components/__tests__/unit/box.test.tsx +20 -0
  49. package/src/components/__tests__/unit/inline.test.tsx +43 -0
  50. package/src/components/__tests__/unit/stack.test.tsx +31 -0
  51. package/src/components/__tests__/unit/text.test.tsx +17 -0
  52. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-basic-example-should-match-production-example-1-snap.png +3 -0
  53. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-alignment-should-match-snapshot-1-snap.png +3 -0
  54. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +3 -0
  55. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +3 -0
  56. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +3 -0
  57. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-color-should-match-snapshot-1-snap.png +3 -0
  58. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-color-should-match-snapshot-1-snap.png +3 -0
  59. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-should-match-snapshot-1-snap.png +3 -0
  60. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +3 -0
  61. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +3 -0
  62. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +3 -0
  63. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +3 -0
  64. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-sizes-should-match-snapshot-1-snap.png +3 -0
  65. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-font-weights-should-match-snapshot-1-snap.png +3 -0
  66. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-line-heights-should-match-snapshot-1-snap.png +3 -0
  67. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +3 -0
  68. package/src/components/__tests__/visual-regression/box-snapshot-test.tsx +33 -0
  69. package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +28 -0
  70. package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +28 -0
  71. package/src/components/__tests__/visual-regression/text-snapshot-test.tsx +31 -0
  72. package/src/components/box.partial.tsx +253 -116
  73. package/src/components/inline.partial.tsx +117 -0
  74. package/src/components/stack.partial.tsx +101 -0
  75. package/src/components/text.partial.tsx +109 -35
  76. package/src/components/types.tsx +15 -0
  77. package/src/constants.tsx +2 -0
  78. package/src/index.tsx +4 -1
  79. package/dist/cjs/components/inline.js +0 -45
  80. package/dist/cjs/components/stack.js +0 -33
  81. package/dist/es2019/components/inline.js +0 -31
  82. package/dist/es2019/components/stack.js +0 -22
  83. package/dist/esm/components/inline.js +0 -30
  84. package/dist/esm/components/stack.js +0 -21
  85. package/dist/types/components/inline.d.ts +0 -19
  86. package/dist/types/components/stack.d.ts +0 -16
  87. package/src/components/inline.tsx +0 -49
  88. package/src/components/stack.tsx +0 -30
package/report.api.md CHANGED
@@ -1,10 +1,463 @@
1
- ## API Report File for "@atlaskit/ds-explorations"
1
+ ## API Report File for "@atlaskit/ds-explorations".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
4
6
 
5
7
  ```ts
6
- declare const _default: {};
7
- export default _default;
8
+ import { CSSProperties } from 'react';
9
+ import { ElementType } from 'react';
10
+ import { FC } from 'react';
11
+ import { ForwardRefExoticComponent } from 'react';
12
+ import { HTMLAttributes } from 'react';
13
+ import { ReactNode } from 'react';
14
+ import { RefAttributes } from 'react';
15
+ import { SerializedStyles } from '@emotion/utils';
16
+
17
+ declare type BackgroundColor = keyof typeof backgroundColorMap;
18
+
19
+ declare const backgroundColorMap: {
20
+ disabled: SerializedStyles;
21
+ 'inverse.subtle': SerializedStyles;
22
+ input: SerializedStyles;
23
+ neutral: SerializedStyles;
24
+ 'neutral.subtle': SerializedStyles;
25
+ 'neutral.bold': SerializedStyles;
26
+ 'brand.bold': SerializedStyles;
27
+ selected: SerializedStyles;
28
+ 'selected.bold': SerializedStyles;
29
+ danger: SerializedStyles;
30
+ 'danger.bold': SerializedStyles;
31
+ warning: SerializedStyles;
32
+ 'warning.bold': SerializedStyles;
33
+ success: SerializedStyles;
34
+ 'success.bold': SerializedStyles;
35
+ discovery: SerializedStyles;
36
+ 'discovery.bold': SerializedStyles;
37
+ information: SerializedStyles;
38
+ 'information.bold': SerializedStyles;
39
+ 'color.blanket': SerializedStyles;
40
+ 'color.blanket.selected': SerializedStyles;
41
+ 'color.blanket.danger': SerializedStyles;
42
+ 'elevation.surface': SerializedStyles;
43
+ 'elevation.surface.sunken': SerializedStyles;
44
+ 'elevation.surface.raised': SerializedStyles;
45
+ 'elevation.surface.overlay': SerializedStyles;
46
+ };
47
+
48
+ declare interface BasePrimitiveProps {
49
+ /**
50
+ * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests.
51
+ */
52
+ testId?: string;
53
+ /**
54
+ * Inline styles to be applied to the primitive.
55
+ * Marked as "unsafe" because any CSS properties can be provided here without any extra control or validation, including those that would be better managed by the primitive itself via props.
56
+ * Effectively equivalent to the standard `style` prop but marked with a special name so we can rationalise its usage IN THE FUTURE.
57
+ */
58
+ UNSAFE_style?: CSSProperties;
59
+ }
60
+
61
+ declare type BorderColor = keyof typeof borderColorMap;
62
+
63
+ /**
64
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
65
+ * @codegen <<SignedSource::e3f27406477352f51168b4108558f051>>
66
+ * @codegenId colors
67
+ * @codegenCommand yarn codegen-styles
68
+ * @codegenParams ["border", "background"]
69
+ */
70
+ declare const borderColorMap: {
71
+ 'color.border': SerializedStyles;
72
+ bold: SerializedStyles;
73
+ inverse: SerializedStyles;
74
+ focused: SerializedStyles;
75
+ input: SerializedStyles;
76
+ disabled: SerializedStyles;
77
+ brand: SerializedStyles;
78
+ selected: SerializedStyles;
79
+ danger: SerializedStyles;
80
+ warning: SerializedStyles;
81
+ success: SerializedStyles;
82
+ discovery: SerializedStyles;
83
+ information: SerializedStyles;
84
+ };
85
+
86
+ declare type BorderRadius = keyof typeof borderRadiusMap;
87
+
88
+ declare const borderRadiusMap: {
89
+ normal: SerializedStyles;
90
+ rounded: SerializedStyles;
91
+ badge: SerializedStyles;
92
+ };
93
+
94
+ declare type BorderStyle = keyof typeof borderStyleMap;
95
+
96
+ declare const borderStyleMap: {
97
+ none: SerializedStyles;
98
+ solid: SerializedStyles;
99
+ dashed: SerializedStyles;
100
+ dotted: SerializedStyles;
101
+ };
102
+
103
+ declare type BorderWidth = keyof typeof borderWidthMap;
104
+
105
+ declare const borderWidthMap: {
106
+ '0px': SerializedStyles;
107
+ '1px': SerializedStyles;
108
+ '2px': SerializedStyles;
109
+ '3px': SerializedStyles;
110
+ };
111
+
112
+ declare interface BoxProps
113
+ extends Omit<HTMLAttributes<HTMLElement>, 'style'>,
114
+ BasePrimitiveProps {
115
+ /**
116
+ * The DOM element to render as the Box. Defaults to `div`.
117
+ */
118
+ as?: ElementType;
119
+ /**
120
+ * Elements to be rendered inside the Box.
121
+ */
122
+ children: ReactNode;
123
+ /**
124
+ * Token representing background color with a fallback.
125
+ */
126
+ backgroundColor?: [BackgroundColor, string];
127
+ /**
128
+ * Defines border style.
129
+ */
130
+ borderStyle?: BorderStyle;
131
+ /**
132
+ * Defines border width.
133
+ */
134
+ borderWidth?: BorderWidth;
135
+ /**
136
+ * Token representing border color with a fallback.
137
+ */
138
+ borderColor?: [BorderColor, string];
139
+ /**
140
+ * Defines border radius.
141
+ */
142
+ borderRadius?: BorderRadius;
143
+ /**
144
+ * Defines the main axis direction.
145
+ */
146
+ flexDirection?: FlexDirection;
147
+ /**
148
+ * Used to align children along the cross axis.
149
+ */
150
+ alignItems?: FlexAlignItems;
151
+ /**
152
+ * Used to align children along the main axis.
153
+ */
154
+ justifyContent?: FlexJustifyContent;
155
+ /**
156
+ * Shorthand for `paddingBlock` and `paddingInline` together.
157
+ *
158
+ * @see paddingBlock
159
+ * @see paddingInline
160
+ */
161
+ padding?: GlobalSpacingToken;
162
+ /**
163
+ * Token representing CSS `padding-block`.
164
+ */
165
+ paddingBlock?: GlobalSpacingToken;
166
+ /**
167
+ * Token representing CSS `padding-inline`.
168
+ */
169
+ paddingInline?: GlobalSpacingToken;
170
+ /**
171
+ * Token representing width.
172
+ */
173
+ width?: GlobalSpacingToken;
174
+ /**
175
+ * Token representing height.
176
+ */
177
+ height?: GlobalSpacingToken;
178
+ /**
179
+ * Defines display type and layout. Defaults to `flex`.
180
+ */
181
+ display?: Display;
182
+ }
183
+
184
+ declare type Display = keyof typeof displayMap;
185
+
186
+ declare const displayMap: {
187
+ block: SerializedStyles;
188
+ inline: SerializedStyles;
189
+ flex: SerializedStyles;
190
+ inlineFlex: SerializedStyles;
191
+ };
192
+
193
+ declare type FlexAlignItems = keyof typeof flexAlignItemsMap;
194
+
195
+ declare type FlexAlignItems_2 = keyof typeof flexAlignItemsMap_2;
196
+
197
+ declare type FlexAlignItems_3 = keyof typeof flexAlignItemsMap_3;
198
+
199
+ declare const flexAlignItemsMap: {
200
+ center: SerializedStyles;
201
+ baseline: SerializedStyles;
202
+ flexStart: SerializedStyles;
203
+ flexEnd: SerializedStyles;
204
+ };
205
+
206
+ declare const flexAlignItemsMap_2: {
207
+ center: SerializedStyles;
208
+ baseline: SerializedStyles;
209
+ flexStart: SerializedStyles;
210
+ flexEnd: SerializedStyles;
211
+ };
212
+
213
+ declare const flexAlignItemsMap_3: {
214
+ center: SerializedStyles;
215
+ baseline: SerializedStyles;
216
+ flexStart: SerializedStyles;
217
+ flexEnd: SerializedStyles;
218
+ };
219
+
220
+ declare type FlexDirection = keyof typeof flexDirectionMap;
221
+
222
+ declare const flexDirectionMap: {
223
+ column: SerializedStyles;
224
+ row: SerializedStyles;
225
+ };
226
+
227
+ declare type FlexJustifyContent = keyof typeof flexJustifyContentMap;
228
+
229
+ declare type FlexJustifyContent_2 = keyof typeof flexJustifyContentMap_2;
230
+
231
+ declare type FlexJustifyContent_3 = keyof typeof flexJustifyContentMap_3;
232
+
233
+ declare const flexJustifyContentMap: {
234
+ center: SerializedStyles;
235
+ flexStart: SerializedStyles;
236
+ flexEnd: SerializedStyles;
237
+ };
238
+
239
+ declare const flexJustifyContentMap_2: {
240
+ center: SerializedStyles;
241
+ flexStart: SerializedStyles;
242
+ flexEnd: SerializedStyles;
243
+ };
244
+
245
+ declare const flexJustifyContentMap_3: {
246
+ center: SerializedStyles;
247
+ flexStart: SerializedStyles;
248
+ flexEnd: SerializedStyles;
249
+ };
250
+
251
+ declare type FontSize = keyof typeof fontSizeMap;
252
+
253
+ declare const fontSizeMap: {
254
+ '11': SerializedStyles;
255
+ '12': SerializedStyles;
256
+ '14': SerializedStyles;
257
+ };
258
+
259
+ declare type FontWeight = keyof typeof fontWeightMap;
260
+
261
+ declare const fontWeightMap: {
262
+ '400': SerializedStyles;
263
+ '500': SerializedStyles;
264
+ };
265
+
266
+ declare type GlobalSpacingToken = keyof typeof SPACING_SCALE;
267
+
268
+ declare interface InlineProps extends BasePrimitiveProps {
269
+ /**
270
+ * Used to align children along the cross axis.
271
+ */
272
+ alignItems?: FlexAlignItems_2;
273
+ /**
274
+ * Used to align children along the main axis.
275
+ */
276
+ justifyContent?: FlexJustifyContent_2;
277
+ /**
278
+ * Token representing gap between children.
279
+ */
280
+ gap: GlobalSpacingToken;
281
+ /**
282
+ * Renders a divider between children.
283
+ * If a string is provided it will automatically be wrapped in a `<Text>` component.
284
+ */
285
+ divider?: ReactNode;
286
+ /**
287
+ * Elements to be rendered inside the Inline.
288
+ */
289
+ children: ReactNode;
290
+ }
291
+
292
+ declare type LineHeight = keyof typeof lineHeightMap;
293
+
294
+ declare const lineHeightMap: {
295
+ '12px': SerializedStyles;
296
+ '16px': SerializedStyles;
297
+ '20px': SerializedStyles;
298
+ '24px': SerializedStyles;
299
+ '28px': SerializedStyles;
300
+ '32px': SerializedStyles;
301
+ '40px': SerializedStyles;
302
+ };
303
+
304
+ declare const SPACING_SCALE: {
305
+ 'sp-0': number;
306
+ 'sp-25': number;
307
+ 'sp-50': number;
308
+ 'sp-75': number;
309
+ 'sp-100': number;
310
+ 'sp-200': number;
311
+ 'sp-300': number;
312
+ 'sp-400': number;
313
+ 'sp-500': number;
314
+ 'sp-600': number;
315
+ 'sp-800': number;
316
+ };
317
+
318
+ declare interface StackProps extends BasePrimitiveProps {
319
+ /**
320
+ * Used to align children along the cross axis.
321
+ */
322
+ alignItems?: FlexAlignItems_3;
323
+ /**
324
+ * Used to align children along the main axis.
325
+ */
326
+ justifyContent?: FlexJustifyContent_3;
327
+ /**
328
+ * Token representing gap between children.
329
+ */
330
+ gap: GlobalSpacingToken;
331
+ /**
332
+ * Elements to be rendered inside the Stack.
333
+ */
334
+ children: ReactNode;
335
+ }
336
+
337
+ declare type TextAlign = keyof typeof textAlignMap;
338
+
339
+ declare const textAlignMap: {
340
+ center: SerializedStyles;
341
+ end: SerializedStyles;
342
+ start: SerializedStyles;
343
+ };
344
+
345
+ declare type TextColor = keyof typeof textColorMap;
346
+
347
+ /**
348
+ * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
349
+ * @codegen <<SignedSource::85a0a0bc073c7af8fd63101d6c88d59e>>
350
+ * @codegenId colors
351
+ * @codegenCommand yarn codegen-styles
352
+ * @codegenParams ["text"]
353
+ */
354
+ declare const textColorMap: {
355
+ 'color.text': SerializedStyles;
356
+ subtle: SerializedStyles;
357
+ subtlest: SerializedStyles;
358
+ disabled: SerializedStyles;
359
+ inverse: SerializedStyles;
360
+ brand: SerializedStyles;
361
+ selected: SerializedStyles;
362
+ danger: SerializedStyles;
363
+ warning: SerializedStyles;
364
+ 'warning.inverse': SerializedStyles;
365
+ success: SerializedStyles;
366
+ discovery: SerializedStyles;
367
+ information: SerializedStyles;
368
+ };
369
+
370
+ declare interface TextProps extends BasePrimitiveProps {
371
+ /**
372
+ * HTML tag to be rendered. Defaults to `span`.
373
+ */
374
+ as?:
375
+ | 'span'
376
+ | 'h1'
377
+ | 'h2'
378
+ | 'h3'
379
+ | 'h4'
380
+ | 'h5'
381
+ | 'h6'
382
+ | 'label'
383
+ | 'a'
384
+ | 'ul'
385
+ | 'ol'
386
+ | 'p';
387
+ /**
388
+ * Elements rendered within the Text element
389
+ */
390
+ children: ReactNode;
391
+ /**
392
+ * Text color
393
+ */
394
+ color?: [TextColor, string];
395
+ /**
396
+ * Font size https://developer.mozilla.org/en-US/docs/Web/CSS/font-size
397
+ */
398
+ fontSize?: FontSize;
399
+ /**
400
+ * Font weight https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight
401
+ */
402
+ fontWeight?: FontWeight;
403
+ /**
404
+ * Line height https://developer.mozilla.org/en-US/docs/Web/CSS/line-height
405
+ */
406
+ lineHeight?: LineHeight;
407
+ /**
408
+ * Text align https://developer.mozilla.org/en-US/docs/Web/CSS/text-align
409
+ */
410
+ textAlign?: TextAlign;
411
+ /**
412
+ * For use with `a` link tags.
413
+ */
414
+ href?: string;
415
+ }
416
+
417
+ /**
418
+ * __Box__
419
+ *
420
+ * Box is a primitive component that has the design decisions of the Atlassian Design System baked in.
421
+ * Renders a `div` by default.
422
+ *
423
+ * @internal
424
+ */
425
+ export declare const UNSAFE_Box: ForwardRefExoticComponent<
426
+ BoxProps & RefAttributes<HTMLElement>
427
+ >;
428
+
429
+ /**
430
+ * __Inline__
431
+ *
432
+ * Inline is a primitive component based on flexbox that manages the horizontal layout of direct children.
433
+ * Renders a `div` by default.
434
+ *
435
+ */
436
+ export declare const UNSAFE_Inline: ForwardRefExoticComponent<
437
+ InlineProps & RefAttributes<HTMLDivElement>
438
+ >;
439
+
440
+ /**
441
+ * __Stack__
442
+ *
443
+ * Stack is a primitive component based on flexbox that manages the vertical layout of direct children.
444
+ * Renders a `div` by default.
445
+ *
446
+ */
447
+ export declare const UNSAFE_Stack: ForwardRefExoticComponent<
448
+ StackProps & RefAttributes<HTMLDivElement>
449
+ >;
450
+
451
+ /**
452
+ * __Text__
453
+ *
454
+ * Text is a primitive component that has the Atlassian Design System's design guidelines baked in.
455
+ * This includes considerations for text attributes such as color, font size, font weight, and line height.
456
+ * It renders a `span` by default.
457
+ *
458
+ * @internal
459
+ */
460
+ export declare const UNSAFE_Text: FC<TextProps>;
8
461
 
9
462
  export {};
10
463
  ```
@@ -3,61 +3,94 @@
3
3
  exports[`@atlaskit/design-system-explorations bg styles are generated correctly 1`] = `
4
4
  "const backgroundColorMap = {
5
5
  disabled: css({
6
- backgroundColor: token('color.background.disabled', '#091E420F'),
6
+ backgroundColor: token('color.background.disabled', 'var(--ds-bg-fb)'),
7
7
  }),
8
8
  'inverse.subtle': css({
9
- backgroundColor: token('color.background.inverse.subtle', '#00000029'),
9
+ backgroundColor: token(
10
+ 'color.background.inverse.subtle',
11
+ 'var(--ds-bg-fb)',
12
+ ),
10
13
  }),
11
14
  input: css({
12
- backgroundColor: token('color.background.input', '#FFFFFF'),
15
+ backgroundColor: token('color.background.input', 'var(--ds-bg-fb)'),
13
16
  }),
14
17
  neutral: css({
15
- backgroundColor: token('color.background.neutral', '#091E420F'),
18
+ backgroundColor: token('color.background.neutral', 'var(--ds-bg-fb)'),
16
19
  }),
17
20
  'neutral.subtle': css({
18
- backgroundColor: token('color.background.neutral.subtle', '#00000000'),
21
+ backgroundColor: token(
22
+ 'color.background.neutral.subtle',
23
+ 'var(--ds-bg-fb)',
24
+ ),
19
25
  }),
20
26
  'neutral.bold': css({
21
- backgroundColor: token('color.background.neutral.bold', '#44546F'),
27
+ backgroundColor: token('color.background.neutral.bold', 'var(--ds-bg-fb)'),
22
28
  }),
23
29
  'brand.bold': css({
24
- backgroundColor: token('color.background.brand.bold', '#0C66E4'),
30
+ backgroundColor: token('color.background.brand.bold', 'var(--ds-bg-fb)'),
25
31
  }),
26
32
  selected: css({
27
- backgroundColor: token('color.background.selected', '#E9F2FF'),
33
+ backgroundColor: token('color.background.selected', 'var(--ds-bg-fb)'),
28
34
  }),
29
35
  'selected.bold': css({
30
- backgroundColor: token('color.background.selected.bold', '#0C66E4'),
36
+ backgroundColor: token('color.background.selected.bold', 'var(--ds-bg-fb)'),
31
37
  }),
32
38
  danger: css({
33
- backgroundColor: token('color.background.danger', '#FFEDEB'),
39
+ backgroundColor: token('color.background.danger', 'var(--ds-bg-fb)'),
34
40
  }),
35
41
  'danger.bold': css({
36
- backgroundColor: token('color.background.danger.bold', '#CA3521'),
42
+ backgroundColor: token('color.background.danger.bold', 'var(--ds-bg-fb)'),
37
43
  }),
38
44
  warning: css({
39
- backgroundColor: token('color.background.warning', '#FFF7D6'),
45
+ backgroundColor: token('color.background.warning', 'var(--ds-bg-fb)'),
40
46
  }),
41
47
  'warning.bold': css({
42
- backgroundColor: token('color.background.warning.bold', '#E2B203'),
48
+ backgroundColor: token('color.background.warning.bold', 'var(--ds-bg-fb)'),
43
49
  }),
44
50
  success: css({
45
- backgroundColor: token('color.background.success', '#DFFCF0'),
51
+ backgroundColor: token('color.background.success', 'var(--ds-bg-fb)'),
46
52
  }),
47
53
  'success.bold': css({
48
- backgroundColor: token('color.background.success.bold', '#1F845A'),
54
+ backgroundColor: token('color.background.success.bold', 'var(--ds-bg-fb)'),
49
55
  }),
50
56
  discovery: css({
51
- backgroundColor: token('color.background.discovery', '#F3F0FF'),
57
+ backgroundColor: token('color.background.discovery', 'var(--ds-bg-fb)'),
52
58
  }),
53
59
  'discovery.bold': css({
54
- backgroundColor: token('color.background.discovery.bold', '#6E5DC6'),
60
+ backgroundColor: token(
61
+ 'color.background.discovery.bold',
62
+ 'var(--ds-bg-fb)',
63
+ ),
55
64
  }),
56
65
  information: css({
57
- backgroundColor: token('color.background.information', '#E9F2FF'),
66
+ backgroundColor: token('color.background.information', 'var(--ds-bg-fb)'),
58
67
  }),
59
68
  'information.bold': css({
60
- backgroundColor: token('color.background.information.bold', '#0C66E4'),
69
+ backgroundColor: token(
70
+ 'color.background.information.bold',
71
+ 'var(--ds-bg-fb)',
72
+ ),
73
+ }),
74
+ 'color.blanket': css({
75
+ backgroundColor: token('color.blanket', 'var(--ds-bg-fb)'),
76
+ }),
77
+ 'color.blanket.selected': css({
78
+ backgroundColor: token('color.blanket.selected', 'var(--ds-bg-fb)'),
79
+ }),
80
+ 'color.blanket.danger': css({
81
+ backgroundColor: token('color.blanket.danger', 'var(--ds-bg-fb)'),
82
+ }),
83
+ 'elevation.surface': css({
84
+ backgroundColor: token('elevation.surface', 'var(--ds-bg-fb)'),
85
+ }),
86
+ 'elevation.surface.sunken': css({
87
+ backgroundColor: token('elevation.surface.sunken', 'var(--ds-bg-fb)'),
88
+ }),
89
+ 'elevation.surface.raised': css({
90
+ backgroundColor: token('elevation.surface.raised', 'var(--ds-bg-fb)'),
91
+ }),
92
+ 'elevation.surface.overlay': css({
93
+ backgroundColor: token('elevation.surface.overlay', 'var(--ds-bg-fb)'),
61
94
  }),
62
95
  };
63
96
 
@@ -67,44 +100,44 @@ type BackgroundColor = keyof typeof backgroundColorMap;
67
100
 
68
101
  exports[`@atlaskit/design-system-explorations border styles are generated correctly 1`] = `
69
102
  "const borderColorMap = {
70
- default: css({
71
- borderColor: token('color.border', '#091E4224'),
103
+ 'color.border': css({
104
+ borderColor: token('color.border', 'var(--ds-bo-fb)'),
72
105
  }),
73
106
  bold: css({
74
- borderColor: token('color.border.bold', '#758195'),
107
+ borderColor: token('color.border.bold', 'var(--ds-bo-fb)'),
75
108
  }),
76
109
  inverse: css({
77
- borderColor: token('color.border.inverse', '#FFFFFF'),
110
+ borderColor: token('color.border.inverse', 'var(--ds-bo-fb)'),
78
111
  }),
79
112
  focused: css({
80
- borderColor: token('color.border.focused', '#388BFF'),
113
+ borderColor: token('color.border.focused', 'var(--ds-bo-fb)'),
81
114
  }),
82
115
  input: css({
83
- borderColor: token('color.border.input', '#091E4224'),
116
+ borderColor: token('color.border.input', 'var(--ds-bo-fb)'),
84
117
  }),
85
118
  disabled: css({
86
- borderColor: token('color.border.disabled', '#091E420F'),
119
+ borderColor: token('color.border.disabled', 'var(--ds-bo-fb)'),
87
120
  }),
88
121
  brand: css({
89
- borderColor: token('color.border.brand', '#0C66E4'),
122
+ borderColor: token('color.border.brand', 'var(--ds-bo-fb)'),
90
123
  }),
91
124
  selected: css({
92
- borderColor: token('color.border.selected', '#0C66E4'),
125
+ borderColor: token('color.border.selected', 'var(--ds-bo-fb)'),
93
126
  }),
94
127
  danger: css({
95
- borderColor: token('color.border.danger', '#E34935'),
128
+ borderColor: token('color.border.danger', 'var(--ds-bo-fb)'),
96
129
  }),
97
130
  warning: css({
98
- borderColor: token('color.border.warning', '#D97008'),
131
+ borderColor: token('color.border.warning', 'var(--ds-bo-fb)'),
99
132
  }),
100
133
  success: css({
101
- borderColor: token('color.border.success', '#22A06B'),
134
+ borderColor: token('color.border.success', 'var(--ds-bo-fb)'),
102
135
  }),
103
136
  discovery: css({
104
- borderColor: token('color.border.discovery', '#8270DB'),
137
+ borderColor: token('color.border.discovery', 'var(--ds-bo-fb)'),
105
138
  }),
106
139
  information: css({
107
- borderColor: token('color.border.information', '#1D7AFC'),
140
+ borderColor: token('color.border.information', 'var(--ds-bo-fb)'),
108
141
  }),
109
142
  };
110
143
 
@@ -114,44 +147,44 @@ type BorderColor = keyof typeof borderColorMap;
114
147
 
115
148
  exports[`@atlaskit/design-system-explorations text styles are generated correctly 1`] = `
116
149
  "const textColorMap = {
117
- default: css({
118
- color: token('color.text', '#172B4D'),
150
+ 'color.text': css({
151
+ color: token('color.text', 'var(--ds-co-fb)'),
119
152
  }),
120
153
  subtle: css({
121
- color: token('color.text.subtle', '#44546F'),
154
+ color: token('color.text.subtle', 'var(--ds-co-fb)'),
122
155
  }),
123
156
  subtlest: css({
124
- color: token('color.text.subtlest', '#626F86'),
157
+ color: token('color.text.subtlest', 'var(--ds-co-fb)'),
125
158
  }),
126
159
  disabled: css({
127
- color: token('color.text.disabled', '#8993A5'),
160
+ color: token('color.text.disabled', 'var(--ds-co-fb)'),
128
161
  }),
129
162
  inverse: css({
130
- color: token('color.text.inverse', '#FFFFFF'),
163
+ color: token('color.text.inverse', 'var(--ds-co-fb)'),
131
164
  }),
132
165
  brand: css({
133
- color: token('color.text.brand', '#0C66E4'),
166
+ color: token('color.text.brand', 'var(--ds-co-fb)'),
134
167
  }),
135
168
  selected: css({
136
- color: token('color.text.selected', '#0C66E4'),
169
+ color: token('color.text.selected', 'var(--ds-co-fb)'),
137
170
  }),
138
171
  danger: css({
139
- color: token('color.text.danger', '#AE2A19'),
172
+ color: token('color.text.danger', 'var(--ds-co-fb)'),
140
173
  }),
141
174
  warning: css({
142
- color: token('color.text.warning', '#974F0C'),
175
+ color: token('color.text.warning', 'var(--ds-co-fb)'),
143
176
  }),
144
177
  'warning.inverse': css({
145
- color: token('color.text.warning.inverse', '#172B4D'),
178
+ color: token('color.text.warning.inverse', 'var(--ds-co-fb)'),
146
179
  }),
147
180
  success: css({
148
- color: token('color.text.success', '#216E4E'),
181
+ color: token('color.text.success', 'var(--ds-co-fb)'),
149
182
  }),
150
183
  discovery: css({
151
- color: token('color.text.discovery', '#5E4DB2'),
184
+ color: token('color.text.discovery', 'var(--ds-co-fb)'),
152
185
  }),
153
186
  information: css({
154
- color: token('color.text.information', '#0055CC'),
187
+ color: token('color.text.information', 'var(--ds-co-fb)'),
155
188
  }),
156
189
  };
157
190