genesys-react-components 0.2.4-devengage-1548-theme-updates.200 → 0.2.4-devengage-1548-theme-updates.201

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,6 +1,6 @@
1
1
  {
2
2
  "name": "genesys-react-components",
3
- "version": "0.2.4-devengage-1548-theme-updates.200",
3
+ "version": "0.2.4-devengage-1548-theme-updates.201",
4
4
  "description": "A React component library containing standardized form elements.",
5
5
  "type": "module",
6
6
  "types": "build/index.d.ts",
@@ -1,7 +1,6 @@
1
1
  @import './variables.scss';
2
2
 
3
- .theme-anemia,
4
- .theme-anemia-dark {
3
+ body {
5
4
  color: var($--theme-core-text-color);
6
5
 
7
6
  ::selection {
@@ -150,13 +149,14 @@
150
149
 
151
150
  pre {
152
151
  display: block;
153
- margin: 0;
152
+ margin: 40px 0;
154
153
  padding: 0;
155
154
  border-radius: 4px;
156
155
  background-color: var($--theme-core-code-background-color);
157
156
  height: 100%;
158
157
  width: 100%;
159
158
  box-sizing: border-box;
159
+ overflow: auto;
160
160
 
161
161
  code {
162
162
  background-color: transparent;
@@ -146,7 +146,7 @@ $--theme-toolbox-border-color: --theme-toolbox-border-color;
146
146
  * Theme definitions
147
147
  ***/
148
148
 
149
- $theme-anemia: (
149
+ $theme-vars: (
150
150
  // Core
151
151
  $--theme-core-text-color: #272d2d,
152
152
  $--theme-core-background-color: #ffffff,
@@ -271,7 +271,7 @@ $theme-anemia: (
271
271
  $--theme-toolbox-border-color: #c6cbd1
272
272
  );
273
273
 
274
- $theme-anemia-dark: (
274
+ $theme-vars-dark: (
275
275
  // Core
276
276
  // Original UX colors
277
277
  // $--theme-core-text-color: #eff0f5,
@@ -404,3 +404,10 @@ $theme-anemia-dark: (
404
404
  $--theme-toolbox-background-color: #2d2d2d,
405
405
  $--theme-toolbox-border-color: #75757a
406
406
  );
407
+
408
+ // writeCssVars rewrites a map of SCSS vars as CSS vars
409
+ @mixin writeCssVars($map: ()) {
410
+ @each $key, $value in $map {
411
+ #{$key}: $value;
412
+ }
413
+ }