@maxio-com/design-tokens 4.2.3 → 4.3.1

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/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Maxio UI Design Tokens
4
4
 
5
5
  This package is used to store and maintain design tokens for Maxio UI.
6
- Tokens exists in the form of CSS variables and are used to maintain a consistent design system across all Maxio UI components (used directly within our [Design System](https://github.com/maxio-com/ui-components)).
6
+ Tokens exist in the form of CSS variables and are used to maintain a consistent design system across all Maxio UI components (used directly within our [Design System](https://maxio-com.github.io/front-end-platform)).
7
7
 
8
8
  JavaScript variables are used only to refer to the CSS Variables with main purpose to fuel the Tailwind Theme - you should prefer using the CSS variables directly in any other case.
9
9
 
@@ -29,6 +29,7 @@ declare const _default: {
29
29
  9: string;
30
30
  };
31
31
  colors: {
32
+ scrim: string;
32
33
  black: {
33
34
  readonly "05": `var(--maxio-black-alpha-${string})`;
34
35
  readonly 10: `var(--maxio-black-alpha-${string})`;
@@ -192,6 +193,12 @@ declare const _default: {
192
193
  button: string;
193
194
  'button-active': string;
194
195
  };
196
+ zIndex: {
197
+ raised: string;
198
+ overlay: string;
199
+ modal: string;
200
+ dropdown: string;
201
+ };
195
202
  };
196
203
  };
197
204
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAkBE"}
1
+ {"version":3,"file":"tailwindTheme.d.ts","sourceRoot":"","sources":["../src/tailwindTheme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAyBE"}
@@ -3,9 +3,14 @@ export default {
3
3
  fontFamily,
4
4
  fontSize,
5
5
  lineHeight,
6
- colors: Object.assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, colors),
6
+ colors: Object.assign(Object.assign({ current: 'currentColor', inherit: 'inherit', transparent: 'transparent' }, colors), { scrim: 'var(--maxio-scrim)' }),
7
7
  extend: Object.assign({ boxShadow: {
8
8
  button: '0px -1.5px 0px 0px var(--maxio-black-alpha-10) inset, 0px 1.5px 0px 0px var(--maxio-color-border-tertiary-inverse) inset',
9
9
  'button-active': '0px 1.5px 0px 0px var(--maxio-black-alpha-10) inset',
10
+ }, zIndex: {
11
+ raised: 'var(--maxio-z-raised)',
12
+ overlay: 'var(--maxio-z-overlay)',
13
+ modal: 'var(--maxio-z-modal)',
14
+ dropdown: 'var(--maxio-z-dropdown)',
10
15
  } }, semanticColors),
11
16
  };
package/dist/theme.css CHANGED
@@ -267,6 +267,15 @@
267
267
  0px -1.5px 0px 0px var(--maxio-black-alpha-10) inset,
268
268
  0px 1.5px 0px 0px var(--maxio-color-border-tertiary-inverse) inset;
269
269
  --shadow-button-active: 0px 1.5px 0px 0px var(--maxio-black-alpha-10) inset;
270
+
271
+ /* stacking layers */
272
+ --z-index-raised: var(--maxio-z-raised);
273
+ --z-index-overlay: var(--maxio-z-overlay);
274
+ --z-index-modal: var(--maxio-z-modal);
275
+ --z-index-dropdown: var(--maxio-z-dropdown);
276
+
277
+ /* overlay colors */
278
+ --color-scrim: var(--maxio-scrim);
270
279
  }
271
280
 
272
281
  @custom-variant dark (&:where([data-maxio-mode="dark"], [data-maxio-mode="dark"] *));
@@ -153,6 +153,12 @@
153
153
  --maxio-border-radius-md: 6px;
154
154
  --maxio-border-radius-lg: 8px;
155
155
 
156
+ /* stacking layers */
157
+ --maxio-z-raised: 10;
158
+ --maxio-z-overlay: 40;
159
+ --maxio-z-modal: 50;
160
+ --maxio-z-dropdown: 50;
161
+
156
162
  /* semantic tokens */
157
163
 
158
164
  /* background colors */
@@ -449,6 +455,9 @@
449
455
  var(--maxio-blue-90),
450
456
  var(--maxio-blue-20)
451
457
  );
458
+
459
+ /* overlay colors */
460
+ --maxio-scrim: var(--maxio-black-alpha-60);
452
461
  }
453
462
 
454
463
  :root,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@maxio-com/design-tokens",
3
3
  "type": "module",
4
- "version": "4.2.3",
4
+ "version": "4.3.1",
5
5
  "description": "Design Tokens definition",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "a1c37be60bfef4a528c72c36cdd648d3c53330f1"
34
+ "gitHead": "7889fc2190e563c102af418f03bef92e1ac187fb"
35
35
  }