@lightspeed/design-system-css 29.0.2 → 29.0.4
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/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@lightspeed/design-system-css","version":"29.0.
|
|
1
|
+
{"name":"@lightspeed/design-system-css","version":"29.0.4","description":"Lightspeed's Design System in CSS","repository":"https://github.com/lightspeed/helios.git","author":"Lightspeed Commerce Inc.","license":"SEE LICENSE IN LICENSE.md","main":"dist/index.css","publishConfig":{"access":"public"},"files":["src","dist"],"scripts":{"prebuild":"rm -rf dist","build":"yarn lint && yarn build:css && yarn build:retrocompatibility","build:css":"sass --load-path=../../node_modules -q src/index.scss:dist/index.css","build:retrocompatibility":"cp dist/index.css dist/vend-styles.css","watch":"yarn lint && yarn build:css --watch","lint":"yarn stylelint './src/**/*.scss' --config ./stylelint.config.json"},"dependencies":{"@lightspeed/design-system-tokens":"^29.0.4"},"devDependencies":{"stylelint":"^13.5.0","stylelint-scss":"^3.17.2"}}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
// We want to warn that the `vd-colour` function is deprecated but these tokens are still awaiting alternatives from Design.
|
|
2
|
+
$tokens-awaiting-migration: solar, mars, farout-pink, galaxy, deep-purple, neptune, shuttle-grey, box-supplementary;
|
|
3
|
+
|
|
1
4
|
/// Get a theme based colour for a specific colour element.
|
|
2
5
|
///
|
|
3
6
|
/// @ DEPRECATED
|
|
@@ -6,7 +9,10 @@
|
|
|
6
9
|
/// @param {String} [$_vd-colour-theme=$vd-colour-theme] @deprecated
|
|
7
10
|
/// @return {Colour<String>} - The retrieved colour for the element
|
|
8
11
|
@function vd-colour($_vd-colour-element, $_vd-colour-theme: _no_arg_provided_) {
|
|
9
|
-
@
|
|
12
|
+
@if (index($tokens-awaiting-migration, $_vd-colour-element) == null) {
|
|
13
|
+
@warn "[DEPRECATED] The 'vd-colour' function is deprecated and should not be used. Use 'hs-color' instead with the new unified theme tokens.";
|
|
14
|
+
}
|
|
15
|
+
|
|
10
16
|
@if ($_vd-colour-theme != _no_arg_provided_) {
|
|
11
17
|
@warn "[colour-functions] Passing a theme as a second argument to vd-colour is deprecated. You should remove it.";
|
|
12
18
|
}
|