@eui/eds-styles 22.0.0-alpha.49 → 22.0.0-alpha.50

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.
@@ -214,7 +214,7 @@ $default-feature: "min-width";
214
214
 
215
215
  @mixin eds-input-hover() {
216
216
  &:hover:not([aria-disabled="true"]):not(:disabled) {
217
- box-shadow: var(--eds-sh-1);
217
+ // box-shadow: var(--eds-sh-1);
218
218
 
219
219
  &:not([aria-disabled="true"]):not(:checked):not(:disabled):not([readonly]):not([indeterminate="true"]):not([invalid="true"]) {
220
220
  border-color: var(--eds-c-border); //EDS aligned
@@ -30,27 +30,27 @@ $_cm-aliases: ();
30
30
  }
31
31
 
32
32
  // Base ramps + alpha + domain-* (from ecl $color) plus the cm-* aliases.
33
- $color-map: map.merge(ecl-color.$color, $_cm-aliases);
33
+ $color-map: map.merge(ecl-color.$color, ecl-color-domain.$color-domain);
34
34
 
35
- // The ordered list of brand ("color mode") ramp names, derived from the domain
36
- // ramps so it stays in sync with the upstream source automatically.
37
- $_cm-names: ();
38
- @each $key, $value in $_cm-aliases {
39
- // key is `cm-<ramp>-<shade>`; strip the trailing `-<shade>` to get the ramp name.
40
- $last-dash: 0;
41
- $i: 1;
42
- @while $i <= string.length($key) {
43
- @if string.slice($key, $i, $i) == '-' {
44
- $last-dash: $i;
45
- }
46
- $i: $i + 1;
47
- }
48
- $ramp: string.slice($key, 1, $last-dash - 1);
49
- @if not list.index($_cm-names, $ramp) {
50
- $_cm-names: list.append($_cm-names, $ramp);
51
- }
52
- }
53
- $color-cm-map: $_cm-names;
35
+ // // The ordered list of brand ("color mode") ramp names, derived from the domain
36
+ // // ramps so it stays in sync with the upstream source automatically.
37
+ // $_cm-names: ();
38
+ // @each $key, $value in $_cm-aliases {
39
+ // // key is `cm-<ramp>-<shade>`; strip the trailing `-<shade>` to get the ramp name.
40
+ // $last-dash: 0;
41
+ // $i: 1;
42
+ // @while $i <= string.length($key) {
43
+ // @if string.slice($key, $i, $i) == '-' {
44
+ // $last-dash: $i;
45
+ // }
46
+ // $i: $i + 1;
47
+ // }
48
+ // $ramp: string.slice($key, 1, $last-dash - 1);
49
+ // @if not list.index($_cm-names, $ramp) {
50
+ // $_cm-names: list.append($_cm-names, $ramp);
51
+ // }
52
+ // }
53
+ // $color-cm-map: $_cm-names;
54
54
 
55
55
  // Grouped-by-ramp view of every entry in $color-map (base, alpha and brand ramps),
56
56
  // consumed by the showcase color exports.
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:string';
3
3
  @use './ecl/semantic/color-dark' as ecl;
4
+ @use './ecl/semantic/color-domain-dark' as ecl-domain;
4
5
  @use './colors-primitive' as primitive;
5
6
 
6
7
  // ============================================================================
@@ -23,19 +24,7 @@
23
24
  // The public contract (`$color-semantic-map` + every key below) is unchanged.
24
25
  // ============================================================================
25
26
 
26
- // 1. Re-key ECL `*-domain-*` semantic keys to the legacy `*-cm-*` names.
27
- $_ecl-base: ();
28
- @each $key, $value in ecl.$color-dark {
29
- $i: string.index($key, '-domain-');
30
- @if $i {
31
- $renamed: string.slice($key, 1, $i) +
32
- 'cm-' +
33
- string.slice($key, $i + string.length('-domain-'));
34
- $_ecl-base: map.set($_ecl-base, $renamed, $value);
35
- } @else {
36
- $_ecl-base: map.set($_ecl-base, $key, $value);
37
- }
38
- }
27
+ $_ecl-base: map.merge(ecl.$color-dark, ecl-domain.$color-domain-dark);
39
28
 
40
29
  // 2. Local overlay — EDS-only tokens + intentional divergences from ECL.
41
30
  $_overlay: (
@@ -58,8 +47,13 @@ $_overlay: (
58
47
 
59
48
  // used by: chip, menu
60
49
  surface-neutral-subtler: map.get(primitive.$color-map, 'graphite-600'), // #24242c
50
+ surface-neutral-subtle: map.get(primitive.$color-map, 'graphite-400'), // #24242c
61
51
  // used by: chip
62
52
  on-surface-neutral-subtler: map.get(primitive.$color-map, 'graphite-0'), // #fff
53
+ on-surface-neutral-subtle: map.get(primitive.$color-map, 'graphite-0'), // #fff
54
+
55
+ surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-800'),
56
+ on-surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-400'),
63
57
 
64
58
  // --- Foreground (EDS-only inverted) ---
65
59
  // used by: banner, shell, tabs
@@ -70,7 +64,42 @@ $_overlay: (
70
64
  border-neutral-subtle: map.get(primitive.$color-map, 'graphite-400'), // #48484f
71
65
 
72
66
  // wrongly named ECL side : border-brand
73
- border: map.get(primitive.$color-map, 'silver-fog-50'),
67
+ border: map.get(primitive.$color-map, 'silver-fog-50'),
68
+
69
+ // --- Domain (brand) `-subtle` surfaces (EDS-only) ---
70
+ // ECL ships only `surface-domain-*-subtler` (dark ramp -950) for domain colors.
71
+ // A stronger `-subtle` fill (e.g. the tag's `filled` variant) mirrors the
72
+ // dark standard-color convention (surface -800 / on-surface -50) for every domain.
73
+ surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-800'),
74
+ on-surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-50'),
75
+ surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-800'),
76
+ on-surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-50'),
77
+ surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-800'),
78
+ on-surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-50'),
79
+ surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-800'),
80
+ on-surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-50'),
81
+ surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-800'),
82
+ on-surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-50'),
83
+ surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-800'),
84
+ on-surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-50'),
85
+ surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-800'),
86
+ on-surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-50'),
87
+ surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-800'),
88
+ on-surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-50'),
89
+ surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-800'),
90
+ on-surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-50'),
91
+ surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-800'),
92
+ on-surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-50'),
93
+ surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-800'),
94
+ on-surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-50'),
95
+ surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-800'),
96
+ on-surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-50'),
97
+ surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-800'),
98
+ on-surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-50'),
99
+ surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-800'),
100
+ on-surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-50'),
101
+ surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-800'),
102
+ on-surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-50'),
74
103
  );
75
104
 
76
105
  $color-semantic-map: map.merge($_ecl-base, $_overlay);
@@ -1,6 +1,7 @@
1
1
  @use 'sass:map';
2
2
  @use 'sass:string';
3
3
  @use './ecl/semantic/color' as ecl;
4
+ @use './ecl/semantic/color-domain' as ecl-domain;
4
5
  @use './colors-primitive' as primitive;
5
6
 
6
7
  // ============================================================================
@@ -24,21 +25,9 @@
24
25
  // The public contract (`$color-semantic-map` + every key below) is unchanged.
25
26
  // ============================================================================
26
27
 
27
- // 1. Re-key ECL `*-domain-*` semantic keys to the legacy `*-cm-*` names.
28
- $_ecl-base: ();
29
- @each $key, $value in ecl.$color {
30
- $i: string.index($key, '-domain-');
31
- @if $i {
32
- $renamed: string.slice($key, 1, $i) +
33
- 'cm-' +
34
- string.slice($key, $i + string.length('-domain-'));
35
- $_ecl-base: map.set($_ecl-base, $renamed, $value);
36
- } @else {
37
- $_ecl-base: map.set($_ecl-base, $key, $value);
38
- }
39
- }
28
+ $_ecl-base: map.merge(ecl.$color, ecl-domain.$color-domain);
40
29
 
41
- // 2. Local overlay — EDS-only tokens + intentional divergences from ECL.
30
+ // Local overlay — EDS-only tokens + intentional divergences from ECL.
42
31
  $_overlay: (
43
32
  // --- On-surface for state surfaces that ship no `on-*--hover/--pressed` in ECL ---
44
33
  // Each state surface reuses its base family's on-* text color (text color does
@@ -67,15 +56,56 @@ $_overlay: (
67
56
  // --- Neutral subtler (EDS divergence: ECL uses silver-fog-100) ---
68
57
  // used by: avatar, badge, button, data-grid, date-block, datepicker, gauge-chart, growl, progress-circle, segmented-control, skeleton, tag, timepicker
69
58
  surface-neutral-subtler: map.get(primitive.$color-map, 'silver-fog-75'), // #ededf0
59
+ surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-100'), // #ededf0
70
60
  // used by: avatar, badge, button, tag
71
61
  on-surface-neutral-subtler: map.get(primitive.$color-map, 'silver-fog-900'), // #171740
62
+ on-surface-neutral-subtle: map.get(primitive.$color-map, 'silver-fog-900'), // #171740
72
63
 
64
+ // used by tag :
65
+ surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-200'),
66
+ on-surface-highlight-subtle: map.get(primitive.$color-map, 'sunrise-orange-950'),
67
+
73
68
  // --- Foreground (EDS-only inverted) ---
74
69
  // used by: banner, shell, tabs
75
70
  foreground-inverted: map.get(primitive.$color-map, 'silver-fog-25'), // #fafafb
76
71
 
77
72
  // wrongly named ECL side : border-brand
78
73
  border: map.get(primitive.$color-map, 'silver-fog-950'),
74
+
75
+ // --- Domain (brand) `-subtle` surfaces (EDS-only) ---
76
+ // ECL ships only `surface-domain-*-subtler` (ramp -50/-100) for domain colors.
77
+ // A stronger `-subtle` fill (e.g. the tag's `filled` variant) mirrors the
78
+ // standard-color convention (surface -200 / on-surface -900) for every domain.
79
+ surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-200'),
80
+ on-surface-domain-blue-navy-subtle: map.get(primitive.$color-map, 'domain-blue-navy-900'),
81
+ surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-200'),
82
+ on-surface-domain-blue-electric-subtle: map.get(primitive.$color-map, 'domain-blue-electric-900'),
83
+ surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-200'),
84
+ on-surface-domain-blue-ocean-subtle: map.get(primitive.$color-map, 'domain-blue-ocean-900'),
85
+ surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-200'),
86
+ on-surface-domain-green-subtle: map.get(primitive.$color-map, 'domain-green-900'),
87
+ surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-200'),
88
+ on-surface-domain-green-dark-subtle: map.get(primitive.$color-map, 'domain-green-dark-900'),
89
+ surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-200'),
90
+ on-surface-domain-green-lemon-subtle: map.get(primitive.$color-map, 'domain-green-lemon-900'),
91
+ surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-200'),
92
+ on-surface-domain-green-pine-subtle: map.get(primitive.$color-map, 'domain-green-pine-900'),
93
+ surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-200'),
94
+ on-surface-domain-orange-subtle: map.get(primitive.$color-map, 'domain-orange-900'),
95
+ surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-200'),
96
+ on-surface-domain-orange-abricot-subtle: map.get(primitive.$color-map, 'domain-orange-abricot-900'),
97
+ surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-200'),
98
+ on-surface-domain-purple-subtle: map.get(primitive.$color-map, 'domain-purple-900'),
99
+ surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-200'),
100
+ on-surface-domain-purple-violet-subtle: map.get(primitive.$color-map, 'domain-purple-violet-900'),
101
+ surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-200'),
102
+ on-surface-domain-red-crayola-subtle: map.get(primitive.$color-map, 'domain-red-crayola-900'),
103
+ surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-200'),
104
+ on-surface-domain-red-tomato-subtle: map.get(primitive.$color-map, 'domain-red-tomato-900'),
105
+ surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-200'),
106
+ on-surface-domain-warm-grey-subtle: map.get(primitive.$color-map, 'domain-warm-grey-900'),
107
+ surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-200'),
108
+ on-surface-domain-yellow-gold-subtle: map.get(primitive.$color-map, 'domain-yellow-gold-900'),
79
109
  );
80
110
 
81
111
  $color-semantic-map: map.merge($_ecl-base, $_overlay);