@atlaskit/tokens 1.12.0 → 1.13.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 +16 -0
- package/dist/cjs/artifacts/atlassian-dark-token-value-for-contrast-check.js +3 -2
- package/dist/cjs/artifacts/atlassian-light-token-value-for-contrast-check.js +3 -2
- package/dist/cjs/artifacts/generated-pairs.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-dark.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-legacy-light.js +2 -2
- package/dist/cjs/artifacts/themes/atlassian-light.js +2 -2
- package/dist/cjs/artifacts/token-default-values.js +7 -1
- package/dist/cjs/artifacts/token-names.js +7 -1
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark.js +137 -5
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-dark.js +137 -5
- package/dist/cjs/artifacts/tokens-raw/atlassian-legacy-light.js +137 -5
- package/dist/cjs/artifacts/tokens-raw/atlassian-light.js +137 -5
- package/dist/cjs/get-token-value.js +1 -1
- package/dist/cjs/get-token.js +1 -1
- package/dist/cjs/tokens/atlassian-dark/color/background.js +22 -0
- package/dist/cjs/tokens/atlassian-legacy-dark/color/background.js +22 -0
- package/dist/cjs/tokens/atlassian-legacy-light/color/background.js +22 -0
- package/dist/cjs/tokens/atlassian-light/color/background.js +22 -0
- package/dist/cjs/tokens/default/color/background.js +54 -2
- package/dist/cjs/utils/generate-custom-color-ramp.js +16 -7
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/artifacts/atlassian-dark-token-value-for-contrast-check.js +3 -2
- package/dist/es2019/artifacts/atlassian-light-token-value-for-contrast-check.js +3 -2
- package/dist/es2019/artifacts/generated-pairs.js +2 -2
- package/dist/es2019/artifacts/themes/atlassian-dark.js +7 -1
- package/dist/es2019/artifacts/themes/atlassian-legacy-dark.js +7 -1
- package/dist/es2019/artifacts/themes/atlassian-legacy-light.js +7 -1
- package/dist/es2019/artifacts/themes/atlassian-light.js +7 -1
- package/dist/es2019/artifacts/token-default-values.js +7 -1
- package/dist/es2019/artifacts/token-names.js +7 -1
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark.js +137 -5
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-dark.js +137 -5
- package/dist/es2019/artifacts/tokens-raw/atlassian-legacy-light.js +137 -5
- package/dist/es2019/artifacts/tokens-raw/atlassian-light.js +137 -5
- package/dist/es2019/get-token-value.js +1 -1
- package/dist/es2019/get-token.js +1 -1
- package/dist/es2019/tokens/atlassian-dark/color/background.js +22 -0
- package/dist/es2019/tokens/atlassian-legacy-dark/color/background.js +22 -0
- package/dist/es2019/tokens/atlassian-legacy-light/color/background.js +22 -0
- package/dist/es2019/tokens/atlassian-light/color/background.js +22 -0
- package/dist/es2019/tokens/default/color/background.js +54 -2
- package/dist/es2019/utils/generate-custom-color-ramp.js +16 -5
- package/dist/es2019/version.json +1 -1
- package/dist/esm/artifacts/atlassian-dark-token-value-for-contrast-check.js +3 -2
- package/dist/esm/artifacts/atlassian-light-token-value-for-contrast-check.js +3 -2
- package/dist/esm/artifacts/generated-pairs.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-legacy-dark.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-legacy-light.js +2 -2
- package/dist/esm/artifacts/themes/atlassian-light.js +2 -2
- package/dist/esm/artifacts/token-default-values.js +7 -1
- package/dist/esm/artifacts/token-names.js +7 -1
- package/dist/esm/artifacts/tokens-raw/atlassian-dark.js +137 -5
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-dark.js +137 -5
- package/dist/esm/artifacts/tokens-raw/atlassian-legacy-light.js +137 -5
- package/dist/esm/artifacts/tokens-raw/atlassian-light.js +137 -5
- package/dist/esm/get-token-value.js +1 -1
- package/dist/esm/get-token.js +1 -1
- package/dist/esm/tokens/atlassian-dark/color/background.js +22 -0
- package/dist/esm/tokens/atlassian-legacy-dark/color/background.js +22 -0
- package/dist/esm/tokens/atlassian-legacy-light/color/background.js +22 -0
- package/dist/esm/tokens/atlassian-light/color/background.js +22 -0
- package/dist/esm/tokens/default/color/background.js +54 -2
- package/dist/esm/utils/generate-custom-color-ramp.js +16 -7
- package/dist/esm/version.json +1 -1
- package/dist/types/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -1
- package/dist/types/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -1
- package/dist/types/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
- package/dist/types/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types/artifacts/token-default-values.d.ts +7 -1
- package/dist/types/artifacts/token-names.d.ts +13 -1
- package/dist/types/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types/artifacts/types-internal.d.ts +2 -2
- package/dist/types/artifacts/types.d.ts +2 -2
- package/dist/types/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types/types.d.ts +10 -0
- package/dist/types-ts4.5/artifacts/atlassian-dark-token-value-for-contrast-check.d.ts +2 -1
- package/dist/types-ts4.5/artifacts/atlassian-light-token-value-for-contrast-check.d.ts +2 -1
- package/dist/types-ts4.5/artifacts/generated-pairs.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/themes/atlassian-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-dark.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-legacy-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/themes/atlassian-light.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/token-default-values.d.ts +7 -1
- package/dist/types-ts4.5/artifacts/token-names.d.ts +13 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-dark.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-legacy-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-light.d.ts +1 -1
- package/dist/types-ts4.5/artifacts/types-internal.d.ts +2 -2
- package/dist/types-ts4.5/artifacts/types.d.ts +2 -2
- package/dist/types-ts4.5/tokens/atlassian-dark/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/atlassian-light/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/tokens/default/utility/utility.d.ts +1 -1
- package/dist/types-ts4.5/types.d.ts +10 -0
- package/figma/atlassian-dark.json +56 -2
- package/figma/atlassian-legacy-dark.json +56 -2
- package/figma/atlassian-legacy-light.json +56 -2
- package/figma/atlassian-light.json +56 -2
- package/package.json +2 -2
- package/report.api.md +24 -0
- package/dist/cjs/artifacts/tokens-raw/atlassian-dark-iteration.js +0 -902
- package/dist/es2019/artifacts/tokens-raw/atlassian-dark-iteration.js +0 -895
- package/dist/esm/artifacts/tokens-raw/atlassian-dark-iteration.js +0 -895
- package/dist/types/artifacts/tokens-raw/atlassian-dark-iteration.d.ts +0 -91
- package/dist/types-ts4.5/artifacts/tokens-raw/atlassian-dark-iteration.d.ts +0 -91
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::8b7aab21b157bced2314e03774c8445e>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -3127,6 +3127,72 @@ const tokens = [{
|
|
|
3127
3127
|
"name": "color.background.selected.bold.pressed",
|
|
3128
3128
|
"path": ["color", "background", "selected", "bold", "pressed"],
|
|
3129
3129
|
"cleanName": "color.background.selected.bold.pressed"
|
|
3130
|
+
}, {
|
|
3131
|
+
"attributes": {
|
|
3132
|
+
"group": "paint",
|
|
3133
|
+
"state": "active",
|
|
3134
|
+
"introduced": "1.13.0",
|
|
3135
|
+
"description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
|
|
3136
|
+
},
|
|
3137
|
+
"value": "#B3D4FF",
|
|
3138
|
+
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
3139
|
+
"isSource": true,
|
|
3140
|
+
"original": {
|
|
3141
|
+
"attributes": {
|
|
3142
|
+
"group": "paint",
|
|
3143
|
+
"state": "active",
|
|
3144
|
+
"introduced": "1.13.0",
|
|
3145
|
+
"description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
|
|
3146
|
+
},
|
|
3147
|
+
"value": "B75"
|
|
3148
|
+
},
|
|
3149
|
+
"name": "color.background.brand.subtlest.[default]",
|
|
3150
|
+
"path": ["color", "background", "brand", "subtlest", "[default]"],
|
|
3151
|
+
"cleanName": "color.background.brand.subtlest"
|
|
3152
|
+
}, {
|
|
3153
|
+
"attributes": {
|
|
3154
|
+
"group": "paint",
|
|
3155
|
+
"state": "active",
|
|
3156
|
+
"introduced": "1.13.0",
|
|
3157
|
+
"description": "Hovered state of color.background.brand.subtlest."
|
|
3158
|
+
},
|
|
3159
|
+
"value": "#DEEBFF",
|
|
3160
|
+
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
3161
|
+
"isSource": true,
|
|
3162
|
+
"original": {
|
|
3163
|
+
"attributes": {
|
|
3164
|
+
"group": "paint",
|
|
3165
|
+
"state": "active",
|
|
3166
|
+
"introduced": "1.13.0",
|
|
3167
|
+
"description": "Hovered state of color.background.brand.subtlest."
|
|
3168
|
+
},
|
|
3169
|
+
"value": "B50"
|
|
3170
|
+
},
|
|
3171
|
+
"name": "color.background.brand.subtlest.hovered",
|
|
3172
|
+
"path": ["color", "background", "brand", "subtlest", "hovered"],
|
|
3173
|
+
"cleanName": "color.background.brand.subtlest.hovered"
|
|
3174
|
+
}, {
|
|
3175
|
+
"attributes": {
|
|
3176
|
+
"group": "paint",
|
|
3177
|
+
"state": "active",
|
|
3178
|
+
"introduced": "1.13.0",
|
|
3179
|
+
"description": "Pressed state of color.background.brand.subtlest"
|
|
3180
|
+
},
|
|
3181
|
+
"value": "#4C9AFF",
|
|
3182
|
+
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
3183
|
+
"isSource": true,
|
|
3184
|
+
"original": {
|
|
3185
|
+
"attributes": {
|
|
3186
|
+
"group": "paint",
|
|
3187
|
+
"state": "active",
|
|
3188
|
+
"introduced": "1.13.0",
|
|
3189
|
+
"description": "Pressed state of color.background.brand.subtlest"
|
|
3190
|
+
},
|
|
3191
|
+
"value": "B100"
|
|
3192
|
+
},
|
|
3193
|
+
"name": "color.background.brand.subtlest.pressed",
|
|
3194
|
+
"path": ["color", "background", "brand", "subtlest", "pressed"],
|
|
3195
|
+
"cleanName": "color.background.brand.subtlest.pressed"
|
|
3130
3196
|
}, {
|
|
3131
3197
|
"attributes": {
|
|
3132
3198
|
"group": "paint",
|
|
@@ -3154,7 +3220,7 @@ const tokens = [{
|
|
|
3154
3220
|
"group": "paint",
|
|
3155
3221
|
"state": "active",
|
|
3156
3222
|
"introduced": "0.6.0",
|
|
3157
|
-
"description": "Hovered state of color.background.brand.bold"
|
|
3223
|
+
"description": "Hovered state of color.background.brand.bold."
|
|
3158
3224
|
},
|
|
3159
3225
|
"value": "#0065FF",
|
|
3160
3226
|
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
@@ -3164,7 +3230,7 @@ const tokens = [{
|
|
|
3164
3230
|
"group": "paint",
|
|
3165
3231
|
"state": "active",
|
|
3166
3232
|
"introduced": "0.6.0",
|
|
3167
|
-
"description": "Hovered state of color.background.brand.bold"
|
|
3233
|
+
"description": "Hovered state of color.background.brand.bold."
|
|
3168
3234
|
},
|
|
3169
3235
|
"value": "B300"
|
|
3170
3236
|
},
|
|
@@ -3176,7 +3242,7 @@ const tokens = [{
|
|
|
3176
3242
|
"group": "paint",
|
|
3177
3243
|
"state": "active",
|
|
3178
3244
|
"introduced": "0.6.0",
|
|
3179
|
-
"description": "Pressed state of color.background.brand.bold"
|
|
3245
|
+
"description": "Pressed state of color.background.brand.bold."
|
|
3180
3246
|
},
|
|
3181
3247
|
"value": "#0747A6",
|
|
3182
3248
|
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
@@ -3186,13 +3252,79 @@ const tokens = [{
|
|
|
3186
3252
|
"group": "paint",
|
|
3187
3253
|
"state": "active",
|
|
3188
3254
|
"introduced": "0.6.0",
|
|
3189
|
-
"description": "Pressed state of color.background.brand.bold"
|
|
3255
|
+
"description": "Pressed state of color.background.brand.bold."
|
|
3190
3256
|
},
|
|
3191
3257
|
"value": "B500"
|
|
3192
3258
|
},
|
|
3193
3259
|
"name": "color.background.brand.bold.pressed",
|
|
3194
3260
|
"path": ["color", "background", "brand", "bold", "pressed"],
|
|
3195
3261
|
"cleanName": "color.background.brand.bold.pressed"
|
|
3262
|
+
}, {
|
|
3263
|
+
"attributes": {
|
|
3264
|
+
"group": "paint",
|
|
3265
|
+
"state": "active",
|
|
3266
|
+
"introduced": "1.13.0",
|
|
3267
|
+
"description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
|
|
3268
|
+
},
|
|
3269
|
+
"value": "#0747A6",
|
|
3270
|
+
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
3271
|
+
"isSource": true,
|
|
3272
|
+
"original": {
|
|
3273
|
+
"attributes": {
|
|
3274
|
+
"group": "paint",
|
|
3275
|
+
"state": "active",
|
|
3276
|
+
"introduced": "1.13.0",
|
|
3277
|
+
"description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
|
|
3278
|
+
},
|
|
3279
|
+
"value": "B500"
|
|
3280
|
+
},
|
|
3281
|
+
"name": "color.background.brand.boldest.[default]",
|
|
3282
|
+
"path": ["color", "background", "brand", "boldest", "[default]"],
|
|
3283
|
+
"cleanName": "color.background.brand.boldest"
|
|
3284
|
+
}, {
|
|
3285
|
+
"attributes": {
|
|
3286
|
+
"group": "paint",
|
|
3287
|
+
"state": "active",
|
|
3288
|
+
"introduced": "1.13.0",
|
|
3289
|
+
"description": "Hovered state of color.background.brand.boldest."
|
|
3290
|
+
},
|
|
3291
|
+
"value": "#0052CC",
|
|
3292
|
+
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
3293
|
+
"isSource": true,
|
|
3294
|
+
"original": {
|
|
3295
|
+
"attributes": {
|
|
3296
|
+
"group": "paint",
|
|
3297
|
+
"state": "active",
|
|
3298
|
+
"introduced": "1.13.0",
|
|
3299
|
+
"description": "Hovered state of color.background.brand.boldest."
|
|
3300
|
+
},
|
|
3301
|
+
"value": "B400"
|
|
3302
|
+
},
|
|
3303
|
+
"name": "color.background.brand.boldest.hovered",
|
|
3304
|
+
"path": ["color", "background", "brand", "boldest", "hovered"],
|
|
3305
|
+
"cleanName": "color.background.brand.boldest.hovered"
|
|
3306
|
+
}, {
|
|
3307
|
+
"attributes": {
|
|
3308
|
+
"group": "paint",
|
|
3309
|
+
"state": "active",
|
|
3310
|
+
"introduced": "1.13.0",
|
|
3311
|
+
"description": "Pressed state of color.background.brand.boldest."
|
|
3312
|
+
},
|
|
3313
|
+
"value": "#0747A6",
|
|
3314
|
+
"filePath": "src/tokens/atlassian-legacy-light/color/background.tsx",
|
|
3315
|
+
"isSource": true,
|
|
3316
|
+
"original": {
|
|
3317
|
+
"attributes": {
|
|
3318
|
+
"group": "paint",
|
|
3319
|
+
"state": "active",
|
|
3320
|
+
"introduced": "1.13.0",
|
|
3321
|
+
"description": "Pressed state of color.background.brand.boldest."
|
|
3322
|
+
},
|
|
3323
|
+
"value": "B500"
|
|
3324
|
+
},
|
|
3325
|
+
"name": "color.background.brand.boldest.pressed",
|
|
3326
|
+
"path": ["color", "background", "brand", "boldest", "pressed"],
|
|
3327
|
+
"cleanName": "color.background.brand.boldest.pressed"
|
|
3196
3328
|
}, {
|
|
3197
3329
|
"attributes": {
|
|
3198
3330
|
"group": "paint",
|
|
@@ -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::
|
|
3
|
+
* @codegen <<SignedSource::c96324369c8a09e129803eff1f33d1e8>>
|
|
4
4
|
* @codegenCommand yarn build tokens
|
|
5
5
|
*/
|
|
6
6
|
const tokens = [{
|
|
@@ -3127,6 +3127,72 @@ const tokens = [{
|
|
|
3127
3127
|
"name": "color.background.selected.bold.pressed",
|
|
3128
3128
|
"path": ["color", "background", "selected", "bold", "pressed"],
|
|
3129
3129
|
"cleanName": "color.background.selected.bold.pressed"
|
|
3130
|
+
}, {
|
|
3131
|
+
"attributes": {
|
|
3132
|
+
"group": "paint",
|
|
3133
|
+
"state": "active",
|
|
3134
|
+
"introduced": "1.13.0",
|
|
3135
|
+
"description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
|
|
3136
|
+
},
|
|
3137
|
+
"value": "#E9F2FF",
|
|
3138
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
3139
|
+
"isSource": true,
|
|
3140
|
+
"original": {
|
|
3141
|
+
"attributes": {
|
|
3142
|
+
"group": "paint",
|
|
3143
|
+
"state": "active",
|
|
3144
|
+
"introduced": "1.13.0",
|
|
3145
|
+
"description": "Use for the background of elements used to reinforce our brand, but with less emphasis."
|
|
3146
|
+
},
|
|
3147
|
+
"value": "Blue100"
|
|
3148
|
+
},
|
|
3149
|
+
"name": "color.background.brand.subtlest.[default]",
|
|
3150
|
+
"path": ["color", "background", "brand", "subtlest", "[default]"],
|
|
3151
|
+
"cleanName": "color.background.brand.subtlest"
|
|
3152
|
+
}, {
|
|
3153
|
+
"attributes": {
|
|
3154
|
+
"group": "paint",
|
|
3155
|
+
"state": "active",
|
|
3156
|
+
"introduced": "1.13.0",
|
|
3157
|
+
"description": "Hovered state of color.background.brand.subtlest."
|
|
3158
|
+
},
|
|
3159
|
+
"value": "#CCE0FF",
|
|
3160
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
3161
|
+
"isSource": true,
|
|
3162
|
+
"original": {
|
|
3163
|
+
"attributes": {
|
|
3164
|
+
"group": "paint",
|
|
3165
|
+
"state": "active",
|
|
3166
|
+
"introduced": "1.13.0",
|
|
3167
|
+
"description": "Hovered state of color.background.brand.subtlest."
|
|
3168
|
+
},
|
|
3169
|
+
"value": "Blue200"
|
|
3170
|
+
},
|
|
3171
|
+
"name": "color.background.brand.subtlest.hovered",
|
|
3172
|
+
"path": ["color", "background", "brand", "subtlest", "hovered"],
|
|
3173
|
+
"cleanName": "color.background.brand.subtlest.hovered"
|
|
3174
|
+
}, {
|
|
3175
|
+
"attributes": {
|
|
3176
|
+
"group": "paint",
|
|
3177
|
+
"state": "active",
|
|
3178
|
+
"introduced": "1.13.0",
|
|
3179
|
+
"description": "Pressed state of color.background.brand.subtlest"
|
|
3180
|
+
},
|
|
3181
|
+
"value": "#85B8FF",
|
|
3182
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
3183
|
+
"isSource": true,
|
|
3184
|
+
"original": {
|
|
3185
|
+
"attributes": {
|
|
3186
|
+
"group": "paint",
|
|
3187
|
+
"state": "active",
|
|
3188
|
+
"introduced": "1.13.0",
|
|
3189
|
+
"description": "Pressed state of color.background.brand.subtlest"
|
|
3190
|
+
},
|
|
3191
|
+
"value": "Blue300"
|
|
3192
|
+
},
|
|
3193
|
+
"name": "color.background.brand.subtlest.pressed",
|
|
3194
|
+
"path": ["color", "background", "brand", "subtlest", "pressed"],
|
|
3195
|
+
"cleanName": "color.background.brand.subtlest.pressed"
|
|
3130
3196
|
}, {
|
|
3131
3197
|
"attributes": {
|
|
3132
3198
|
"group": "paint",
|
|
@@ -3154,7 +3220,7 @@ const tokens = [{
|
|
|
3154
3220
|
"group": "paint",
|
|
3155
3221
|
"state": "active",
|
|
3156
3222
|
"introduced": "0.6.0",
|
|
3157
|
-
"description": "Hovered state of color.background.brand.bold"
|
|
3223
|
+
"description": "Hovered state of color.background.brand.bold."
|
|
3158
3224
|
},
|
|
3159
3225
|
"value": "#0055CC",
|
|
3160
3226
|
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
@@ -3164,7 +3230,7 @@ const tokens = [{
|
|
|
3164
3230
|
"group": "paint",
|
|
3165
3231
|
"state": "active",
|
|
3166
3232
|
"introduced": "0.6.0",
|
|
3167
|
-
"description": "Hovered state of color.background.brand.bold"
|
|
3233
|
+
"description": "Hovered state of color.background.brand.bold."
|
|
3168
3234
|
},
|
|
3169
3235
|
"value": "Blue800"
|
|
3170
3236
|
},
|
|
@@ -3176,7 +3242,7 @@ const tokens = [{
|
|
|
3176
3242
|
"group": "paint",
|
|
3177
3243
|
"state": "active",
|
|
3178
3244
|
"introduced": "0.6.0",
|
|
3179
|
-
"description": "Pressed state of color.background.brand.bold"
|
|
3245
|
+
"description": "Pressed state of color.background.brand.bold."
|
|
3180
3246
|
},
|
|
3181
3247
|
"value": "#09326C",
|
|
3182
3248
|
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
@@ -3186,13 +3252,79 @@ const tokens = [{
|
|
|
3186
3252
|
"group": "paint",
|
|
3187
3253
|
"state": "active",
|
|
3188
3254
|
"introduced": "0.6.0",
|
|
3189
|
-
"description": "Pressed state of color.background.brand.bold"
|
|
3255
|
+
"description": "Pressed state of color.background.brand.bold."
|
|
3190
3256
|
},
|
|
3191
3257
|
"value": "Blue900"
|
|
3192
3258
|
},
|
|
3193
3259
|
"name": "color.background.brand.bold.pressed",
|
|
3194
3260
|
"path": ["color", "background", "brand", "bold", "pressed"],
|
|
3195
3261
|
"cleanName": "color.background.brand.bold.pressed"
|
|
3262
|
+
}, {
|
|
3263
|
+
"attributes": {
|
|
3264
|
+
"group": "paint",
|
|
3265
|
+
"state": "active",
|
|
3266
|
+
"introduced": "1.13.0",
|
|
3267
|
+
"description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
|
|
3268
|
+
},
|
|
3269
|
+
"value": "#092957",
|
|
3270
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
3271
|
+
"isSource": true,
|
|
3272
|
+
"original": {
|
|
3273
|
+
"attributes": {
|
|
3274
|
+
"group": "paint",
|
|
3275
|
+
"state": "active",
|
|
3276
|
+
"introduced": "1.13.0",
|
|
3277
|
+
"description": "Use for the background of elements used to reinforce our brand, that need to stand out a lot."
|
|
3278
|
+
},
|
|
3279
|
+
"value": "Blue1000"
|
|
3280
|
+
},
|
|
3281
|
+
"name": "color.background.brand.boldest.[default]",
|
|
3282
|
+
"path": ["color", "background", "brand", "boldest", "[default]"],
|
|
3283
|
+
"cleanName": "color.background.brand.boldest"
|
|
3284
|
+
}, {
|
|
3285
|
+
"attributes": {
|
|
3286
|
+
"group": "paint",
|
|
3287
|
+
"state": "active",
|
|
3288
|
+
"introduced": "1.13.0",
|
|
3289
|
+
"description": "Hovered state of color.background.brand.boldest."
|
|
3290
|
+
},
|
|
3291
|
+
"value": "#09326C",
|
|
3292
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
3293
|
+
"isSource": true,
|
|
3294
|
+
"original": {
|
|
3295
|
+
"attributes": {
|
|
3296
|
+
"group": "paint",
|
|
3297
|
+
"state": "active",
|
|
3298
|
+
"introduced": "1.13.0",
|
|
3299
|
+
"description": "Hovered state of color.background.brand.boldest."
|
|
3300
|
+
},
|
|
3301
|
+
"value": "Blue900"
|
|
3302
|
+
},
|
|
3303
|
+
"name": "color.background.brand.boldest.hovered",
|
|
3304
|
+
"path": ["color", "background", "brand", "boldest", "hovered"],
|
|
3305
|
+
"cleanName": "color.background.brand.boldest.hovered"
|
|
3306
|
+
}, {
|
|
3307
|
+
"attributes": {
|
|
3308
|
+
"group": "paint",
|
|
3309
|
+
"state": "active",
|
|
3310
|
+
"introduced": "1.13.0",
|
|
3311
|
+
"description": "Pressed state of color.background.brand.boldest."
|
|
3312
|
+
},
|
|
3313
|
+
"value": "#0055CC",
|
|
3314
|
+
"filePath": "src/tokens/atlassian-light/color/background.tsx",
|
|
3315
|
+
"isSource": true,
|
|
3316
|
+
"original": {
|
|
3317
|
+
"attributes": {
|
|
3318
|
+
"group": "paint",
|
|
3319
|
+
"state": "active",
|
|
3320
|
+
"introduced": "1.13.0",
|
|
3321
|
+
"description": "Pressed state of color.background.brand.boldest."
|
|
3322
|
+
},
|
|
3323
|
+
"value": "Blue800"
|
|
3324
|
+
},
|
|
3325
|
+
"name": "color.background.brand.boldest.pressed",
|
|
3326
|
+
"path": ["color", "background", "brand", "boldest", "pressed"],
|
|
3327
|
+
"cleanName": "color.background.brand.boldest.pressed"
|
|
3196
3328
|
}, {
|
|
3197
3329
|
"attributes": {
|
|
3198
3330
|
"group": "paint",
|
|
@@ -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 = "
|
|
4
|
+
const version = "0.0.0-development";
|
|
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.
|
package/dist/es2019/get-token.js
CHANGED
|
@@ -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 = "
|
|
5
|
+
const version = "0.0.0-development";
|
|
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.
|
|
@@ -82,6 +82,17 @@ const color = {
|
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
brand: {
|
|
85
|
+
subtlest: {
|
|
86
|
+
'[default]': {
|
|
87
|
+
value: 'Blue1000'
|
|
88
|
+
},
|
|
89
|
+
hovered: {
|
|
90
|
+
value: 'Blue900'
|
|
91
|
+
},
|
|
92
|
+
pressed: {
|
|
93
|
+
value: 'Blue800'
|
|
94
|
+
}
|
|
95
|
+
},
|
|
85
96
|
bold: {
|
|
86
97
|
'[default]': {
|
|
87
98
|
value: 'Blue400'
|
|
@@ -92,6 +103,17 @@ const color = {
|
|
|
92
103
|
pressed: {
|
|
93
104
|
value: 'Blue200'
|
|
94
105
|
}
|
|
106
|
+
},
|
|
107
|
+
boldest: {
|
|
108
|
+
'[default]': {
|
|
109
|
+
value: 'Blue100'
|
|
110
|
+
},
|
|
111
|
+
hovered: {
|
|
112
|
+
value: 'Blue200'
|
|
113
|
+
},
|
|
114
|
+
pressed: {
|
|
115
|
+
value: 'Blue300'
|
|
116
|
+
}
|
|
95
117
|
}
|
|
96
118
|
},
|
|
97
119
|
selected: {
|
|
@@ -81,6 +81,17 @@ const color = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
brand: {
|
|
84
|
+
subtlest: {
|
|
85
|
+
'[default]': {
|
|
86
|
+
value: 'B500'
|
|
87
|
+
},
|
|
88
|
+
hovered: {
|
|
89
|
+
value: 'B400'
|
|
90
|
+
},
|
|
91
|
+
pressed: {
|
|
92
|
+
value: 'B500'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
84
95
|
bold: {
|
|
85
96
|
'[default]': {
|
|
86
97
|
value: 'B400'
|
|
@@ -91,6 +102,17 @@ const color = {
|
|
|
91
102
|
pressed: {
|
|
92
103
|
value: 'B500'
|
|
93
104
|
}
|
|
105
|
+
},
|
|
106
|
+
boldest: {
|
|
107
|
+
'[default]': {
|
|
108
|
+
value: 'B75'
|
|
109
|
+
},
|
|
110
|
+
hovered: {
|
|
111
|
+
value: 'B50'
|
|
112
|
+
},
|
|
113
|
+
pressed: {
|
|
114
|
+
value: 'B100'
|
|
115
|
+
}
|
|
94
116
|
}
|
|
95
117
|
},
|
|
96
118
|
selected: {
|
|
@@ -81,6 +81,17 @@ const color = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
brand: {
|
|
84
|
+
subtlest: {
|
|
85
|
+
'[default]': {
|
|
86
|
+
value: 'B75'
|
|
87
|
+
},
|
|
88
|
+
hovered: {
|
|
89
|
+
value: 'B50'
|
|
90
|
+
},
|
|
91
|
+
pressed: {
|
|
92
|
+
value: 'B100'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
84
95
|
bold: {
|
|
85
96
|
'[default]': {
|
|
86
97
|
value: 'B400'
|
|
@@ -91,6 +102,17 @@ const color = {
|
|
|
91
102
|
pressed: {
|
|
92
103
|
value: 'B500'
|
|
93
104
|
}
|
|
105
|
+
},
|
|
106
|
+
boldest: {
|
|
107
|
+
'[default]': {
|
|
108
|
+
value: 'B500'
|
|
109
|
+
},
|
|
110
|
+
hovered: {
|
|
111
|
+
value: 'B400'
|
|
112
|
+
},
|
|
113
|
+
pressed: {
|
|
114
|
+
value: 'B500'
|
|
115
|
+
}
|
|
94
116
|
}
|
|
95
117
|
},
|
|
96
118
|
selected: {
|
|
@@ -81,6 +81,17 @@ const color = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
brand: {
|
|
84
|
+
subtlest: {
|
|
85
|
+
'[default]': {
|
|
86
|
+
value: 'Blue100'
|
|
87
|
+
},
|
|
88
|
+
hovered: {
|
|
89
|
+
value: 'Blue200'
|
|
90
|
+
},
|
|
91
|
+
pressed: {
|
|
92
|
+
value: 'Blue300'
|
|
93
|
+
}
|
|
94
|
+
},
|
|
84
95
|
bold: {
|
|
85
96
|
'[default]': {
|
|
86
97
|
value: 'Blue700'
|
|
@@ -91,6 +102,17 @@ const color = {
|
|
|
91
102
|
pressed: {
|
|
92
103
|
value: 'Blue900'
|
|
93
104
|
}
|
|
105
|
+
},
|
|
106
|
+
boldest: {
|
|
107
|
+
'[default]': {
|
|
108
|
+
value: 'Blue1000'
|
|
109
|
+
},
|
|
110
|
+
hovered: {
|
|
111
|
+
value: 'Blue900'
|
|
112
|
+
},
|
|
113
|
+
pressed: {
|
|
114
|
+
value: 'Blue800'
|
|
115
|
+
}
|
|
94
116
|
}
|
|
95
117
|
},
|
|
96
118
|
selected: {
|
|
@@ -170,6 +170,32 @@ const color = {
|
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
172
|
brand: {
|
|
173
|
+
subtlest: {
|
|
174
|
+
'[default]': {
|
|
175
|
+
attributes: {
|
|
176
|
+
group: 'paint',
|
|
177
|
+
state: 'active',
|
|
178
|
+
introduced: '1.13.0',
|
|
179
|
+
description: 'Use for the background of elements used to reinforce our brand, but with less emphasis.'
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
hovered: {
|
|
183
|
+
attributes: {
|
|
184
|
+
group: 'paint',
|
|
185
|
+
state: 'active',
|
|
186
|
+
introduced: '1.13.0',
|
|
187
|
+
description: 'Hovered state of color.background.brand.subtlest.'
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
pressed: {
|
|
191
|
+
attributes: {
|
|
192
|
+
group: 'paint',
|
|
193
|
+
state: 'active',
|
|
194
|
+
introduced: '1.13.0',
|
|
195
|
+
description: 'Pressed state of color.background.brand.subtlest'
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
},
|
|
173
199
|
bold: {
|
|
174
200
|
'[default]': {
|
|
175
201
|
attributes: {
|
|
@@ -184,7 +210,7 @@ const color = {
|
|
|
184
210
|
group: 'paint',
|
|
185
211
|
state: 'active',
|
|
186
212
|
introduced: '0.6.0',
|
|
187
|
-
description: 'Hovered state of color.background.brand.bold'
|
|
213
|
+
description: 'Hovered state of color.background.brand.bold.'
|
|
188
214
|
}
|
|
189
215
|
},
|
|
190
216
|
pressed: {
|
|
@@ -192,7 +218,33 @@ const color = {
|
|
|
192
218
|
group: 'paint',
|
|
193
219
|
state: 'active',
|
|
194
220
|
introduced: '0.6.0',
|
|
195
|
-
description: 'Pressed state of color.background.brand.bold'
|
|
221
|
+
description: 'Pressed state of color.background.brand.bold.'
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
boldest: {
|
|
226
|
+
'[default]': {
|
|
227
|
+
attributes: {
|
|
228
|
+
group: 'paint',
|
|
229
|
+
state: 'active',
|
|
230
|
+
introduced: '1.13.0',
|
|
231
|
+
description: 'Use for the background of elements used to reinforce our brand, that need to stand out a lot.'
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
hovered: {
|
|
235
|
+
attributes: {
|
|
236
|
+
group: 'paint',
|
|
237
|
+
state: 'active',
|
|
238
|
+
introduced: '1.13.0',
|
|
239
|
+
description: 'Hovered state of color.background.brand.boldest.'
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
pressed: {
|
|
243
|
+
attributes: {
|
|
244
|
+
group: 'paint',
|
|
245
|
+
state: 'active',
|
|
246
|
+
introduced: '1.13.0',
|
|
247
|
+
description: 'Pressed state of color.background.brand.boldest.'
|
|
196
248
|
}
|
|
197
249
|
}
|
|
198
250
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import rawTokensDark from '../artifacts/
|
|
1
|
+
import rawTokensDark from '../artifacts/atlassian-dark-token-value-for-contrast-check';
|
|
2
2
|
import { deltaE, getContrastRatio, hexToHSL, hexToRgb, hexToRgbA, HSLToRGB, relativeLuminanceW3C, rgbToHex } from './color-utils';
|
|
3
3
|
import { additionalContrastChecker } from './custom-theme-token-contrast-check';
|
|
4
4
|
import { argbFromRgba, Contrast, Hct, rgbaFromArgb } from './hct-color-utils';
|
|
5
|
-
const lowLuminanceContrastRatios = [1.12, 1.33, 2.03, 2.73, 3.33, 4.27, 5.2, 6.62, 12.46,
|
|
6
|
-
const highLuminanceContrastRatios = [1.08, 1.24, 1.55, 1.99, 2.45, 3.34, 4.64, 6.1, 10.19,
|
|
5
|
+
const lowLuminanceContrastRatios = [1.12, 1.33, 2.03, 2.73, 3.33, 4.27, 5.2, 6.62, 12.46, 14.25];
|
|
6
|
+
const highLuminanceContrastRatios = [1.08, 1.24, 1.55, 1.99, 2.45, 3.34, 4.64, 6.1, 10.19, 12.6];
|
|
7
7
|
export const getClosestColorIndex = (themeRamp, brandColor) => {
|
|
8
8
|
// Iterate over themeRamp and find whichever color is closest to brandColor
|
|
9
9
|
let closestColorIndex = 0;
|
|
@@ -90,9 +90,15 @@ export const generateTokenMap = (brandColor, mode, themeRamp) => {
|
|
|
90
90
|
customThemeTokenMapLight = {
|
|
91
91
|
'color.text.brand': closestColorIndex,
|
|
92
92
|
'color.icon.brand': closestColorIndex,
|
|
93
|
+
'color.background.brand.subtlest': 0,
|
|
94
|
+
'color.background.brand.subtlest.hovered': 1,
|
|
95
|
+
'color.background.brand.subtlest.pressed': 2,
|
|
93
96
|
'color.background.brand.bold': closestColorIndex,
|
|
94
97
|
'color.background.brand.bold.hovered': brandBoldSelectedHoveredIndex,
|
|
95
98
|
'color.background.brand.bold.pressed': brandBoldSelectedPressedIndex,
|
|
99
|
+
'color.background.brand.boldest': 9,
|
|
100
|
+
'color.background.brand.boldest.hovered': 8,
|
|
101
|
+
'color.background.brand.boldest.pressed': 7,
|
|
96
102
|
'color.border.brand': closestColorIndex,
|
|
97
103
|
'color.text.selected': closestColorIndex,
|
|
98
104
|
'color.icon.selected': closestColorIndex,
|
|
@@ -110,9 +116,15 @@ export const generateTokenMap = (brandColor, mode, themeRamp) => {
|
|
|
110
116
|
};
|
|
111
117
|
} else {
|
|
112
118
|
customThemeTokenMapLight = {
|
|
119
|
+
'color.background.brand.subtlest': 0,
|
|
120
|
+
'color.background.brand.subtlest.hovered': 1,
|
|
121
|
+
'color.background.brand.subtlest.pressed': 2,
|
|
113
122
|
'color.background.brand.bold': 6,
|
|
114
123
|
'color.background.brand.bold.hovered': 7,
|
|
115
124
|
'color.background.brand.bold.pressed': 8,
|
|
125
|
+
'color.background.brand.boldest': 9,
|
|
126
|
+
'color.background.brand.boldest.hovered': 8,
|
|
127
|
+
'color.background.brand.boldest.pressed': 7,
|
|
116
128
|
'color.border.brand': 6,
|
|
117
129
|
'color.background.selected.bold': 6,
|
|
118
130
|
'color.background.selected.bold.hovered': 7,
|
|
@@ -149,8 +161,7 @@ export const generateTokenMap = (brandColor, mode, themeRamp) => {
|
|
|
149
161
|
* in dark mode, shift color.background.brand.bold to the brand color
|
|
150
162
|
*/
|
|
151
163
|
if (inputContrast < 4.5) {
|
|
152
|
-
|
|
153
|
-
const inverseTextColor = (_rawTokensDark$find = rawTokensDark.find(token => token.cleanName === 'color.text.inverse')) === null || _rawTokensDark$find === void 0 ? void 0 : _rawTokensDark$find.value;
|
|
164
|
+
const inverseTextColor = rawTokensDark['color.text.inverse'];
|
|
154
165
|
if (getContrastRatio(inverseTextColor, brandColor) >= 4.5 && closestColorIndex >= 2) {
|
|
155
166
|
customThemeTokenMapDark['color.background.brand.bold'] = closestColorIndex;
|
|
156
167
|
customThemeTokenMapDark['color.background.brand.bold.hovered'] = closestColorIndex - 1;
|