@atlaskit/tokens 1.14.2 → 1.15.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 (146) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  3. package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
  4. package/dist/cjs/artifacts/palettes-raw/typography-palette.js +277 -37
  5. package/dist/cjs/artifacts/theme-import-map.js +10 -4
  6. package/dist/cjs/artifacts/themes/atlassian-typography-adg3.js +13 -0
  7. package/dist/cjs/artifacts/themes/atlassian-typography.js +2 -2
  8. package/dist/cjs/artifacts/token-default-values.js +23 -2
  9. package/dist/cjs/artifacts/token-names.js +22 -1
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-typography-adg3.js +1084 -0
  11. package/dist/cjs/artifacts/tokens-raw/atlassian-typography.js +465 -253
  12. package/dist/cjs/entry-points/tokens-raw.js +2 -2
  13. package/dist/cjs/get-token-value.js +1 -1
  14. package/dist/cjs/get-token.js +1 -1
  15. package/dist/cjs/palettes/typography-palette.js +121 -16
  16. package/dist/cjs/theme-config.js +12 -4
  17. package/dist/cjs/tokens/atlassian-typography/font-family.js +11 -2
  18. package/dist/cjs/tokens/atlassian-typography/theme.js +140 -0
  19. package/dist/cjs/tokens/atlassian-typography/utils.js +29 -0
  20. package/dist/cjs/tokens/atlassian-typography-adg3/font-family.js +29 -0
  21. package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.js +8 -8
  22. package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.js +4 -4
  23. package/dist/cjs/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +3 -0
  24. package/dist/cjs/tokens/atlassian-typography-adg3/theme.js +140 -0
  25. package/dist/cjs/tokens/atlassian-typography-adg3/utils.js +29 -0
  26. package/dist/cjs/tokens/default/typography/font-family.js +24 -0
  27. package/dist/cjs/tokens/default/typography/font.js +133 -0
  28. package/dist/cjs/tokens/default/typography/letter-spacing.js +54 -0
  29. package/dist/cjs/tokens/default/typography/line-height.js +8 -0
  30. package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  31. package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
  32. package/dist/es2019/artifacts/palettes-raw/typography-palette.js +277 -37
  33. package/dist/es2019/artifacts/theme-import-map.js +6 -4
  34. package/dist/es2019/artifacts/themes/atlassian-typography-adg3.js +50 -0
  35. package/dist/es2019/artifacts/themes/atlassian-typography.js +23 -21
  36. package/dist/es2019/artifacts/token-default-values.js +23 -2
  37. package/dist/es2019/artifacts/token-names.js +22 -1
  38. package/dist/es2019/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
  39. package/dist/es2019/artifacts/tokens-raw/atlassian-typography.js +465 -253
  40. package/dist/es2019/entry-points/tokens-raw.js +1 -1
  41. package/dist/es2019/get-token-value.js +1 -1
  42. package/dist/es2019/get-token.js +1 -1
  43. package/dist/es2019/palettes/typography-palette.js +123 -17
  44. package/dist/es2019/theme-config.js +12 -4
  45. package/dist/es2019/tokens/atlassian-typography/font-family.js +11 -2
  46. package/dist/es2019/tokens/atlassian-typography/theme.js +133 -0
  47. package/dist/es2019/tokens/atlassian-typography/utils.js +22 -0
  48. package/dist/es2019/tokens/atlassian-typography-adg3/font-family.js +22 -0
  49. package/dist/es2019/tokens/atlassian-typography-adg3/font-size.js +31 -0
  50. package/dist/es2019/tokens/atlassian-typography-adg3/font-weight.js +19 -0
  51. package/dist/es2019/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +3 -0
  52. package/dist/es2019/tokens/atlassian-typography-adg3/theme.js +133 -0
  53. package/dist/es2019/tokens/atlassian-typography-adg3/utils.js +22 -0
  54. package/dist/es2019/tokens/default/typography/font-family.js +24 -0
  55. package/dist/es2019/tokens/default/typography/font.js +126 -0
  56. package/dist/es2019/tokens/default/typography/letter-spacing.js +47 -0
  57. package/dist/es2019/tokens/default/typography/line-height.js +8 -0
  58. package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +2 -2
  59. package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +2 -2
  60. package/dist/esm/artifacts/palettes-raw/typography-palette.js +277 -37
  61. package/dist/esm/artifacts/theme-import-map.js +8 -4
  62. package/dist/esm/artifacts/themes/atlassian-typography-adg3.js +6 -0
  63. package/dist/esm/artifacts/themes/atlassian-typography.js +2 -2
  64. package/dist/esm/artifacts/token-default-values.js +23 -2
  65. package/dist/esm/artifacts/token-names.js +22 -1
  66. package/dist/esm/artifacts/tokens-raw/atlassian-typography-adg3.js +1077 -0
  67. package/dist/esm/artifacts/tokens-raw/atlassian-typography.js +465 -253
  68. package/dist/esm/entry-points/tokens-raw.js +1 -1
  69. package/dist/esm/get-token-value.js +1 -1
  70. package/dist/esm/get-token.js +1 -1
  71. package/dist/esm/palettes/typography-palette.js +121 -16
  72. package/dist/esm/theme-config.js +12 -4
  73. package/dist/esm/tokens/atlassian-typography/font-family.js +11 -2
  74. package/dist/esm/tokens/atlassian-typography/theme.js +133 -0
  75. package/dist/esm/tokens/atlassian-typography/utils.js +22 -0
  76. package/dist/esm/tokens/atlassian-typography-adg3/font-family.js +22 -0
  77. package/dist/esm/tokens/atlassian-typography-adg3/font-size.js +31 -0
  78. package/dist/esm/tokens/atlassian-typography-adg3/font-weight.js +19 -0
  79. package/dist/esm/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.js +3 -0
  80. package/dist/esm/tokens/atlassian-typography-adg3/theme.js +133 -0
  81. package/dist/esm/tokens/atlassian-typography-adg3/utils.js +22 -0
  82. package/dist/esm/tokens/default/typography/font-family.js +24 -0
  83. package/dist/esm/tokens/default/typography/font.js +126 -0
  84. package/dist/esm/tokens/default/typography/letter-spacing.js +47 -0
  85. package/dist/esm/tokens/default/typography/line-height.js +8 -0
  86. package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
  87. package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
  88. package/dist/types/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  89. package/dist/types/artifacts/theme-import-map.d.ts +1 -1
  90. package/dist/types/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
  91. package/dist/types/artifacts/themes/atlassian-typography.d.ts +2 -2
  92. package/dist/types/artifacts/token-default-values.d.ts +23 -2
  93. package/dist/types/artifacts/token-names.d.ts +43 -1
  94. package/dist/types/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
  95. package/dist/types/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
  96. package/dist/types/artifacts/types-internal.d.ts +2 -2
  97. package/dist/types/artifacts/types.d.ts +2 -2
  98. package/dist/types/entry-points/tokens-raw.d.ts +1 -1
  99. package/dist/types/palettes/typography-palette.d.ts +8 -6
  100. package/dist/types/theme-config.d.ts +4 -4
  101. package/dist/types/tokens/atlassian-typography/theme.d.ts +10 -0
  102. package/dist/types/tokens/atlassian-typography/utils.d.ts +4 -0
  103. package/dist/types/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
  104. package/dist/types/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
  105. package/dist/types/tokens/atlassian-typography-adg3/utils.d.ts +4 -0
  106. package/dist/types/tokens/default/typography/font.d.ts +20 -0
  107. package/dist/types/tokens/default/typography/letter-spacing.d.ts +4 -0
  108. package/dist/types/types.d.ts +111 -22
  109. package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -2
  110. package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -2
  111. package/dist/types-ts4.5/artifacts/palettes-raw/typography-palette.d.ts +1 -1
  112. package/dist/types-ts4.5/artifacts/theme-import-map.d.ts +1 -1
  113. package/dist/types-ts4.5/artifacts/themes/atlassian-typography-adg3.d.ts +7 -0
  114. package/dist/types-ts4.5/artifacts/themes/atlassian-typography.d.ts +2 -2
  115. package/dist/types-ts4.5/artifacts/token-default-values.d.ts +23 -2
  116. package/dist/types-ts4.5/artifacts/token-names.d.ts +43 -1
  117. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography-adg3.d.ts +101 -0
  118. package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-typography.d.ts +111 -3
  119. package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
  120. package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
  121. package/dist/types-ts4.5/entry-points/tokens-raw.d.ts +1 -1
  122. package/dist/types-ts4.5/palettes/typography-palette.d.ts +8 -6
  123. package/dist/types-ts4.5/theme-config.d.ts +5 -3
  124. package/dist/types-ts4.5/tokens/atlassian-typography/theme.d.ts +10 -0
  125. package/dist/types-ts4.5/tokens/atlassian-typography/utils.d.ts +4 -0
  126. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/font-family.d.ts +4 -0
  127. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/theme.d.ts +10 -0
  128. package/dist/types-ts4.5/tokens/atlassian-typography-adg3/utils.d.ts +4 -0
  129. package/dist/types-ts4.5/tokens/default/typography/font.d.ts +20 -0
  130. package/dist/types-ts4.5/tokens/default/typography/letter-spacing.d.ts +4 -0
  131. package/dist/types-ts4.5/types.d.ts +111 -22
  132. package/figma/atlassian-typography-adg3.json +150 -0
  133. package/figma/atlassian-typography.json +19 -82
  134. package/package.json +1 -1
  135. package/report.api.md +60 -2
  136. package/tmp/api-report-tmp.d.ts +49 -7
  137. package/dist/es2019/tokens/atlassian-typography/font-size.js +0 -31
  138. package/dist/es2019/tokens/atlassian-typography/font-weight.js +0 -19
  139. package/dist/esm/tokens/atlassian-typography/font-size.js +0 -31
  140. package/dist/esm/tokens/atlassian-typography/font-weight.js +0 -19
  141. /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
  142. /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
  143. /package/dist/types/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
  144. /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-size.d.ts +0 -0
  145. /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/font-weight.d.ts +0 -0
  146. /package/dist/types-ts4.5/tokens/{atlassian-typography → atlassian-typography-adg3}/line-height.d.ts +0 -0
@@ -0,0 +1,22 @@
1
+ const font = {
2
+ font: {
3
+ letterSpacing: {
4
+ '0': {
5
+ value: 'LetterSpacing0'
6
+ },
7
+ '100': {
8
+ value: 'LetterSpacing100'
9
+ },
10
+ '200': {
11
+ value: 'LetterSpacing200'
12
+ },
13
+ '300': {
14
+ value: 'LetterSpacing300'
15
+ },
16
+ '400': {
17
+ value: 'LetterSpacing400'
18
+ }
19
+ }
20
+ }
21
+ };
22
+ export default font;
@@ -16,6 +16,30 @@ const font = {
16
16
  introduced: '0.10.33',
17
17
  description: 'Helpful guidance goes here'
18
18
  }
19
+ },
20
+ code: {
21
+ attributes: {
22
+ group: 'fontFamily',
23
+ state: 'experimental',
24
+ introduced: '1.14.0',
25
+ description: 'Helpful guidance goes here'
26
+ }
27
+ },
28
+ brand: {
29
+ attributes: {
30
+ group: 'fontFamily',
31
+ state: 'experimental',
32
+ introduced: '1.14.0',
33
+ description: 'Helpful guidance goes here'
34
+ }
35
+ },
36
+ product: {
37
+ attributes: {
38
+ group: 'fontFamily',
39
+ state: 'experimental',
40
+ introduced: '1.14.0',
41
+ description: 'Helpful guidance goes here'
42
+ }
19
43
  }
20
44
  }
21
45
  }
@@ -0,0 +1,126 @@
1
+ /**
2
+ *
3
+ * @example
4
+ * ```js
5
+ * {
6
+ * body: {
7
+ * value: {
8
+ * fontWeight: 500,
9
+ * fontSize: "16px",
10
+ * lineHeight: "22px",
11
+ * fontFamily: "Helvetica",
12
+ * fontStyle: "italic"
13
+ * },
14
+ * type: "typography"
15
+ *}
16
+ * ```
17
+ */
18
+ const font = {
19
+ font: {
20
+ code: {
21
+ '[default]': {
22
+ attributes: {
23
+ group: 'typography',
24
+ state: 'experimental',
25
+ introduced: '1.14.0',
26
+ description: 'Used for monospace and code.'
27
+ }
28
+ }
29
+ },
30
+ heading: {
31
+ xxl: {
32
+ attributes: {
33
+ group: 'typography',
34
+ state: 'experimental',
35
+ introduced: '1.14.0',
36
+ description: 'TBD'
37
+ }
38
+ },
39
+ xl: {
40
+ attributes: {
41
+ group: 'typography',
42
+ state: 'experimental',
43
+ introduced: '1.14.0',
44
+ description: 'TBD'
45
+ }
46
+ },
47
+ lg: {
48
+ attributes: {
49
+ group: 'typography',
50
+ state: 'experimental',
51
+ introduced: '1.14.0',
52
+ description: 'TBD'
53
+ }
54
+ },
55
+ md: {
56
+ attributes: {
57
+ group: 'typography',
58
+ state: 'experimental',
59
+ introduced: '1.14.0',
60
+ description: 'TBD'
61
+ }
62
+ },
63
+ sm: {
64
+ attributes: {
65
+ group: 'typography',
66
+ state: 'experimental',
67
+ introduced: '1.14.0',
68
+ description: 'TBD'
69
+ }
70
+ },
71
+ xs: {
72
+ attributes: {
73
+ group: 'typography',
74
+ state: 'experimental',
75
+ introduced: '1.14.0',
76
+ description: 'TBD'
77
+ }
78
+ },
79
+ xxs: {
80
+ attributes: {
81
+ group: 'typography',
82
+ state: 'experimental',
83
+ introduced: '1.14.0',
84
+ description: 'TBD'
85
+ }
86
+ }
87
+ },
88
+ ui: {
89
+ sm: {
90
+ attributes: {
91
+ group: 'typography',
92
+ state: 'experimental',
93
+ introduced: '1.14.0',
94
+ description: 'Single-line non-wrapping supporting text like that in a smaller label.'
95
+ }
96
+ },
97
+ '[default]': {
98
+ attributes: {
99
+ group: 'typography',
100
+ state: 'experimental',
101
+ introduced: '1.14.0',
102
+ description: 'Single-line non-wrapping text like that in a button.'
103
+ }
104
+ }
105
+ },
106
+ body: {
107
+ sm: {
108
+ attributes: {
109
+ group: 'typography',
110
+ state: 'experimental',
111
+ introduced: '1.14.0',
112
+ description: 'Smaller body font.'
113
+ }
114
+ },
115
+ '[default]': {
116
+ attributes: {
117
+ group: 'typography',
118
+ state: 'experimental',
119
+ introduced: '1.14.0',
120
+ description: 'The default body font.'
121
+ }
122
+ }
123
+ }
124
+ }
125
+ };
126
+ export default font;
@@ -0,0 +1,47 @@
1
+ const font = {
2
+ font: {
3
+ letterSpacing: {
4
+ '0': {
5
+ attributes: {
6
+ group: 'letterSpacing',
7
+ state: 'active',
8
+ introduced: '0.10.33',
9
+ description: 'Helpful guidance goes here'
10
+ }
11
+ },
12
+ '100': {
13
+ attributes: {
14
+ group: 'letterSpacing',
15
+ state: 'active',
16
+ introduced: '0.10.33',
17
+ description: 'Helpful guidance goes here'
18
+ }
19
+ },
20
+ '200': {
21
+ attributes: {
22
+ group: 'letterSpacing',
23
+ state: 'active',
24
+ introduced: '0.10.33',
25
+ description: 'Helpful guidance goes here'
26
+ }
27
+ },
28
+ '300': {
29
+ attributes: {
30
+ group: 'letterSpacing',
31
+ state: 'active',
32
+ introduced: '0.10.33',
33
+ description: 'Helpful guidance goes here'
34
+ }
35
+ },
36
+ '400': {
37
+ attributes: {
38
+ group: 'letterSpacing',
39
+ state: 'active',
40
+ introduced: '0.10.33',
41
+ description: 'Helpful guidance goes here'
42
+ }
43
+ }
44
+ }
45
+ }
46
+ };
47
+ export default font;
@@ -1,6 +1,14 @@
1
1
  const font = {
2
2
  font: {
3
3
  lineHeight: {
4
+ '1': {
5
+ attributes: {
6
+ group: 'lineHeight',
7
+ state: 'active',
8
+ introduced: '0.10.33',
9
+ description: 'Used single-line text.'
10
+ }
11
+ },
4
12
  '100': {
5
13
  attributes: {
6
14
  group: 'lineHeight',
@@ -3,14 +3,14 @@
3
3
  *
4
4
  * Token names mapped to their values, used for contrast checking when generating custom themes
5
5
  *
6
- * @codegen <<SignedSource::2d922d82772ca155fb2fe7b5c63dc69a>>
6
+ * @codegen <<SignedSource::5aed53e696137cdd59ece99fb9755c09>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
  var tokenValues = {
10
10
  'color.text.brand': '#579DFF',
11
11
  'elevation.surface.overlay': '#282E33',
12
- 'color.text.selected': '#579DFF',
13
12
  'color.background.selected': '#092957',
13
+ 'color.text.selected': '#579DFF',
14
14
  'color.border.brand': '#579DFF',
15
15
  'color.chart.brand': '#388BFF',
16
16
  'color.text.inverse': '#1D2125'
@@ -3,14 +3,14 @@
3
3
  *
4
4
  * Token names mapped to their values, used for contrast checking when generating custom themes
5
5
  *
6
- * @codegen <<SignedSource::068e846d4121ab9afc08e7a1f99dbb5e>>
6
+ * @codegen <<SignedSource::2e18f7ef8f76f499aeeb6d93e94be25e>>
7
7
  * @codegenCommand yarn build tokens
8
8
  */
9
9
  var tokenValues = {
10
10
  'color.text.brand': '#0C66E4',
11
11
  'elevation.surface.sunken': '#F7F8F9',
12
- 'color.text.selected': '#0C66E4',
13
12
  'color.background.selected': '#E9F2FF',
13
+ 'color.text.selected': '#0C66E4',
14
14
  'color.border.brand': '#0C66E4',
15
15
  'color.chart.brand': '#1D7AFC',
16
16
  'color.text.inverse': '#FFFFFF'