@openedx/paragon 23.4.0 → 23.4.2
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/bin/paragon-scripts.js +2 -1
- package/dist/core.css +2 -2
- package/dist/core.css.map +1 -1
- package/dist/core.min.css +1 -1
- package/lib/build-tokens.js +4 -2
- package/package.json +1 -1
- package/styles/scss/core/_variables.scss +8 -2
package/lib/build-tokens.js
CHANGED
|
@@ -47,7 +47,9 @@ async function buildTokensCommand(commandArgs) {
|
|
|
47
47
|
},
|
|
48
48
|
);
|
|
49
49
|
|
|
50
|
-
const
|
|
50
|
+
const parsedThemes = Array.isArray(themes) ? themes : themes.split(',').map(t => t.trim());
|
|
51
|
+
|
|
52
|
+
const StyleDictionary = await initializeStyleDictionary({ themes: parsedThemes });
|
|
51
53
|
|
|
52
54
|
const coreConfig = {
|
|
53
55
|
include: [
|
|
@@ -144,7 +146,7 @@ async function buildTokensCommand(commandArgs) {
|
|
|
144
146
|
// Create list of style-dictionary configurations to build (core + theme variants)
|
|
145
147
|
const configs = [
|
|
146
148
|
{ config: coreConfig },
|
|
147
|
-
...
|
|
149
|
+
...parsedThemes.map((themeVariant) => {
|
|
148
150
|
const config = getStyleDictionaryConfig(themeVariant);
|
|
149
151
|
return {
|
|
150
152
|
config,
|
package/package.json
CHANGED
|
@@ -653,12 +653,18 @@ $box-shadow-sides: (
|
|
|
653
653
|
"centered"
|
|
654
654
|
) !default;
|
|
655
655
|
|
|
656
|
-
$box-shadow-sm:
|
|
656
|
+
$box-shadow-sm: var(--pgn-elevation-box-shadow-sm-offset-x)
|
|
657
|
+
var(--pgn-elevation-box-shadow-sm-offset-y)
|
|
658
|
+
var(--pgn-elevation-box-shadow-sm-blur)
|
|
659
|
+
var(--pgn-elevation-box-shadow-sm-color) !default;
|
|
657
660
|
$box-shadow: var(--pgn-elevation-box-shadow-base-offset-x)
|
|
658
661
|
var(--pgn-elevation-box-shadow-base-offset-y)
|
|
659
662
|
var(--pgn-elevation-box-shadow-base-blur)
|
|
660
663
|
var(--pgn-elevation-box-shadow-base-color) !default;
|
|
661
|
-
$box-shadow-lg:
|
|
664
|
+
$box-shadow-lg: var(--pgn-elevation-box-shadow-lg-offset-x)
|
|
665
|
+
var(--pgn-elevation-box-shadow-lg-offset-y)
|
|
666
|
+
var(--pgn-elevation-box-shadow-lg-blur)
|
|
667
|
+
var(--pgn-elevation-box-shadow-lg-color) !default;
|
|
662
668
|
|
|
663
669
|
$component-active-color: var(--pgn-color-active) !default;
|
|
664
670
|
$component-active-bg: var(--pgn-color-bg-active) !default;
|