@maxio-com/design-tokens 4.2.3 → 4.4.0

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
 
@@ -72,6 +72,7 @@ declare const semanticColors: {
72
72
  'on-bg-fill-disabled': string;
73
73
  disabled: string;
74
74
  danger: string;
75
+ info: string;
75
76
  'icon-primary': string;
76
77
  'icon-secondary': string;
77
78
  'icon-tertiary': string;
@@ -1 +1 @@
1
- {"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;iCACW;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAiC/B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;6BAsB3B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;2BAI7B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;2BA+B3B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;iCAoBrB;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;CAMzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"semanticColors.d.ts","sourceRoot":"","sources":["../../src/config/semanticColors.ts"],"names":[],"mappings":"AAAA,KAAK,gBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhE,QAAA,MAAM,cAAc;iCACW;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAiC/B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;6BAsB3B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;2BAI7B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAgC3B;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;;;;;;;;;;;;;;;iCAoBrB;QAAE,KAAK,EAAE,gBAAgB,CAAA;KAAE;;;;;CAMzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -2,7 +2,7 @@ const semanticColors = {
2
2
  backgroundColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-bg-primary)', 'primary-hover': 'var(--maxio-color-bg-primary-hover)', 'primary-active': 'var(--maxio-color-bg-primary-active)', secondary: 'var(--maxio-color-bg-secondary)', 'secondary-hover': 'var(--maxio-color-bg-secondary-hover)', 'secondary-active': 'var(--maxio-color-bg-secondary-active)', tertiary: 'var(--maxio-color-bg-tertiary)', 'tertiary-hover': 'var(--maxio-color-bg-tertiary-hover)', 'tertiary-active': 'var(--maxio-color-bg-tertiary-active)', inverse: 'var(--maxio-color-bg-inverse)', 'inverse-hover': 'var(--maxio-color-bg-inverse-hover)', 'inverse-active': 'var(--maxio-color-bg-inverse-active)', neutral: 'var(--maxio-color-bg-neutral)', info: 'var(--maxio-color-bg-info)', success: 'var(--maxio-color-bg-success)', warning: 'var(--maxio-color-bg-warning)', danger: 'var(--maxio-color-bg-danger)', highlight: 'var(--maxio-color-bg-highlight)', 'fill-brand': 'var(--maxio-color-bg-fill-brand)', 'fill-brand-hover': 'var(--maxio-color-bg-fill-brand-hover)', 'fill-brand-active': 'var(--maxio-color-bg-fill-brand-active)', 'fill-neutral': 'var(--maxio-color-bg-fill-neutral)', 'fill-info': 'var(--maxio-color-bg-fill-info)', 'fill-success': 'var(--maxio-color-bg-fill-success)', 'fill-warning': 'var(--maxio-color-bg-fill-warning)', 'fill-danger': 'var(--maxio-color-bg-fill-danger)', 'fill-danger-hover': 'var(--maxio-color-bg-fill-danger-hover)', 'fill-danger-active': 'var(--maxio-color-bg-fill-danger-active)', 'fill-highlight': 'var(--maxio-color-bg-fill-highlight)', 'fill-disabled': 'var(--maxio-color-bg-fill-disabled)' })),
3
3
  borderColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { DEFAULT: 'var(--maxio-color-border-primary)', primary: 'var(--maxio-color-border-primary)', secondary: 'var(--maxio-color-border-secondary)', tertiary: 'var(--maxio-color-border-tertiary)', inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)', brand: 'var(--maxio-color-border-brand)', info: 'var(--maxio-color-border-info)', 'info-secondary': 'var(--maxio-color-border-info-secondary)', success: 'var(--maxio-color-border-success)', 'success-secondary': 'var(--maxio-color-border-success-secondary)', warning: 'var(--maxio-color-border-warning)', 'warning-secondary': 'var(--maxio-color-border-warning-secondary)', danger: 'var(--maxio-color-border-danger)', 'danger-secondary': 'var(--maxio-color-border-danger-secondary)', highlight: 'var(--maxio-color-border-highlight)', 'highlight-secondary': 'var(--maxio-color-border-highlight-secondary)', avatar: 'var(--maxio-color-border-avatar)' })),
4
4
  divideColor: ({ theme }) => (Object.assign(Object.assign({}, theme('borderColor')), { DEFAULT: 'var(--maxio-color-border-primary)' })),
5
- textColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-text-primary)', secondary: 'var(--maxio-color-text-secondary)', tertiary: 'var(--maxio-color-text-tertiary)', inverse: 'var(--maxio-color-text-inverse)', 'on-bg-fill-disabled': 'var(--maxio-color-text-on-bg-fill-disabled)', disabled: 'var(--maxio-color-text-disabled)', danger: 'var(--maxio-color-text-danger)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-tertiary': 'var(--maxio-color-icon-tertiary)', 'icon-inverse': 'var(--maxio-color-icon-inverse)', 'icon-disabled': 'var(--maxio-color-icon-disabled)', 'icon-on-bg-fill-disabled': 'var(--maxio-color-icon-on-bg-fill-disabled)', 'icon-brand': 'var(--maxio-color-icon-brand)', 'icon-neutral': 'var(--maxio-color-icon-neutral)', 'icon-info': 'var(--maxio-color-icon-info)', 'icon-success': 'var(--maxio-color-icon-success)', 'icon-warning': 'var(--maxio-color-icon-warning)', 'icon-danger': 'var(--maxio-color-icon-danger)', 'icon-highlight': 'var(--maxio-color-icon-highlight)', link: 'var(--maxio-color-link)', 'link-high-contrast': 'var(--maxio-color-link-high-contrast)', 'link-hover': 'var(--maxio-color-link-hover)', 'link-active': 'var(--maxio-color-link-active)' })),
5
+ textColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-text-primary)', secondary: 'var(--maxio-color-text-secondary)', tertiary: 'var(--maxio-color-text-tertiary)', inverse: 'var(--maxio-color-text-inverse)', 'on-bg-fill-disabled': 'var(--maxio-color-text-on-bg-fill-disabled)', disabled: 'var(--maxio-color-text-disabled)', danger: 'var(--maxio-color-text-danger)', info: 'var(--maxio-color-text-info)', 'icon-primary': 'var(--maxio-color-icon-primary)', 'icon-secondary': 'var(--maxio-color-icon-secondary)', 'icon-tertiary': 'var(--maxio-color-icon-tertiary)', 'icon-inverse': 'var(--maxio-color-icon-inverse)', 'icon-disabled': 'var(--maxio-color-icon-disabled)', 'icon-on-bg-fill-disabled': 'var(--maxio-color-icon-on-bg-fill-disabled)', 'icon-brand': 'var(--maxio-color-icon-brand)', 'icon-neutral': 'var(--maxio-color-icon-neutral)', 'icon-info': 'var(--maxio-color-icon-info)', 'icon-success': 'var(--maxio-color-icon-success)', 'icon-warning': 'var(--maxio-color-icon-warning)', 'icon-danger': 'var(--maxio-color-icon-danger)', 'icon-highlight': 'var(--maxio-color-icon-highlight)', link: 'var(--maxio-color-link)', 'link-high-contrast': 'var(--maxio-color-link-high-contrast)', 'link-hover': 'var(--maxio-color-link-hover)', 'link-active': 'var(--maxio-color-link-active)' })),
6
6
  ringColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { primary: 'var(--maxio-color-border-primary)', secondary: 'var(--maxio-color-border-secondary)', tertiary: 'var(--maxio-color-border-tertiary)', inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)', brand: 'var(--maxio-color-border-brand)', info: 'var(--maxio-color-border-info)', 'info-secondary': 'var(--maxio-color-border-info-secondary)', success: 'var(--maxio-color-border-success)', 'success-secondary': 'var(--maxio-color-border-success-secondary)', warning: 'var(--maxio-color-border-warning)', 'warning-secondary': 'var(--maxio-color-border-warning-secondary)', danger: 'var(--maxio-color-border-danger)', 'danger-secondary': 'var(--maxio-color-border-danger-secondary)', highlight: 'var(--maxio-color-border-highlight)', 'highlight-secondary': 'var(--maxio-color-border-highlight-secondary)' })),
7
7
  ringOffsetColor: ({ theme }) => (Object.assign(Object.assign({}, theme('colors')), { inverse: 'var(--maxio-color-border-inverse)', focus: 'var(--maxio-color-border-focus)', 'focus-inset': 'var(--maxio-color-border-focus-inset)' })),
8
8
  };
@@ -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})`;
@@ -142,6 +143,7 @@ declare const _default: {
142
143
  'on-bg-fill-disabled': string;
143
144
  disabled: string;
144
145
  danger: string;
146
+ info: string;
145
147
  'icon-primary': string;
146
148
  'icon-secondary': string;
147
149
  'icon-tertiary': string;
@@ -192,6 +194,12 @@ declare const _default: {
192
194
  button: string;
193
195
  'button-active': string;
194
196
  };
197
+ zIndex: {
198
+ raised: string;
199
+ overlay: string;
200
+ modal: string;
201
+ dropdown: string;
202
+ };
195
203
  };
196
204
  };
197
205
  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
@@ -189,6 +189,7 @@
189
189
  --text-color-on-bg-fill-disabled: var(--maxio-color-text-on-bg-fill-disabled);
190
190
  --text-color-disabled: var(--maxio-color-text-disabled);
191
191
  --text-color-danger: var(--maxio-color-text-danger);
192
+ --text-color-info: var(--maxio-color-text-info);
192
193
 
193
194
  /* icon colors */
194
195
  --text-color-icon-primary: var(--maxio-color-icon-primary);
@@ -267,6 +268,15 @@
267
268
  0px -1.5px 0px 0px var(--maxio-black-alpha-10) inset,
268
269
  0px 1.5px 0px 0px var(--maxio-color-border-tertiary-inverse) inset;
269
270
  --shadow-button-active: 0px 1.5px 0px 0px var(--maxio-black-alpha-10) inset;
271
+
272
+ /* stacking layers */
273
+ --z-index-raised: var(--maxio-z-raised);
274
+ --z-index-overlay: var(--maxio-z-overlay);
275
+ --z-index-modal: var(--maxio-z-modal);
276
+ --z-index-dropdown: var(--maxio-z-dropdown);
277
+
278
+ /* overlay colors */
279
+ --color-scrim: var(--maxio-scrim);
270
280
  }
271
281
 
272
282
  @custom-variant dark (&:where([data-maxio-mode="dark"], [data-maxio-mode="dark"] *));
@@ -59,6 +59,9 @@
59
59
  --maxio-blue-100: hsl(255deg 100% 26%);
60
60
  --maxio-blue-105: hsl(260deg 100% 17%);
61
61
 
62
+ /* navy colors */
63
+ --maxio-navy-80: hsl(213deg 52% 24%);
64
+
62
65
  /* green colors */
63
66
  --maxio-green-05: hsl(82deg 84% 87%);
64
67
  --maxio-green-10: hsl(81deg 81% 79%);
@@ -153,6 +156,12 @@
153
156
  --maxio-border-radius-md: 6px;
154
157
  --maxio-border-radius-lg: 8px;
155
158
 
159
+ /* stacking layers */
160
+ --maxio-z-raised: 10;
161
+ --maxio-z-overlay: 40;
162
+ --maxio-z-modal: 50;
163
+ --maxio-z-dropdown: 50;
164
+
156
165
  /* semantic tokens */
157
166
 
158
167
  /* background colors */
@@ -434,6 +443,11 @@
434
443
  var(--maxio-red-80),
435
444
  var(--maxio-red-60)
436
445
  );
446
+ /* Text on bg-info surfaces. */
447
+ --maxio-color-text-info: light-dark(
448
+ var(--maxio-navy-80),
449
+ var(--maxio-blue-20)
450
+ );
437
451
 
438
452
  /* link colors */
439
453
  --maxio-color-link: light-dark(var(--maxio-blue-70), var(--maxio-blue-40));
@@ -449,6 +463,9 @@
449
463
  var(--maxio-blue-90),
450
464
  var(--maxio-blue-20)
451
465
  );
466
+
467
+ /* overlay colors */
468
+ --maxio-scrim: var(--maxio-black-alpha-60);
452
469
  }
453
470
 
454
471
  :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.4.0",
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": "6e7324284070fdc38072a75a20513abc29cd07da"
35
35
  }