v4.0.0
What's Changed
Rebranding
🚩BREAKING🚩 Updates brand
colors, palette
colors, and token
s:
- Removes
palette
colors:purple
,deeppurple
,indigo
,brown
,cyan
,teal
,lightgreen
,lime
,amber
,deeporange
,bluegrey
- Removes
palette.grey
scales:v_300
,v_500
,v_700
,v_900
- Removes
brand
andpalette
scales (exceptpalette.grey
):v_50
,v_100
,v_300
,v_500
,v_700
,v_900
- Removes content-related tokens:
exercise
,video
,audio
,document
,html5
,slideshow
- Removes other tokens:
appBarFullscreen
,appBarFullscreenDark
,linkDark
- Some existing
palette
colors look differently - Adds new tokens and colors
- Global styles:
<body>
background color changed fromgrey.v_100
to lightergrey.v_50
Guidance:
- Refer to the "Colors" documentation page to see what colors, scales, and tokens are available
- Replace removed palette and brand colors, scales, and tokens
- Search for any hardcoded hex,rgb(a),hsl(a), or named colors such as 'white' and theme them instead
- Visually check places that use existing palette and adjust scale. You may need to increase scale as many colors are lighter.
- If you use
generateGlobalStyles
that generates background color for<body>
and usegrey.v_100
in some components to match the background color, you may need to update the components togrey.v_50
. - You may also see if there are any useful updates to be done in regards to new tokens, e.g. replacing a
palette
color with a newtoken
that describes a function of a color better - Regexes and migration overview from the Kolibri migration pull request may help. See the "Upgrade process" section of the PR description.
useKResponsiveWindow
- 🚩BREAKING🚩 Moves
useKResponsiveWindow
from/lib
to/lib/composables
- Guidance: Update
import useKResponsiveWindow from 'kolibri-design-system/lib/useKResponsiveWindow';
toimport useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
- Guidance: Update
KResponsiveWindow
- Removes deprecated
KResponsiveWindow
mixin's documentation page in favor of the newuseKResponsiveWindow
documentation page
Dependencies
- Pins dependencies to their exact version
- Adds Node 10.x and Yarn 1.x into package.json
engines
(these were expected before but not explicitly)
Full Changelog: v3.1.0...v4.0.0