@adobe/spectrum-tokens 12.0.0-beta.9 → 12.0.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 CHANGED
@@ -1,6 +1,51 @@
1
- # [12.0.0-beta.9](https://github.com/adobe/spectrum-tokens/compare/v12.0.0-beta.8...v12.0.0-beta.9) (2022-03-31)
1
+ # [12.0.0](https://github.com/adobe/spectrum-tokens/compare/v11.0.0...v12.0.0) (2023-02-14)
2
2
 
3
3
 
4
4
  ### Bug Fixes
5
5
 
6
- * update gray values for WCAG 2.1 goodness ([5259a58](https://github.com/adobe/spectrum-tokens/commit/5259a58e18a94b1d109dfdb612501637106a3383))
6
+ * .releaserc config updated to treat beta as a release branch] ([8f54fa5](https://github.com/adobe/spectrum-tokens/commit/8f54fa525210d1d915d22b5ff39f8f218b243708))
7
+ * fixed missing token sets for color loupe ([7de5d5b](https://github.com/adobe/spectrum-tokens/commit/7de5d5bf4148e565336b65aed8691275896c0b87))
8
+ * heading-cjk-light-strong-emphasized-font-weight should be font-weight-extra-bold ([db7ce60](https://github.com/adobe/spectrum-tokens/commit/db7ce6071bf643387d4dfa129614d95e50187195))
9
+ * missing units on `toast-maximum-width` ([9b0fa71](https://github.com/adobe/spectrum-tokens/commit/9b0fa716b28c7618e7c2cf2314692d20a54c8b71))
10
+ * orange bugs in notice and visual color ([1606dea](https://github.com/adobe/spectrum-tokens/commit/1606dea473a6f415fd51914cd6cc670c67dbc2b9))
11
+ * rename meter-thinkness-medium; closes DNA-1224 ([#75](https://github.com/adobe/spectrum-tokens/issues/75)) ([bcd839f](https://github.com/adobe/spectrum-tokens/commit/bcd839fa92cb9fde155a6e3ac398b7ab86984993))
12
+ * token name typo ([007da82](https://github.com/adobe/spectrum-tokens/commit/007da828661f97ea7f8880b795d8571f3a0026d2))
13
+ * trigger release ([44d7637](https://github.com/adobe/spectrum-tokens/commit/44d7637db052d168dd23de42c2246ff66124e128))
14
+ * typo in typography - changed `spectrum for express` to `express` ([e19eea3](https://github.com/adobe/spectrum-tokens/commit/e19eea3f8253096f031897a5c69c7e86fee555ea))
15
+
16
+
17
+ * ci!: merge branch 'next-major' into beta ([1e6cdd2](https://github.com/adobe/spectrum-tokens/commit/1e6cdd2536950871500471bef39219f705d43b9e))
18
+
19
+
20
+ ### Features
21
+
22
+ * add border-400 and opacity-disabled ([0447910](https://github.com/adobe/spectrum-tokens/commit/0447910f99577ad5206937ba3b234b4996ae00b4))
23
+ * added alert-banner tokens ([626d3ab](https://github.com/adobe/spectrum-tokens/commit/626d3abfd80d04abe31f9b835c4202908416444e))
24
+ * added detail typography tokens for uppercase, DNA-1257 ([a4fce7e](https://github.com/adobe/spectrum-tokens/commit/a4fce7e3b197f23f92a5f8f869d4cf11f32339dc))
25
+ * added dropzone tokens, DNA-1258 ([c0ce9df](https://github.com/adobe/spectrum-tokens/commit/c0ce9dfe39f0a9a22ac5b3ba31bebb4c80aa48e4))
26
+ * added field-width token ([8894edd](https://github.com/adobe/spectrum-tokens/commit/8894edde8c6bf87e359b9a400ccc8e1325f94754))
27
+ * added illustrated-message tokens ([3326f28](https://github.com/adobe/spectrum-tokens/commit/3326f28d285a7cbbc9c97d74d7ca032e2442a79f))
28
+ * added missing field-edge-to-visual-quiet token ([4250036](https://github.com/adobe/spectrum-tokens/commit/4250036a7923837a2e28937812b2488c40f29b61))
29
+ * added new alert dialog typography tokens, DNA-1255 ([f590663](https://github.com/adobe/spectrum-tokens/commit/f590663292178e5d261013d4e830de487fcadd25))
30
+ * added rating indicator tokens ([1df0d94](https://github.com/adobe/spectrum-tokens/commit/1df0d94a0ab283a6fe33ecdf9b9725c1fc9cc357))
31
+ * added search-field tokens ([3f8f544](https://github.com/adobe/spectrum-tokens/commit/3f8f54493eec685897429b6379345889073f84a3))
32
+ * adding color area tokens (DNA-1234) ([28f42bc](https://github.com/adobe/spectrum-tokens/commit/28f42bcc06e5b0be5c6ce26d01c607a3c6b2b90b))
33
+ * adding floating action button shadow blur token (DNA-1246) ([840c48f](https://github.com/adobe/spectrum-tokens/commit/840c48f1631ff576fc98aa1c6acc18d330857643))
34
+ * adds alert dialog tokens; closes DNA-1223 ([ed9a705](https://github.com/adobe/spectrum-tokens/commit/ed9a7054a285dbed6d0c5f4aaedf6e74c29412fb))
35
+ * adds navigational indicator tokens (DNA-1236) ([c4eb51c](https://github.com/adobe/spectrum-tokens/commit/c4eb51c4e0deb62c11aac5e18f91ccc4a27c42e8))
36
+ * adds thumbnail tokens; closes DNA-1221 ([086e6fa](https://github.com/adobe/spectrum-tokens/commit/086e6fae30813fc332da45836c732ade588e93ba))
37
+ * color loupe tokens, DNA-1249 ([4169f4a](https://github.com/adobe/spectrum-tokens/commit/4169f4a9548169b855fdd78ae918f74935cc0306))
38
+ * color-slider tokens (DNA-1238) ([524feaf](https://github.com/adobe/spectrum-tokens/commit/524feaf43ead77ffb681e8ca35dc69182064ef95))
39
+ * color-wheeeeeeeeeeeeeeeeel tokens (DNA-1235) ([9c8daac](https://github.com/adobe/spectrum-tokens/commit/9c8daace803665f1cd5196deb5c016dba33a2fb1))
40
+ * new card tokens, DNA-1250 ([c9e3bdd](https://github.com/adobe/spectrum-tokens/commit/c9e3bdd24d77659b174e350a5671067bb019a081))
41
+ * new typography color tokens, DNA-1254 ([b836ae5](https://github.com/adobe/spectrum-tokens/commit/b836ae5e47014e6a5eca23e9e574b5f6d27a04b1))
42
+ * rename typography tokens, new heading tokens (DNA-1242, DNA-1243) ([ffe856a](https://github.com/adobe/spectrum-tokens/commit/ffe856afbeb67924043c6e86a045cf76e2923bbe))
43
+ * Typography updated ([#76](https://github.com/adobe/spectrum-tokens/issues/76)) ([83b8c74](https://github.com/adobe/spectrum-tokens/commit/83b8c741a9f3cacee2b36d188dc94c82ef9827ad))
44
+ * update field label values (DNA-1240) ([e9ed057](https://github.com/adobe/spectrum-tokens/commit/e9ed057f76d6cc86f706c87438df2ef4d1737621))
45
+ * update side label character count spacing (DNA-1241) ([2738648](https://github.com/adobe/spectrum-tokens/commit/2738648704acc73f35d7eeefb71ff5928f7ef01f))
46
+ * updated color-wheel-minimum-width and added color-wheel-width, DNA-1256 ([57ee5f4](https://github.com/adobe/spectrum-tokens/commit/57ee5f425abde5941c486224c91b3bd4d82a3261))
47
+
48
+
49
+ ### BREAKING CHANGES
50
+
51
+ * moving to new format, a departure from v11.x.x
package/README.md CHANGED
@@ -1,15 +1,84 @@
1
- # Spectrum Style Dictionary
1
+ # Spectrum Tokens
2
+
3
+ Design tokens are primarily name-value pairs used to store design decisions and distributed in a way platforms, implementations, and products can use across design tools and coding languages. These value types are represented as data, which include spacing, color, typography, object styles, animation, etc. These can represent anything defined by design: a color as an RGB value, an opacity as a number, and an animation ease function as Bezier coordinates. They're used in place of hard-coded values to ensure flexibility and unity across all product experiences.
4
+
5
+ Design tokens are directly integrated into our component libraries, UI kits, and the Spectrum XD plugin. They cover the various options of platform scales, color themes, component states, and more. We also offer teams a variety of token types to use directly within their products if they are not using a Spectrum component library.
2
6
 
3
7
  ## Getting started
4
8
 
5
9
  Start by installing all the project dependencies.
6
10
 
7
11
  ```bash
8
- yarn install
12
+ yarn
9
13
  ```
10
14
 
11
- Then build the project.
15
+ Running this script will also build the tokens to the `dist` directory.
16
+
17
+ To manually build the project, you can also run the following script:
12
18
 
13
19
  ```bash
14
- yarn run build
20
+ yarn build
21
+ ```
22
+
23
+ ## Generate a Diff from the last release
24
+
25
+ The `yarn generateDiffResult` script will build the project and compare the tokens in the `dist` directory with the last released version of Spectrum Tokens. It will generate a report of added tokens, deleted tokens, tokens with value changes, and tokens with potential name changes. The script can't guarantee the correct name changes; it compares new tokens and deleted tokens to see if any have the same value and are likely to be token name changes.
26
+
27
+ ## Versioning
28
+
29
+ This project uses [Semantic Versioning (semver)](https://semver.org/). It also utilizes [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) and [semantic-release](https://semantic-release.gitbook.io/semantic-release/) with a GitHub Action to automate the release process.
30
+
31
+ ### Major, minor, and patch criteria
32
+
33
+ #### Patches
34
+
35
+ x.x.n+1 releases are for bug fixes and patches.
36
+
37
+ - bug fixes
38
+ - typos
39
+ - mistakes
40
+
41
+ Example: a token name changing from `detail-margin-top-mulitplier` to `detail-margin-top-multiplier` to fix a spelling mistake.
42
+
43
+ #### Minor
44
+
45
+ x.n+1.0 releases are for new tokens and features.
46
+
47
+ - adding new token
48
+ - changing a value intentionally
49
+ - adding deprecation metadata and aliased new tokens where applicable
50
+
51
+ #### Major
52
+
53
+ n+1.0.0 releases are for breaking changes.
54
+
55
+ - deleting tokens
56
+ - changing token value type (e.g., from a color to a dimension; anything that would break a parser expecting specific data types)
57
+
58
+ ## Deprecations
59
+
60
+ ### Planned token name changes
61
+
62
+ Tokens with a name changed will first be marked as deprecated, while a new token will be created with the new name; the deprecated token will then become an alias for the new token. Finally, the deprecated token will eventually be removed, most likely in the next major release if there has been sufficient time to notify teams. The required amount of time is still to be determined.
63
+
64
+ ## Releases
65
+
66
+ All commits merged or pushed to the `main` branch will be released as a stable version with the `latest` tag on [NPM](https://www.npmjs.com/package/@adobe/spectrum-tokens?activeTab=versions). All commits merged or pushed to `next`, or `next-major` will update the version number according to the types of commits made in the branch (breaking change, feature, bug fix) and release it to NPM with the `next` tag.
67
+
68
+ More details can be found in this [example workflow](https://semantic-release.gitbook.io/semantic-release/recipes/release-workflow/distribution-channels).
69
+
70
+ ## Spectrum Tokens 11.x.x and 12.x.x
71
+
72
+ Starting with `@adobe/spectrum-tokens` v12.0.0, this project uses a more efficient list of tokens. Previously in v11.x.x, every possible combination of component options was used to define tokens, resulting in an unnecessarily large list of tokens. However, while the work is ongoing in migrating components from the old system to the newer one, v12.0.0 and future versions will be published under the `next` tag. To install it, use the script:
73
+
74
+ ```
75
+ yarn add @adobe/spectrum-tokens@next
76
+ ```
77
+
78
+ or
79
+
15
80
  ```
81
+ npm install --save @adobe/spectrum-tokens@next
82
+ ```
83
+
84
+ If you need to use the older and more complete set of tokens side by side with the v12.x.x release while the development of this migration is ongoing, you can use the [`@adobe/spectrum-tokens-depreacated`](https://www.npmjs.com/package/@adobe/spectrum-tokens-deprecated) package, which is an archived release of `@adobe/spectrum-tokens@11.8.0`.
@@ -9,28 +9,11 @@ the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTA
9
9
  OF ANY KIND, either express or implied. See the License for the specific language
10
10
  governing permissions and limitations under the License.
11
11
  */
12
-
13
- const StyleDictionary = require("style-dictionary");
14
- const JsonSetsFormatter = require("style-dictionary-sets").JsonSetsFormatter;
15
-
16
- StyleDictionary.registerFormat(JsonSetsFormatter);
12
+ /*
13
+ * For a detailed explanation regarding each configuration property, visit:
14
+ * https://jestjs.io/docs/configuration
15
+ */
17
16
 
18
17
  module.exports = {
19
- source: ["tokens/**/*.json"],
20
- platforms: {
21
- JSON: {
22
- buildPath: "dist/json/",
23
- transforms: ["attribute/cti", "name/cti/kebab"],
24
- files: [
25
- {
26
- destination: "variables.json",
27
- format: "json/sets",
28
- options: {
29
- showFileHeader: false,
30
- outputReferences: true,
31
- },
32
- },
33
- ],
34
- },
35
- },
18
+ extends: ["@commitlint/config-conventional"],
36
19
  };