@atlaskit/tokens 0.3.0 → 0.5.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 (105) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/README.md +28 -0
  3. package/babel-plugin/package.json +7 -0
  4. package/css/atlassian-dark.css +24 -23
  5. package/css/atlassian-light.css +21 -20
  6. package/dist/cjs/artifacts/rename-mapping.js +23 -0
  7. package/dist/cjs/{tokens → artifacts}/token-default-values.js +22 -21
  8. package/dist/cjs/{tokens → artifacts}/token-names.js +2 -1
  9. package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1786 -0
  10. package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1766 -0
  11. package/dist/cjs/artifacts/types.js +5 -0
  12. package/dist/cjs/{entry-points/token-default-values.js → babel-plugin/index.js} +2 -2
  13. package/dist/cjs/babel-plugin/plugin.js +176 -0
  14. package/dist/cjs/entry-points/rename-mapping.js +1 -1
  15. package/dist/cjs/entry-points/token-names.js +1 -1
  16. package/dist/cjs/figma/synchronize-figma-tokens.js +41 -39
  17. package/dist/cjs/get-token.js +1 -1
  18. package/dist/cjs/index.js +4 -4
  19. package/dist/cjs/tokens/atlassian-dark/utility/utility.js +3 -0
  20. package/dist/cjs/tokens/atlassian-light/utility/utility.js +3 -0
  21. package/dist/cjs/tokens/default/color/accent.js +13 -0
  22. package/dist/cjs/tokens/default/color/background.js +49 -0
  23. package/dist/cjs/tokens/default/color/border.js +2 -0
  24. package/dist/cjs/tokens/default/color/icon-border.js +5 -0
  25. package/dist/cjs/tokens/default/color/overlay.js +2 -0
  26. package/dist/cjs/tokens/default/color/text.js +14 -0
  27. package/dist/cjs/tokens/default/shadow/shadow.js +2 -0
  28. package/dist/cjs/tokens/default/utility/utility.js +10 -2
  29. package/dist/cjs/tokens/palette.js +145 -260
  30. package/dist/cjs/version.json +1 -1
  31. package/dist/es2019/artifacts/rename-mapping.js +16 -0
  32. package/dist/es2019/{tokens → artifacts}/token-default-values.js +22 -21
  33. package/dist/es2019/{tokens → artifacts}/token-names.js +2 -1
  34. package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +1779 -0
  35. package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +1759 -0
  36. package/dist/es2019/artifacts/types.js +1 -0
  37. package/dist/es2019/babel-plugin/index.js +1 -0
  38. package/dist/es2019/babel-plugin/plugin.js +151 -0
  39. package/dist/es2019/entry-points/rename-mapping.js +1 -1
  40. package/dist/es2019/entry-points/token-names.js +1 -1
  41. package/dist/es2019/figma/synchronize-figma-tokens.js +41 -39
  42. package/dist/es2019/get-token.js +1 -1
  43. package/dist/es2019/tokens/atlassian-dark/utility/utility.js +3 -0
  44. package/dist/es2019/tokens/atlassian-light/utility/utility.js +3 -0
  45. package/dist/es2019/tokens/default/color/accent.js +13 -0
  46. package/dist/es2019/tokens/default/color/background.js +49 -0
  47. package/dist/es2019/tokens/default/color/border.js +2 -0
  48. package/dist/es2019/tokens/default/color/icon-border.js +5 -0
  49. package/dist/es2019/tokens/default/color/overlay.js +2 -0
  50. package/dist/es2019/tokens/default/color/text.js +14 -0
  51. package/dist/es2019/tokens/default/shadow/shadow.js +2 -0
  52. package/dist/es2019/tokens/default/utility/utility.js +10 -2
  53. package/dist/es2019/tokens/palette.js +145 -260
  54. package/dist/es2019/version.json +1 -1
  55. package/dist/esm/artifacts/rename-mapping.js +16 -0
  56. package/dist/esm/{tokens → artifacts}/token-default-values.js +22 -21
  57. package/dist/esm/{tokens → artifacts}/token-names.js +2 -1
  58. package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +1779 -0
  59. package/dist/esm/artifacts/tokens-raw/atlassian-light.js +1759 -0
  60. package/dist/esm/artifacts/types.js +1 -0
  61. package/dist/esm/babel-plugin/index.js +1 -0
  62. package/dist/esm/babel-plugin/plugin.js +158 -0
  63. package/dist/esm/entry-points/rename-mapping.js +1 -1
  64. package/dist/esm/entry-points/token-names.js +1 -1
  65. package/dist/esm/figma/synchronize-figma-tokens.js +41 -39
  66. package/dist/esm/get-token.js +1 -1
  67. package/dist/esm/tokens/atlassian-dark/utility/utility.js +3 -0
  68. package/dist/esm/tokens/atlassian-light/utility/utility.js +3 -0
  69. package/dist/esm/tokens/default/color/accent.js +13 -0
  70. package/dist/esm/tokens/default/color/background.js +49 -0
  71. package/dist/esm/tokens/default/color/border.js +2 -0
  72. package/dist/esm/tokens/default/color/icon-border.js +5 -0
  73. package/dist/esm/tokens/default/color/overlay.js +2 -0
  74. package/dist/esm/tokens/default/color/text.js +14 -0
  75. package/dist/esm/tokens/default/shadow/shadow.js +2 -0
  76. package/dist/esm/tokens/default/utility/utility.js +10 -2
  77. package/dist/esm/tokens/palette.js +145 -260
  78. package/dist/esm/version.json +1 -1
  79. package/dist/types/artifacts/rename-mapping.d.ts +21 -0
  80. package/dist/types/{tokens → artifacts}/token-default-values.d.ts +21 -20
  81. package/dist/types/{tokens → artifacts}/token-names.d.ts +2 -0
  82. package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +80 -0
  83. package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +56 -0
  84. package/dist/types/artifacts/types.d.ts +4 -0
  85. package/dist/types/babel-plugin/index.d.ts +1 -0
  86. package/dist/types/babel-plugin/plugin.d.ts +14 -0
  87. package/dist/types/entry-points/babel-plugin.d.ts +1 -0
  88. package/dist/types/entry-points/rename-mapping.d.ts +1 -1
  89. package/dist/types/entry-points/token-names.d.ts +2 -2
  90. package/dist/types/get-token.d.ts +1 -1
  91. package/dist/types/index.d.ts +1 -1
  92. package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +10 -2
  93. package/dist/types/tokens/atlassian-light/utility/utility.d.ts +10 -2
  94. package/dist/types/tokens/default/utility/utility.d.ts +138 -2
  95. package/dist/types/types.d.ts +49 -14
  96. package/package.json +18 -6
  97. package/tokens-browser-extension/atlassian-theme.css +434 -360
  98. package/dist/cjs/tokens/rename-mapping.js +0 -29
  99. package/dist/es2019/entry-points/token-default-values.js +0 -1
  100. package/dist/es2019/tokens/rename-mapping.js +0 -21
  101. package/dist/esm/entry-points/token-default-values.js +0 -1
  102. package/dist/esm/tokens/rename-mapping.js +0 -21
  103. package/dist/types/entry-points/token-default-values.d.ts +0 -1
  104. package/dist/types/tokens/rename-mapping.d.ts +0 -24
  105. package/token-default-values/package.json +0 -7
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- /**
9
- * This file is intended to help create automation on top of renaming of tokens.
10
- *
11
- * When renaming tokens, you must first update the token at its source of truth.
12
- * For example: packages/design-system/tokens/src/tokens/atlassian-dark/color/accent.tsx
13
- *
14
- * That token might go from `color.accentBlueSubtle` to `color.accentBluePrimary`
15
- * which is totally acceptable on its own but for some platform targets, such as Figma,
16
- * we need to provide additional metadata to tell figma that this is a rename and not a removal/addition.
17
- *
18
- * To create a rename mapping:
19
- *
20
- * 1. Get the fully object path, separated by a '.', i.e. color.background.primary
21
- * 2. Create a key value pair to the renameMapping below, with key representing the old token and value representing the new token.
22
- * 3. Update the token at its source of truth
23
- * 4. run `yarn build tokens`
24
- * 5. The artifact containing the automation should now be available in the `/dist` folder. i.e. packages/design-system/tokens/dist/figma/atlassian-light/sync-figma-tokens.js
25
- * 6. After building make sure to remove the mapping from this file before checking it in
26
- */
27
- var renameMapping = {};
28
- var _default = renameMapping;
29
- exports.default = _default;
@@ -1 +0,0 @@
1
- export { default } from '../tokens/token-default-values';
@@ -1,21 +0,0 @@
1
- /**
2
- * This file is intended to help create automation on top of renaming of tokens.
3
- *
4
- * When renaming tokens, you must first update the token at its source of truth.
5
- * For example: packages/design-system/tokens/src/tokens/atlassian-dark/color/accent.tsx
6
- *
7
- * That token might go from `color.accentBlueSubtle` to `color.accentBluePrimary`
8
- * which is totally acceptable on its own but for some platform targets, such as Figma,
9
- * we need to provide additional metadata to tell figma that this is a rename and not a removal/addition.
10
- *
11
- * To create a rename mapping:
12
- *
13
- * 1. Get the fully object path, separated by a '.', i.e. color.background.primary
14
- * 2. Create a key value pair to the renameMapping below, with key representing the old token and value representing the new token.
15
- * 3. Update the token at its source of truth
16
- * 4. run `yarn build tokens`
17
- * 5. The artifact containing the automation should now be available in the `/dist` folder. i.e. packages/design-system/tokens/dist/figma/atlassian-light/sync-figma-tokens.js
18
- * 6. After building make sure to remove the mapping from this file before checking it in
19
- */
20
- const renameMapping = {};
21
- export default renameMapping;
@@ -1 +0,0 @@
1
- export { default } from '../tokens/token-default-values';
@@ -1,21 +0,0 @@
1
- /**
2
- * This file is intended to help create automation on top of renaming of tokens.
3
- *
4
- * When renaming tokens, you must first update the token at its source of truth.
5
- * For example: packages/design-system/tokens/src/tokens/atlassian-dark/color/accent.tsx
6
- *
7
- * That token might go from `color.accentBlueSubtle` to `color.accentBluePrimary`
8
- * which is totally acceptable on its own but for some platform targets, such as Figma,
9
- * we need to provide additional metadata to tell figma that this is a rename and not a removal/addition.
10
- *
11
- * To create a rename mapping:
12
- *
13
- * 1. Get the fully object path, separated by a '.', i.e. color.background.primary
14
- * 2. Create a key value pair to the renameMapping below, with key representing the old token and value representing the new token.
15
- * 3. Update the token at its source of truth
16
- * 4. run `yarn build tokens`
17
- * 5. The artifact containing the automation should now be available in the `/dist` folder. i.e. packages/design-system/tokens/dist/figma/atlassian-light/sync-figma-tokens.js
18
- * 6. After building make sure to remove the mapping from this file before checking it in
19
- */
20
- var renameMapping = {};
21
- export default renameMapping;
@@ -1 +0,0 @@
1
- export { default } from '../tokens/token-default-values';
@@ -1,24 +0,0 @@
1
- import tokens from './token-names';
2
- declare type Token = keyof typeof tokens | string;
3
- declare type RenameMapping = Partial<Record<Token, Token>>;
4
- /**
5
- * This file is intended to help create automation on top of renaming of tokens.
6
- *
7
- * When renaming tokens, you must first update the token at its source of truth.
8
- * For example: packages/design-system/tokens/src/tokens/atlassian-dark/color/accent.tsx
9
- *
10
- * That token might go from `color.accentBlueSubtle` to `color.accentBluePrimary`
11
- * which is totally acceptable on its own but for some platform targets, such as Figma,
12
- * we need to provide additional metadata to tell figma that this is a rename and not a removal/addition.
13
- *
14
- * To create a rename mapping:
15
- *
16
- * 1. Get the fully object path, separated by a '.', i.e. color.background.primary
17
- * 2. Create a key value pair to the renameMapping below, with key representing the old token and value representing the new token.
18
- * 3. Update the token at its source of truth
19
- * 4. run `yarn build tokens`
20
- * 5. The artifact containing the automation should now be available in the `/dist` folder. i.e. packages/design-system/tokens/dist/figma/atlassian-light/sync-figma-tokens.js
21
- * 6. After building make sure to remove the mapping from this file before checking it in
22
- */
23
- declare const renameMapping: RenameMapping;
24
- export default renameMapping;
@@ -1,7 +0,0 @@
1
- {
2
- "name": "@atlaskit/tokens/token-default-values",
3
- "main": "../dist/cjs/entry-points/token-default-values.js",
4
- "module": "../dist/esm/entry-points/token-default-values.js",
5
- "module:es2019": "../dist/es2019/entry-points/token-default-values.js",
6
- "types": "../dist/types/entry-points/token-default-values.d.ts"
7
- }