@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.
- package/CHANGELOG.md +38 -0
- package/README.md +28 -0
- package/babel-plugin/package.json +7 -0
- package/css/atlassian-dark.css +24 -23
- package/css/atlassian-light.css +21 -20
- package/dist/cjs/artifacts/rename-mapping.js +23 -0
- package/dist/cjs/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/cjs/{tokens → artifacts}/token-names.js +2 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +1786 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +1766 -0
- package/dist/cjs/artifacts/types.js +5 -0
- package/dist/cjs/{entry-points/token-default-values.js → babel-plugin/index.js} +2 -2
- package/dist/cjs/babel-plugin/plugin.js +176 -0
- package/dist/cjs/entry-points/rename-mapping.js +1 -1
- package/dist/cjs/entry-points/token-names.js +1 -1
- package/dist/cjs/figma/synchronize-figma-tokens.js +41 -39
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/cjs/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/cjs/tokens/default/color/accent.js +13 -0
- package/dist/cjs/tokens/default/color/background.js +49 -0
- package/dist/cjs/tokens/default/color/border.js +2 -0
- package/dist/cjs/tokens/default/color/icon-border.js +5 -0
- package/dist/cjs/tokens/default/color/overlay.js +2 -0
- package/dist/cjs/tokens/default/color/text.js +14 -0
- package/dist/cjs/tokens/default/shadow/shadow.js +2 -0
- package/dist/cjs/tokens/default/utility/utility.js +10 -2
- package/dist/cjs/tokens/palette.js +145 -260
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/rename-mapping.js +16 -0
- package/dist/es2019/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/es2019/{tokens → artifacts}/token-names.js +2 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +1779 -0
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +1759 -0
- package/dist/es2019/artifacts/types.js +1 -0
- package/dist/es2019/babel-plugin/index.js +1 -0
- package/dist/es2019/babel-plugin/plugin.js +151 -0
- package/dist/es2019/entry-points/rename-mapping.js +1 -1
- package/dist/es2019/entry-points/token-names.js +1 -1
- package/dist/es2019/figma/synchronize-figma-tokens.js +41 -39
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/es2019/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/es2019/tokens/default/color/accent.js +13 -0
- package/dist/es2019/tokens/default/color/background.js +49 -0
- package/dist/es2019/tokens/default/color/border.js +2 -0
- package/dist/es2019/tokens/default/color/icon-border.js +5 -0
- package/dist/es2019/tokens/default/color/overlay.js +2 -0
- package/dist/es2019/tokens/default/color/text.js +14 -0
- package/dist/es2019/tokens/default/shadow/shadow.js +2 -0
- package/dist/es2019/tokens/default/utility/utility.js +10 -2
- package/dist/es2019/tokens/palette.js +145 -260
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/rename-mapping.js +16 -0
- package/dist/esm/{tokens → artifacts}/token-default-values.js +22 -21
- package/dist/esm/{tokens → artifacts}/token-names.js +2 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +1779 -0
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +1759 -0
- package/dist/esm/artifacts/types.js +1 -0
- package/dist/esm/babel-plugin/index.js +1 -0
- package/dist/esm/babel-plugin/plugin.js +158 -0
- package/dist/esm/entry-points/rename-mapping.js +1 -1
- package/dist/esm/entry-points/token-names.js +1 -1
- package/dist/esm/figma/synchronize-figma-tokens.js +41 -39
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/utility/utility.js +3 -0
- package/dist/esm/tokens/atlassian-light/utility/utility.js +3 -0
- package/dist/esm/tokens/default/color/accent.js +13 -0
- package/dist/esm/tokens/default/color/background.js +49 -0
- package/dist/esm/tokens/default/color/border.js +2 -0
- package/dist/esm/tokens/default/color/icon-border.js +5 -0
- package/dist/esm/tokens/default/color/overlay.js +2 -0
- package/dist/esm/tokens/default/color/text.js +14 -0
- package/dist/esm/tokens/default/shadow/shadow.js +2 -0
- package/dist/esm/tokens/default/utility/utility.js +10 -2
- package/dist/esm/tokens/palette.js +145 -260
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/rename-mapping.d.ts +21 -0
- package/dist/types/{tokens → artifacts}/token-default-values.d.ts +21 -20
- package/dist/types/{tokens → artifacts}/token-names.d.ts +2 -0
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +80 -0
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +56 -0
- package/dist/types/artifacts/types.d.ts +4 -0
- package/dist/types/babel-plugin/index.d.ts +1 -0
- package/dist/types/babel-plugin/plugin.d.ts +14 -0
- package/dist/types/entry-points/babel-plugin.d.ts +1 -0
- package/dist/types/entry-points/rename-mapping.d.ts +1 -1
- package/dist/types/entry-points/token-names.d.ts +2 -2
- package/dist/types/get-token.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +10 -2
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +10 -2
- package/dist/types/tokens/default/utility/utility.d.ts +138 -2
- package/dist/types/types.d.ts +49 -14
- package/package.json +18 -6
- package/tokens-browser-extension/atlassian-theme.css +434 -360
- package/dist/cjs/tokens/rename-mapping.js +0 -29
- package/dist/es2019/entry-points/token-default-values.js +0 -1
- package/dist/es2019/tokens/rename-mapping.js +0 -21
- package/dist/esm/entry-points/token-default-values.js +0 -1
- package/dist/esm/tokens/rename-mapping.js +0 -21
- package/dist/types/entry-points/token-default-values.d.ts +0 -1
- package/dist/types/tokens/rename-mapping.d.ts +0 -24
- 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
|
-
}
|