@bcgov/design-tokens@v3.0.0
·
379 commits
to main
since this release
npm
https://www.npmjs.com/package/@bcgov/design-tokens/v/3.0.0
Changelog
3.0.0
Changed
- (breaking) Many tokens have been renamed to bring the generated tokens in line with the intended token names from Figma
- (breaking)
brand
color tokens renamed totheme
to differentiate from BC Visual Identity Program - (breaking)
gold
color scale values reworked to be lighter - (breaking)
label
font size changed from 0.875rem to 0.75rem - (breaking)
surface
group tokens referring to colors now include component names (button
,form
,menu
) - (breaking)
surface.border.light
color renamed tosurface.color.border.default
- (breaking)
borderRadius
moved fromsurface
group tolayout
group - (breaking) File names for JavaScript tokens are renamed from
variables.js
toindex.js
for shorter import statements - Tokens in
layout
group userem
equivalent of previouspx
values where possible in Figma
Added
primaryBlue
(equal toblue100
) andprimaryGold
(equal togold100
) dedicated color tokens addedsmallBody
font size added at 0.875rem (the oldlabel
size)xxxdense
line height added- CommonJS variables are included in
cjs
andcjs-prefixed
directories (with and without thebcds
prefix) in addition to the existing ESM variables injs
andjs-prefixed
directories - TypeScript type definitions are shipped with the JavaScript tokens
- Heading level 6
typography
group tokens added
Removed
- (breaking) Removed
surface.size
(legacy testing tokens) - (breaking) Removed
surface.borderRadius
(these were duplicates from thelayout
group)