Releases: primer/primitives
v9.0.3
v9.0.2
v9.0.1
v9.0.0
Major Changes
-
#1021
8b015a0
Thanks @langermank! - Updateinvisible
button variant text color to be default instead of link blue -
#1025
9ab8102
Thanks @langermank! - Fix inconsistent HC transparent colors -
#1023
0f5625e
Thanks @langermank! - ChangefgColor-onEmphasis
to white in dark high contrast theme -
#1016
39862e9
Thanks @langermank! - # Updated neutral base color scalesChanges
- Theme specific neutral scales have been replaced with two new scales:
light
anddark
. - The new
light
anddark
scales are inverted, where 0 is the lightest shade inlight
and the darkest shade indark
. - Functional color tokens have been updated to use the new
light
anddark
scales, and several overrides have been removed due to the new inverted design.
Migration
- Functional color tokens all work as expected and have been tested to meet minimum contrast requirements.
- If you are using
primer/primitives
base color scales directly, you may need to update how those colors are applied. See the migration table which outlines approximately how the new colors map to the old colors.
Light scale migration
Old color New color 0
0
1
2
2
5
3
7
4
7
5
8
6
8
7
9
8
10
9
11
Dark scale migration
Old color New color 9
0
8
1
7
2
6
4
5
6
4
7
3
8
2
9
1
10
0
11
Dark high contrast scale migration
Old color New color 9
0
8
3
7
5
6
6
5
7
4
8
3
9
2
10
1
11
Dark dimmed scale migration
Old color New color 9
1
8
2
7
4
6
5
5
6
4
7
3
7
2
8
1
9
0
10
Light high contrast scale migration
Old color New color 0
white
1
2
2
5
3
7
4
7
5
8
6
9
7
10
8
11
9
black
- Theme specific neutral scales have been replaced with two new scales:
-
#1024
2348455
Thanks @langermank! - Extend neutral scale to include white/black (0-13) -
#956
13f62d5
Thanks @lukasoppermann! - Removed space tokens -
#1026
401fef1
Thanks @langermank! - - Update counter bg styles- Contrast fixes
-
#968
d845fdf
Thanks @lukasoppermann! - Rename data-[colorName]-color to data-[colorName]-color-emphasis
v8.2.4
Patch Changes
-
#993
adf195c
Thanks @lukasoppermann! - Add neutral to contrast checks and fix contrasts -
#994
4944964
Thanks @lukasoppermann! - Simplify contrast checker script and bugfix for bgColor.upsell.muted in dark high contrast mode -
#991
421741e
Thanks @lukasoppermann! - Update high contrast display colors to meet contrast requirements -
#977
86a263b
Thanks @lukasoppermann! - rm @ where it does not effect output -
#1018
abe900a
Thanks @langermank! - - Minor changes to prepare for adding more borders to high contrast themes- Adds tooltip pattern to allow for an inverse style in dark high contrast
-
#1012
2ac3905
Thanks @lukasoppermann! - add borderRadius.default token
v8.2.3
Patch Changes
-
#970
395d45f
Thanks @lukasoppermann! - Add a display font family variant as Figma does not automatically switch -
#969
52d8bf7
Thanks @langermank! - AddborderColor-translucent
v8.2.2
v8.2.1
Patch Changes
-
#963
8b726b8
Thanks @lukasoppermann! - Fix to output size fine and coarse as css -
#961
0828682
Thanks @langermank! - Addprimitives.css
index file -
#964
587ba02
Thanks @lukasoppermann! - Updates the figma build process to add and use new typographic scopes
v8.2.0
Minor Changes
- #954
8c4f775
Thanks @lukasoppermann! - Deprecated space tokens
Patch Changes
-
#948
56226cd
Thanks @smockle! - Increase secondary text contrast in hovered ActionMenu items (dark mode) by making fgColor-muted brighter. -
#942
0eb2320
Thanks @lukasoppermann! - Add missing plum color to display colors -
#881
adc84b5
Thanks @langermank! - Add new set ofmuted
data-vis colors for charts -
#953
09d1380
Thanks @lukasoppermann! - Added 2px and 6px size to base scale -
#944
02777f6
Thanks @lukasoppermann! - Added body-weight token to figma output -
#950
f0149e1
Thanks @lukasoppermann! - Added missing prop which lead to wrong output for subtitle line-height in Figma
v8.1.0
Minor Changes
-
#926
8357f04
Thanks @lukasoppermann! - Add css/mediaQuery formatter and replace use of cssWrapMediaQuery -
#931
518fbfc
Thanks @lukasoppermann! - Replacing css/themed and css/variables with css/advanced
Patch Changes
-
#941
7378534
Thanks @lukasoppermann! - change lineheight from pixel string to unitless pixel value, e.g. "24px" -> 24 -
#937
6c7d120
Thanks @lukasoppermann! - Adding missing coral color to display colors