UNPKG

10.3 kBMarkdownView Raw
1# Changelog
2
3All notable changes to this project will be documented in this file.
4
5The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
8## [Unreleased]
9
10## [2.13.1] - 2020-11-1
11
12- Moved mistaken border variants to surface variants ([#154](https://github.com/Shopify/polaris-tokens/pull/154))
13
14## [2.13.0] - 2020-11-1
15
16- Add subdued variants to warning, highlight, and success ([#153](https://github.com/Shopify/polaris-tokens/pull/153))
17
18## [2.12.9] - 2020-09-11
19
20- Update action secondary depressed color / add border depressed ([#150](https://github.com/Shopify/polaris-tokens/pull/150))
21
22## [2.12.8] - 2020-09-10
23
24- Add icon and action colors to color-filters-map ([#149](https://github.com/Shopify/polaris-tokens/pull/149))
25
26## [2.12.7] - 2020-09-09
27
28- Updates the onSurface background name ([#147](https://github.com/Shopify/polaris-tokens/pull/147))
29
30## [2.12.6] - 2020-09-09
31
32- Added background under onSurface ([#146](https://github.com/Shopify/polaris-tokens/pull/146))
33
34## [2.12.5] - 2020-09-08
35
36- Updated borderSubdued and added borderShadow, borderShadowSubdued, and divider colors ([#145](https://github.com/Shopify/polaris-tokens/pull/145))
37
38## [2.12.4] - 2020-08-27
39
40- Updated background, surface, and action colors ([#140](https://github.com/Shopify/polaris-tokens/pull/140))
41
42## [2.12.3] - 2020-04-07
43
44- Updated the font stack so that Segoe UI comes before Roboto. ([#131](https://github.com/Shopify/polaris-tokens/pull/131))
45
46## [2.12.2] - 2020-03-25
47
48- Loosened the type of the first argument of `color-factory` to account for stricter merge checks in Typescript 3.8 ([#130](https://github.com/Shopify/polaris-tokens/pull/130))
49
50## [2.12.1] - 2020-03-18
51
52- Adjusted Figma metadata for variants. Adjusted description of one variant. ([#126](https://github.com/Shopify/polaris-tokens/pull/126))
53
54## [2.12.0] - 2020-03-13
55
56- Added variants for border subdued roles ([#123](https://github.com/Shopify/polaris-tokens/pull/123))
57
58## [2.11.0] - 2020-03-11
59
60- Added missing variants ([#121](https://github.com/Shopify/polaris-tokens/pull/121))
61- Updated hover variants ([#120](https://github.com/Shopify/polaris-tokens/pull/120))
62- Updated color variants to use `saturationAdjustmentFn` instead of `saturation` ([#119](https://github.com/Shopify/polaris-tokens/pull/119))
63
64## [2.10.0] - 2020-03-05
65
66- Removed `borderSecondary`, `borderSecondaryHovered`, and `borderSecondaryDisabled` color variants from the `secondary` role in favor of `border` and the newly added `borderHovered` and `borderDisabled` color variants in the `onSurface` role ([#115](https://github.com/Shopify/polaris-tokens/pull/115))
67 - Note: This is technically a breaking change although we will continue to ship as minor and patch versions until the new color system is enabled by default in production
68
69## [2.9.0] - 2020-03-03
70
71- Added Figma color name metadata ([#110](https://github.com/Shopify/polaris-tokens/pull/110))
72
73## [2.8.2] - 2020-02-27
74
75- Fixed an issue where dev environment utils and types were exported ([#113](https://github.com/Shopify/polaris-tokens/pull/113))
76
77## [2.8.1] - 2020-02-27
78
79- Updated color variants to match Figma ([#108](https://github.com/Shopify/polaris-tokens/pull/108))
80- Updated `interactiveCritical` description ([#107](https://github.com/Shopify/polaris-tokens/pull/107))
81
82## [2.8.0] - 2020-02-20
83
84- Added color factory and built modern tokens ([#105](https://github.com/Shopify/polaris-tokens/pull/105))
85 - Added surface disabled variant and updated other variant configs ([#101](https://github.com/Shopify/polaris-tokens/pull/101))
86 - Added TypeScript build for modern tokens, and shifted directory structures to differentiate between legacy and modern tokens ([#97](https://github.com/Shopify/polaris-tokens/pull/97))
87 - Updated variant names and descriptions ([#96](https://github.com/Shopify/polaris-tokens/pull/96))
88 - Added decorative icon variants ([#94](https://github.com/Shopify/polaris-tokens/pull/94))
89 - Built changes from previous release, and added textOnInteractive variant ([#93](https://github.com/Shopify/polaris-tokens/pull/93))
90 - Fixed an issue where legacy themes caused the color factory to throw ([#92](https://github.com/Shopify/polaris-tokens/pull/92))
91 - Updated color variants for consistency with changes in Polaris React ([#91](https://github.com/Shopify/polaris-tokens/pull/91))
92 - Marked the config as optional and the colors as partial ([dd3d8fc](https://github.com/Shopify/polaris-tokens/commit/dd3d8fc05572fb03e764a85a0519bbd3dde11855))
93 - Added the Color Factory. Long live the Color Factory! ([#89](https://github.com/Shopify/polaris-tokens/pull/89))
94
95## [2.7.0] - 2019-10-28
96
97- Updated filter for the Blue color ([#64](https://github.com/Shopify/polaris-tokens/pull/64))
98- Removed reliance on the Invision DSM import script (colors are now directly managed in `tokens/colors.yml`) ([#66](https://github.com/Shopify/polaris-tokens/pull/66))
99- Added a JSON color export for iOS ([`colors.ios.json`](/dist/colors.ios.json)) ([#86](https://github.com/Shopify/polaris-tokens/pull/86))
100
101## [2.6.0] - 2019-06-06
102
103- Update `color-blue` to `#006fbb` from `#007ace` for accessibility ([#63](https://github.com/Shopify/polaris-tokens/pull/63))
104- Add missing `colorYellowDark` values from ([#44](https://github.com/Shopify/polaris-tokens/pull/44))
105
106## [2.5.0] - 2019-04-19
107
108- Duration tokens (with `type: time`) are treated as unitless and converted to milliseconds in JavaScript formats
109
110## [2.4.0] - 2019-04-04
111
112- Added color names to the Sketch palette ([#53](https://github.com/Shopify/polaris-tokens/pull/53))
113- Fixed a bug where the font family value was wrapped in quotes ([#58](https://github.com/Shopify/polaris-tokens/pull/58))
114
115## [2.3.0] - 2019-02-19
116
117- Added spacing-map format, usable as `spacing.spacing-map.scss` ([#52](https://github.com/Shopify/polaris-tokens/pull/52))
118
119## [2.2.0] - 2019-02-19
120
121- Updated devDependencies ([#45](https://github.com/Shopify/polaris-tokens/pull/45))
122- Added `base-tight` to the spacing map ([#48](https://github.com/Shopify/polaris-tokens/pull/48))
123
124## [2.1.1] - 2019-01-04
125
126- No changes in this version (re-publishing as the 2.1.0 Gem release failed)
127
128## [2.1.0] - 2019-01-04
129
130- Updated `color-yellow-dark` for accessibility ([#44](https://github.com/Shopify/polaris-tokens/pull/44))
131- Documented how to import tokens using ES Modules ([#37](https://github.com/Shopify/polaris-tokens/pull/37))
132- Updated Node.js to v10
133- Updated Node.js & Ruby dependencies
134- Reformatted files using sewing-kit
135
136## [2.0.0] - 2018-10-23
137
138- **Breaking:** renamed `colors.android-colors.xml` to `colors.android.xml`
139- **Breaking:** removed `-base` suffix from base color token names (fixes [#16](https://github.com/Shopify/polaris-tokens/issues/16))
140
141 Upgrade path:
142
143 - CSS: remove `-base`. For example: `var(--color-ink-base)``var(--color-ink)`.
144 - Sass: remove `-base`. For example: `$color-ink-base``$color-ink`.
145 - JSON: remove `-base`. For example: `tokens['color-ink-base']``tokens['color-ink']`.
146 - Android: remove `_base`. For example: `polaris_color_blue_base``polaris_color_blue`.
147 - JavaScript: remove `Base`. For example: `colorPurpleBase``colorPurple`.
148
149- Updated dependencies, including Theo to from `^7.0.1` to `8.0.0-beta.2`
150- Updated the Android token format to enable it to format other properties than just colors
151
152## [1.3.1] - 2018-07-09
153
154- Updated devDependencies, including [Prettier](https://prettier.io/). This reformatted SCSS files in `./dist/` but didn’t impact the tokens themselves.
155
156## [1.3.0] - 2018-06-29
157
158- Added [`colors.android-colors.xml`](https://github.com/Shopify/polaris-tokens/blob/master/dist/colors.android-colors.xml), for Android apps
159
160## [1.2.0] - 2018-05-30
161
162- `ase` and `clr` palettes: removed the `color-` prefix from color names
163- Updated devDependencies
164
165## [1.1.0] - 2018-04-24
166
167Polaris tokens are now available as both a [npm package](https://www.npmjs.com/package/@shopify/polaris-tokens) and a [Ruby gem](https://rubygems.org/gems/polaris_tokens)! Check the [README](https://github.com/Shopify/polaris-tokens/blob/master/README.md) for installation and usage instructions for both.
168
169## 1.0.0 - 2018-04-13
170
171First stable release 🎉
172
173Color design tokens are now used in:
174
175- `Shopify/shopify`
176- `Shopify/polaris-styleguide`
177- `Shopify/polaris-react` (`@shopify/polaris` v2 on npm)
178
179[unreleased]: https://github.com/Shopify/polaris-tokens/compare/v2.12.3...HEAD
180[2.12.3]: https://github.com/Shopify/polaris-tokens/compare/v2.12.2..v2.12.3
181[2.12.2]: https://github.com/Shopify/polaris-tokens/compare/v2.12.1...v2.12.2
182[2.12.1]: https://github.com/Shopify/polaris-tokens/compare/v2.12.0...v2.12.1
183[2.12.0]: https://github.com/Shopify/polaris-tokens/compare/v2.11.0...v2.12.0
184[2.11.0]: https://github.com/Shopify/polaris-tokens/compare/v2.10.0...v2.11.0
185[2.10.0]: https://github.com/Shopify/polaris-tokens/compare/v2.9.0...v2.10.0
186[2.9.0]: https://github.com/Shopify/polaris-tokens/compare/v2.8.2...v2.9.0
187[2.8.2]: https://github.com/Shopify/polaris-tokens/compare/v2.8.1...v2.8.2
188[2.8.1]: https://github.com/Shopify/polaris-tokens/compare/v2.8.0...v2.8.1
189[2.8.0]: https://github.com/Shopify/polaris-tokens/compare/v2.7.0...v2.8.0
190[2.7.0]: https://github.com/Shopify/polaris-tokens/compare/v2.6.0...v2.7.0
191[2.6.0]: https://github.com/Shopify/polaris-tokens/compare/v2.5.0...v2.6.0
192[2.5.0]: https://github.com/Shopify/polaris-tokens/compare/v2.4.0...v2.5.0
193[2.4.0]: https://github.com/Shopify/polaris-tokens/compare/v2.3.0...v2.4.0
194[2.3.0]: https://github.com/Shopify/polaris-tokens/compare/v2.2.0...v2.3.0
195[2.2.0]: https://github.com/Shopify/polaris-tokens/compare/v2.1.1...v2.2.0
196[2.1.1]: https://github.com/Shopify/polaris-tokens/compare/v2.1.0...v2.1.1
197[2.1.0]: https://github.com/Shopify/polaris-tokens/compare/v2.0.0...v2.1.0
198[2.0.0]: https://github.com/Shopify/polaris-tokens/compare/v1.3.1...v2.0.0
199[1.3.1]: https://github.com/Shopify/polaris-tokens/compare/v1.3.0...v1.3.1
200[1.3.0]: https://github.com/Shopify/polaris-tokens/compare/v1.2.0...v1.3.0
201[1.2.0]: https://github.com/Shopify/polaris-tokens/compare/v1.1.0...v1.2.0
202[1.1.0]: https://github.com/Shopify/polaris-tokens/compare/v1.0.0...v1.1.0