@eui/styles 17.0.0-next.1 → 17.0.0-next.11

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.
Files changed (75) hide show
  1. package/dist/assets/primeng-legacy/eui-primeng.min.css +2 -2
  2. package/dist/styles/eui-ecl-ec.css +7 -8
  3. package/dist/styles/eui-ecl-ec.css.map +1 -1
  4. package/dist/styles/eui-ecl-eu.css +7 -8
  5. package/dist/styles/eui-ecl-eu.css.map +1 -1
  6. package/dist/styles/eui-ecl.css +2 -0
  7. package/dist/styles/eui-ecl.css.map +1 -0
  8. package/dist/styles/eui-icons-flags.css +2 -0
  9. package/dist/styles/eui-icons-flags.css.map +1 -0
  10. package/dist/styles/eui-legacy-bootstrap-utilities.css.map +1 -1
  11. package/dist/styles/eui-legacy-icons-font.css +2 -0
  12. package/dist/styles/eui-legacy-icons-font.css.map +1 -0
  13. package/dist/styles/eui-print.css +1 -1
  14. package/dist/styles/eui-print.css.map +1 -1
  15. package/dist/styles/eui-showcase-all.css +2 -1
  16. package/dist/styles/eui-showcase-all.css.map +1 -1
  17. package/dist/styles/eui-theme-compact.css +2 -0
  18. package/dist/styles/eui-theme-compact.css.map +1 -0
  19. package/dist/styles/eui-theme-dark.css +2 -0
  20. package/dist/styles/eui-theme-dark.css.map +1 -0
  21. package/dist/styles/eui-utilities.css +1 -1
  22. package/dist/styles/eui-utilities.css.map +1 -1
  23. package/dist/styles/eui.css +1 -1
  24. package/dist/styles/eui.css.map +1 -1
  25. package/package.json +6 -1
  26. package/src/assets/primeng-legacy/eui-primeng.min.css +2 -2
  27. package/src/styles/01-ecl/_module-eui-ecl.scss +27 -0
  28. package/src/styles/02-base/mixins/_eui-border-state.scss +7 -7
  29. package/src/styles/02-base/mixins/_eui-clearable-input.scss +26 -13
  30. package/src/styles/02-base/mixins/_eui-input.scss +7 -8
  31. package/src/styles/02-base/mixins/_eui-resizable.scss +14 -0
  32. package/src/styles/02-base/mixins/_eui-scrollbars.scss +2 -2
  33. package/src/styles/02-base/mixins/_module.scss +1 -6
  34. package/src/styles/02b-base-vars/_layout.vars.scss +0 -23
  35. package/src/styles/02b-base-vars/_module.scss +1 -0
  36. package/src/styles/02b-base-vars/_other.vars.scss +3 -0
  37. package/src/styles/03-assets/_module-icons-flags.scss +1 -0
  38. package/src/styles/03-assets/_module-legacy-icons-font.scss +1 -0
  39. package/src/styles/05-material/_material.scss +54 -0
  40. package/src/styles/05-material/_module.scss +1 -25
  41. package/src/styles/05-material/overrides/_calendar.scss +2 -1
  42. package/src/styles/06-shared/_module.scss +5 -2
  43. package/src/styles/07-elements/_module.scss +2 -1
  44. package/src/styles/07-elements/directives/_eui-clearable-input.scss +26 -0
  45. package/src/styles/{06-shared → 07-elements/directives}/_eui-input-maxlength.scss +0 -2
  46. package/src/styles/07-elements/directives/_module.scss +2 -0
  47. package/src/styles/07-elements/eui-table-default/_eui-table-default.scss +1 -73
  48. package/src/styles/08-themes/_module-compact.scss +7 -0
  49. package/src/styles/08-themes/_module-dark.scss +1 -0
  50. package/src/styles/10-media/_module-print.scss +61 -291
  51. package/src/styles/99-utilities/_module.scss +1 -1
  52. package/src/styles/999-showcase/_component-demo-exports.scss +12 -2
  53. package/src/styles/999-showcase/_module.scss +1 -1
  54. package/src/styles/999-showcase/_prism-theme.scss +2 -1
  55. package/src/styles/999-showcase/_specific-typography.scss +14 -8
  56. package/src/styles/eui-ecl.scss +7 -0
  57. package/src/styles/eui-icons-flags.scss +7 -0
  58. package/src/styles/eui-legacy-icons-font.scss +7 -0
  59. package/src/styles/eui-print.scss +2 -0
  60. package/src/styles/eui-showcase-all-dev.scss +10 -11
  61. package/src/styles/eui-showcase-all.scss +8 -10
  62. package/src/styles/eui-theme-compact.scss +7 -0
  63. package/src/styles/eui-theme-dark.scss +7 -0
  64. package/src/styles/eui.scss +0 -6
  65. package/src/styles/02-base/mixins/_eui-accessibility.scss +0 -39
  66. package/src/styles/02-base/mixins/_ux-clearable-input.scss +0 -29
  67. package/src/styles/02-base/mixins/_ux-form-control-state.scss +0 -32
  68. package/src/styles/05-material/_module-cdk.scss +0 -110
  69. package/src/styles/05-material/compiled/_full.scss +0 -685
  70. package/src/styles/05-material/compiled/_sources.scss +0 -382
  71. package/src/styles/06-shared/_default.scss +0 -11
  72. /package/dist/assets/{images/common → primeng-legacy/images}/drag-indicator.png +0 -0
  73. /package/dist/assets/{images/common → primeng-legacy/images}/drag-indicator.svg +0 -0
  74. /package/src/assets/{images/common → primeng-legacy/images}/drag-indicator.png +0 -0
  75. /package/src/assets/{images/common → primeng-legacy/images}/drag-indicator.svg +0 -0
@@ -0,0 +1,27 @@
1
+ @use '@ecl/theme-eu';
2
+
3
+ // Icons & Images
4
+ // @use '@ecl/vanilla-component-icon/icon';
5
+
6
+ // Layout
7
+ // @use '@ecl/vanilla-layout-grid/grid';
8
+
9
+ // Other atoms
10
+ @use '@ecl/vanilla-component-label/label-eu';
11
+ @use '@ecl/vanilla-component-link/link-eu';
12
+
13
+ // @use '@ecl/vanilla-utility-background/background';
14
+ // @use '@ecl/vanilla-utility-border/border';
15
+ // @use '@ecl/vanilla-utility-clearfix/clearfix';
16
+ // @use '@ecl/vanilla-utility-dimension/dimension';
17
+ @use '@ecl/vanilla-utility-flex/flex';
18
+ // @use '@ecl/vanilla-utility-float/float';
19
+ // @use '@ecl/vanilla-utility-disablescroll/disablescroll';
20
+ @use '@ecl/vanilla-utility-display/display';
21
+ // @use '@ecl/vanilla-utility-media/media';
22
+ // @use '@ecl/vanilla-utility-print/print';
23
+ @use '@ecl/vanilla-utility-screen-reader/screen-reader';
24
+ // @use '@ecl/vanilla-utility-shadow/shadow';
25
+ @use '@ecl/vanilla-utility-spacing/spacing';
26
+ @use '@ecl/vanilla-utility-typography/typography-eu';
27
+ @use '@ecl/vanilla-utility-z-index/z-index';
@@ -1,30 +1,30 @@
1
1
  // Left side border status
2
2
  @mixin eui-border-state($state: null) {
3
3
  @if ($state == primary) {
4
- border-left: v(eui-border-state-width) solid v(eui-base-color-primary-100);
4
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-primary-100);
5
5
  }
6
6
 
7
7
  @if ($state == secondary) {
8
- border-left: v(eui-border-state-width) solid v(eui-base-color-grey-25);
8
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-grey-25);
9
9
  }
10
10
 
11
11
  @if ($state == info) {
12
- border-left: v(eui-border-state-width) solid v(eui-base-color-info-100);
12
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-info-100);
13
13
  }
14
14
 
15
15
  @if ($state == success) {
16
- border-left: v(eui-border-state-width) solid v(eui-base-color-success-100);
16
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-success-100);
17
17
  }
18
18
 
19
19
  @if ($state == warning) {
20
- border-left: v(eui-border-state-width) solid v(eui-base-color-warning-100);
20
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-warning-100);
21
21
  }
22
22
 
23
23
  @if ($state == danger) {
24
- border-left: v(eui-border-state-width) solid v(eui-base-color-danger-100);
24
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-danger-100);
25
25
  }
26
26
 
27
27
  @if ($state == accent) {
28
- border-left: v(eui-border-state-width) solid v(eui-base-color-accent-100);
28
+ border-left: v(eui-base-spacing-xs) solid v(eui-base-color-accent-100);
29
29
  }
30
30
  }
@@ -1,18 +1,31 @@
1
+ // This mixin sets the layout of the euiClearable directive
1
2
  @mixin eui-clearable-input() {
2
- align-items: center;
3
- background-color: v(eui-base-color-white);
4
- color: v(eui-base-color-grey-35);
5
- cursor: pointer;
6
- display: flex;
7
- font-size: v(eui-base-font-size-m);
8
- user-select: none;
3
+ .eui-clearable-wrapper {
4
+ align-items: center;
5
+ display: flex;
6
+ position: relative;
7
+ width: 100%;
9
8
 
10
- &:before {
11
- position: absolute;
12
- right: v(eui-base-spacing-s);
13
- }
9
+ .eui-input-text--clearable-icon {
10
+ bottom: calc(#{v(eui-base-spacing-s)} - 2px);
11
+ cursor: pointer;
12
+ position: absolute;
13
+ right: v(eui-base-spacing-s);
14
+ user-select: none;
15
+ visibility: visible;
16
+ z-index: v(eui-base-z-index-clearable-icon);
17
+
18
+ &:focus {
19
+ @include eui-accessible-focus();
20
+ }
21
+
22
+ > svg {
23
+ fill: v(eui-base-color-grey-35);
14
24
 
15
- &:hover {
16
- color: v(eui-base-color-grey-100);
25
+ &:hover {
26
+ fill: v(eui-base-color-danger-100);
27
+ }
28
+ }
29
+ }
17
30
  }
18
31
  }
@@ -2,16 +2,17 @@
2
2
  // Used for: eui-input-text, eui-input-number, eui-select, eui-textarea, eui-datepicker, eui-autocomplete
3
3
  @mixin eui-input() {
4
4
  @include eui-font(m, ui);
5
- @include eui-accessible-focus-border();
6
5
  appearance: none;
7
6
  background-color: v(eui-base-color-white);
8
7
  border: 1px solid v(eui-base-color-grey-50);
9
8
  border-radius: v(eui-base-border-radius);
9
+ box-shadow: v(eui-app-box-shadow);
10
10
  color: v(eui-base-color-grey-100);
11
11
  display: block;
12
12
  min-height: calc(#{v(eui-base-spacing-2xl)} + #{v(eui-base-spacing-2xs)}); // DS aligned 44px
13
13
  padding: calc(#{v(eui-base-spacing-s)} - 1px); // Trick to have inner paddings without exceeding default min-height
14
14
  width: 100%;
15
+ @include eui-accessible-focus();
15
16
 
16
17
  &::placeholder {
17
18
  color: v(eui-base-color-grey-50) !important;
@@ -51,21 +52,19 @@
51
52
  padding-right: v(eui-base-spacing-2xl);
52
53
 
53
54
  &-icon {
54
- visibility: visible;
55
+ bottom: calc(#{v(eui-base-spacing-s)} - 2px);
56
+ cursor: pointer;
55
57
  position: absolute;
56
58
  right: v(eui-base-spacing-s);
57
- cursor: pointer;
58
59
  user-select: none;
59
-
60
- &:focus {
61
- @include eui-accessible-focus-border-rounded();
62
- }
60
+ visibility: visible;
61
+ @include eui-accessible-focus();
63
62
 
64
63
  > svg {
65
64
  fill: v(eui-base-color-grey-35);
66
65
 
67
66
  &:hover {
68
- fill: v(eui-base-color-grey-100);
67
+ fill: v(eui-base-color-danger-100);
69
68
  }
70
69
  }
71
70
  }
@@ -0,0 +1,14 @@
1
+ @mixin eui-resizable( $eui-resizable-bar-right-offset: unset, $eui-resizable-icon-top-offset: v(eui-base-spacing-m) ) {
2
+ .eui-resizable {
3
+ .eui-resizable-bar {
4
+ // For eui-page-column
5
+ @if ($eui-resizable-bar-right-offset != unset) {
6
+ right: calc($eui-resizable-bar-right-offset + 2px);
7
+ }
8
+ }
9
+
10
+ .eui-resizable-icon__container {
11
+ transform: translateY( calc($eui-resizable-icon-top-offset + 2px) );
12
+ }
13
+ }
14
+ }
@@ -1,4 +1,4 @@
1
- @mixin eui-scrollbars( $size: 8px, $foreground-color: v(eui-base-color-grey-20), $background-color: v(eui-base-color-grey-10), $border-radius: 5rem, $state: active ) {
1
+ @mixin eui-scrollbars( $size: 8px, $foreground-color: v(eui-base-color-grey-20), $background-color: v(eui-base-color-grey-5), $border-radius: 5rem, $state: active ) {
2
2
  &::-webkit-scrollbar {
3
3
  display: inherit;
4
4
  height: $size; // horizontal scroll
@@ -19,7 +19,7 @@
19
19
  border-radius: $border-radius;
20
20
 
21
21
  &:hover {
22
- background-color: v(eui-base-color-grey-25);
22
+ background-color: v(eui-base-color-grey-35);
23
23
  }
24
24
  }
25
25
  @else {
@@ -1,4 +1,3 @@
1
- // @import 'eui-accessibility'; // Moved to eui-styles-base
2
1
  @import 'eui-border-radius';
3
2
  @import 'eui-flex-container';
4
3
  @import 'eui-flex-column-wrapper';
@@ -6,11 +5,7 @@
6
5
  @import 'eui-utils';
7
6
  @import 'eui-bg-rounded';
8
7
  @import 'eui-disabled';
9
- @import 'eui-clearable-input';
10
8
  @import 'eui-border-state';
11
9
  @import 'eui-loading-indicator';
12
10
  @import 'eui-input';
13
-
14
- // v17 removed
15
- // @import 'ux-form-control-state';
16
- // @import 'ux-clearable-input';
11
+ @import 'eui-resizable';
@@ -41,29 +41,6 @@
41
41
  --eui-page-column--size-xxl: 300px;
42
42
  --eui-page-column--size-xxxl: 350px;
43
43
  --eui-page-column-footer-height: 3.5rem;
44
-
45
- // Misc
46
- --eui-border-state-width: 6px;
47
-
48
- // Colors
49
- // eUI App elements
50
- --eui-app-header-bg-color: var(--eui-base-color-white);
51
- --eui-app-header-title-color: var(--eui-base-color-grey-100);
52
- --eui-app-header-subtitle-color: var(--eui-base-color-grey-75);
53
-
54
- --eui-app-toolbar-color: var(--eui-base-color-white);
55
- --eui-app-toolbar-bg-color: var(--eui-base-color-primary-100);
56
- --eui-app-toolbar-border-bottom-color: var(--eui-base-color-primary-25);
57
-
58
- --eui-app-sidebar-bg-color: var(--eui-base-color-grey-2);
59
- --eui-app-sidebar-border-right-color: #f2f4f9;
60
-
61
- --eui-app-body-bg-color: var(--eui-base-color-grey-2);
62
- --eui-app-main-bg-color: var(--eui-base-color-grey-2);
63
-
64
- --eui-app-footer-color: var(--eui-base-color-font);
65
- --eui-app-footer-bg-color: var(--eui-base-color-grey-2);
66
- --eui-app-footer-border-top-color: #e8ebf1;
67
44
  }
68
45
 
69
46
  .xs, .sm {
@@ -1,2 +1,3 @@
1
1
  @import '@eui/styles-base/src/styles/03-vars/module';
2
2
  @import 'layout.vars';
3
+ @import 'other.vars';
@@ -0,0 +1,3 @@
1
+ :root {
2
+ --eui-app-box-shadow: none; // var(--eui-base-shadow-z-depth-0);
3
+ }
@@ -0,0 +1 @@
1
+ @import '@eui/styles-base/src/styles/05-assets/module-icons-flags';
@@ -0,0 +1 @@
1
+ @import '@eui/styles-base/src/styles/05-assets/module-icons-font';
@@ -0,0 +1,54 @@
1
+ // Material colors : generated with : http://mcg.mbitson.com
2
+
3
+ // PRIMARY
4
+ $palette-primary-300: #4d7cb4;
5
+ $palette-primary-500: #004494; // ECL BASE rgb(0, 68, 148)
6
+ $palette-primary-900: #001f65;
7
+
8
+ // ACCENT
9
+ $palette-accent-A100: #fff;
10
+ $palette-accent-A200: #fffcf4;
11
+ $palette-accent-A400: #ffecc1;
12
+
13
+ $private-eui-color: #999;
14
+ $private-eui-color-white: #fff;
15
+
16
+ $mat-eui-primary: (
17
+ 300: $palette-primary-300,
18
+ 500: $palette-primary-500,
19
+ 900: $palette-primary-900,
20
+ contrast: (
21
+ 300: $private-eui-color,
22
+ 500: $private-eui-color-white,
23
+ 900: $private-eui-color-white,
24
+ )
25
+ );
26
+
27
+ $mat-eui-accent: (
28
+ A100: $palette-accent-A100,
29
+ A200: $palette-accent-A200,
30
+ A400: $palette-accent-A400,
31
+ contrast: (
32
+ A100: $private-eui-color,
33
+ A200: $private-eui-color,
34
+ A400: $private-eui-color,
35
+ )
36
+ );
37
+
38
+ @use '@angular/material' as mat;
39
+
40
+ @include mat.core();
41
+
42
+ // define palettes
43
+ $eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
44
+ $eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
45
+
46
+ // define theme
47
+ $eui-theme: mat.define-light-theme((
48
+ color: (
49
+ primary: $eui-t-color-primary,
50
+ accent: $eui-t-color-accent,
51
+ )
52
+ ));
53
+
54
+ @include mat.datepicker-theme($eui-theme);
@@ -1,26 +1,2 @@
1
- // @use '@angular/material' as mat;
2
-
3
- // @include mat.core();
4
-
5
- // // define palettes
6
- // $eui-t-color-primary: mat.define-palette($mat-eui-primary, 500, 300, 900); // $palette-name, $default: 500, $lighter: 100, $darker: 700
7
- // $eui-t-color-accent: mat.define-palette($mat-eui-accent, A200, A100, A400);
8
- // $eui-t-color-warn: mat.define-palette($mat-eui-danger, 500, A700, 900); // The warn palette is optional (default: $mat-red)
9
-
10
- // // define theme
11
- // $eui-theme: mat.define-light-theme((
12
- // color: (
13
- // primary: $eui-t-color-primary,
14
- // accent: $eui-t-color-accent,
15
- // warn: $eui-t-color-warn,
16
- // )
17
- // ));
18
-
19
- // // Apply theme
20
- // @include mat.core-theme($eui-theme);
21
- // @include mat.datepicker-theme($eui-theme);
22
- // @include mat.autocomplete-theme($eui-theme);
23
-
24
- // TODO v17 - check either alternatives or excludes to specific global css
25
- @import 'compiled/full';
1
+ @import 'material';
26
2
  @import 'overrides/module';
@@ -1,5 +1,6 @@
1
1
  .mat-calendar {
2
- font-size: small; // chore(eui-date-range-selector): deprecates/removes unused Inputs - BREAKING CHANGE - EUI-6781
2
+ font-size: small !important;
3
+ font-family: v(eui-base-font-family) !important;
3
4
 
4
5
  &.mat-calendar-year {
5
6
  .mat-calendar-period-button {
@@ -1,2 +1,5 @@
1
- // @import 'default'; // v17 removed
2
- @import 'eui-input-maxlength'; // eUI13+ DS aligned // v16 kept as-is as used into directive
1
+ // Hide browser agent default (black) color
2
+ :focus,
3
+ :focus-visible {
4
+ outline: none;
5
+ }
@@ -1,2 +1,3 @@
1
1
  @import '@eui/styles-base/src/styles/04-elements/module';
2
- @import 'eui-table-default/eui-table-default';
2
+ @import './eui-table-default/eui-table-default';
3
+ @import './directives/module';
@@ -0,0 +1,26 @@
1
+ // Sets the layout of the euiClearable directive
2
+ .eui-clearable-wrapper {
3
+ align-items: center;
4
+ display: flex;
5
+ position: relative;
6
+ width: 100%;
7
+
8
+ .eui-input-text--clearable-icon {
9
+ bottom: calc(#{v(eui-base-spacing-s)} - 2px);
10
+ cursor: pointer;
11
+ position: absolute;
12
+ right: v(eui-base-spacing-s);
13
+ user-select: none;
14
+ visibility: visible;
15
+ z-index: v(eui-base-z-index-clearable-icon);
16
+ @include eui-accessible-focus();
17
+
18
+ > svg {
19
+ fill: v(eui-base-color-grey-35);
20
+
21
+ &:hover {
22
+ fill: v(eui-base-color-danger-100);
23
+ }
24
+ }
25
+ }
26
+ }
@@ -1,5 +1,3 @@
1
- // TODO v17 - extract directive bound styling to global particular structure here to be recongnizable and kept
2
-
3
1
  .eui-input-maxlength-wrapper {
4
2
  position: relative;
5
3
  width: 100%;
@@ -0,0 +1,2 @@
1
+ @import 'eui-clearable-input';
2
+ @import 'eui-input-maxlength';
@@ -1,4 +1,3 @@
1
- // stylelint-disable no-descending-specificity
2
1
  table.eui-table-default {
3
2
  background-color: transparent;
4
3
  border-collapse: collapse;
@@ -31,7 +30,7 @@ table.eui-table-default {
31
30
  }
32
31
 
33
32
  tr {
34
- background: v(eui-base-color-grey-5);
33
+ background: v(eui-base-color-grey-10);
35
34
  border-top: 0;
36
35
  }
37
36
  }
@@ -125,74 +124,3 @@ table.eui-table-default {
125
124
  }
126
125
  }
127
126
  }
128
-
129
- // // RESPONSIVE LAYOUT (PROTO)
130
- // @include media($eui-bkp-mobile) {
131
- // table.ux-table {
132
- // display: block;
133
-
134
- // &.ux-table--responsive {
135
- // display: contents;
136
-
137
- // &.ux-table--bordered {
138
- // tr {
139
- // border: 1px solid v(eui-base-color-grey-light);
140
- // }
141
- // }
142
-
143
- // &.ux-table--compact {
144
- // td {
145
- // padding-bottom: v(eui-base-spacing-3xs);
146
- // padding-top: v(eui-base-spacing-2xs);
147
-
148
- // &::before {
149
- // top: v(eui-base-spacing-2xs);
150
- // }
151
- // }
152
- // }
153
-
154
- // // Force table to be like cards
155
- // thead,
156
- // tbody,
157
- // th,
158
- // td,
159
- // tr {
160
- // display: block;
161
- // }
162
-
163
- // // Hide table headers but not display: none for accessibility
164
- // thead tr {
165
- // left: -9999px;
166
- // position: absolute;
167
- // top: -9999px;
168
- // }
169
-
170
- // tr {
171
- // height: auto;
172
- // }
173
-
174
- // th,
175
- // td {
176
- // // Behave like a "row"
177
- // border: none;
178
- // border-bottom: 1px solid v(eui-base-color-grey-lightest);
179
- // padding: v(eui-base-spacing-xs);
180
- // padding-left: 50%;
181
- // position: relative;
182
- // }
183
-
184
- // td::before {
185
- // color: v(eui-base-color-grey-dark);
186
- // content: attr(data-col); // Like a table header column
187
- // font-weight: bold;
188
- // left: v(eui-base-spacing-xs);
189
- // padding-right: v(eui-base-spacing-xs);
190
- // position: absolute;
191
- // // Mimic top & left paddings
192
- // top: v(eui-base-spacing-xs);
193
- // white-space: nowrap;
194
- // width: 45%;
195
- // }
196
- // }
197
- // }
198
- // }
@@ -1,5 +1,12 @@
1
1
  // TODO v17 find a better way to handle themes
2
2
 
3
+ @mixin eui-compact-get-tokens($ratio: 0.875) {
4
+ --eui-compact-ratio: #{$ratio};
5
+ @each $spacing, $value in $eui-base-tokens-spacings {
6
+ --eui-base-spacing-#{$spacing}: calc( #{var(--eui-compact-ratio)} * #{$value} );
7
+ }
8
+ }
9
+
3
10
  // GLOBAL COMPACT THEME
4
11
  ///////////////////////
5
12
  html.eui-t-compact {
@@ -0,0 +1 @@
1
+ @import '@eui/styles-base/src/styles/03-vars/colors-dark.vars';