@dialpad/dialtone 7.0.0-beta.2 → 7.0.0-beta.3

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.
@@ -20,7 +20,7 @@
20
20
  .d-btn {
21
21
  // Component specific CSS Vars
22
22
  // ------------------------------------------------------------------------
23
- --button--fc: var(--primary-color);
23
+ --button--fc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
24
24
  --button--bgc: transparent;
25
25
  --button--bc: transparent;
26
26
  --button--br: var(--base--corner-radius);
@@ -52,15 +52,15 @@
52
52
  // -- STATES
53
53
  // ------------------------------------------------------------------------
54
54
  &:hover {
55
- --button--fc: var(--primary-color-hover);
56
- --button--bgc: hsla(var(--primary-color-hsl) ~' / ' 3%);
55
+ --button--fc: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) - 10%));
56
+ --button--bgc: hsla(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l) ~' / ' 3%);
57
57
  }
58
58
 
59
59
  &:active,
60
60
  &.d-btn--active,
61
61
  &.d-btn--active:active {
62
- --button--fc: var(--primary-color-hover);
63
- --button--bgc: hsla(var(--primary-color-hsl) ~' / ' 9%);
62
+ --button--fc: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) - 10%));
63
+ --button--bgc: hsla(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l) ~' / ' 9%);
64
64
  }
65
65
 
66
66
 
@@ -276,25 +276,25 @@
276
276
  // $$ OUTLINED BUTTON
277
277
  // ----------------------------------------------------------------------------
278
278
  .d-btn--outlined {
279
- --button--bc: var(--primary-color);
279
+ --button--bc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
280
280
  }
281
281
 
282
282
  // $$ PRIMARY BUTTON
283
283
  // ----------------------------------------------------------------------------
284
284
  .d-btn--primary {
285
285
  --button--fc: var(--white);
286
- --button--bgc: var(--primary-color);
286
+ --button--bgc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
287
287
 
288
288
  &:hover {
289
289
  --button--fc: var(--white);
290
- --button--bgc: hsl(var(--primary-color-h), var(--primary-color-s), 65%);
290
+ --button--bgc: hsl(var(--purple-400-h), var(--purple-400-s), 65%);
291
291
  }
292
292
 
293
293
  &:active,
294
294
  &.d-btn--active,
295
295
  &.d-btn--active:active {
296
296
  --button--fc: var(--white);
297
- --button--bgc: hsl(var(--primary-color-h), var(--primary-color-s), 42%);
297
+ --button--bgc: hsl(var(--purple-400-h), var(--purple-400-s), 42%);
298
298
  }
299
299
  }
300
300
 
@@ -397,18 +397,18 @@
397
397
 
398
398
  // -- PRIMARY
399
399
  &.d-btn--primary {
400
- --button--fc: var(--primary-color);
400
+ --button--fc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
401
401
  --button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 100%);
402
402
 
403
403
  &:hover {
404
- --button--fc: var(--primary-color-hover);
404
+ --button--fc: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) - 10%));
405
405
  --button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 94%);
406
406
  }
407
407
 
408
408
  &:active,
409
409
  &.d-btn--active,
410
410
  &.d-btn--active:active {
411
- --button--fc: var(--primary-color-hover);
411
+ --button--fc: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) - 10%));
412
412
  --button--bgc: hsl(var(--purple-100-h), var(--purple-100-s), 91%);
413
413
  }
414
414
  }
@@ -33,7 +33,7 @@
33
33
  .d-textarea {
34
34
  // Component CSS Vars
35
35
  // ------------------------------------------------------------------------
36
- --input--focus-bc: var(--primary-color);
36
+ --input--focus-bc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
37
37
  --input--bc: var(--black-500);
38
38
  --input--bgc: var(--white);
39
39
  --input--fc: var(--black-800);
@@ -21,7 +21,7 @@
21
21
  box-sizing: border-box;
22
22
  margin: var(--su0);
23
23
  padding: var(--su0);
24
- color: var(--primary-color);
24
+ color: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
25
25
  font: inherit;
26
26
  text-decoration: underline;
27
27
  background-color: transparent;
@@ -35,7 +35,7 @@
35
35
  fill: currentColor;
36
36
 
37
37
  &:hover {
38
- color: var(--primary-color-hover);
38
+ color: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) - 10%));
39
39
  text-decoration: none;
40
40
  cursor: pointer;
41
41
  }
@@ -33,16 +33,16 @@
33
33
 
34
34
  &:hover {
35
35
  color: var(--black-900);
36
- background-color: hsla(var(--primary-color-hsl) ~' / ' 85%);
36
+ background-color: hsla(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l) ~' / ' 85%);
37
37
  }
38
38
 
39
39
  &-selected {
40
40
  color: var(--white);
41
- background-color: var(--primary-color);
41
+ background-color: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
42
42
 
43
43
  &:hover {
44
44
  color: var(--white);
45
- background-color: hsl(var(--primary-color-h) var(--primary-color-s) calc(var(--primary-color-l) + 10%));
45
+ background-color: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) + 10%));
46
46
  }
47
47
  }
48
48
  }
@@ -96,8 +96,6 @@
96
96
  visibility: hidden;
97
97
  opacity: 0;
98
98
  will-change: visibility, z-index, opacity, transform;
99
-
100
- .d-stack16();
101
99
  }
102
100
 
103
101
  // $$ MAKE THEM APPEAR
@@ -150,7 +148,7 @@
150
148
  // ----------------------------------------------------------------------------
151
149
  .d-modal__content {
152
150
  max-width: 75ch;
153
- margin: var(--su12) 0 0 !important;
151
+ margin: var(--su12) 0;
154
152
  padding: var(--su4) var(--su24);
155
153
  }
156
154
 
@@ -171,6 +169,7 @@
171
169
  // ----------------------------------------------------------------------------
172
170
  .d-modal__banner {
173
171
  position: relative;
172
+ box-sizing: border-box;
174
173
  width: 100%;
175
174
  max-width: var(--size628);
176
175
  padding: var(--su12) var(--su24);
@@ -25,7 +25,7 @@
25
25
  .d-radio {
26
26
  // Component specific CSS Vars
27
27
  // ------------------------------------------------------------------------
28
- --check-radio--color: var(--primary-color);
28
+ --check-radio--color: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
29
29
  --check-radio--bc: var(--black-500);
30
30
  --check-radio--bgc: var(--white);
31
31
 
@@ -115,7 +115,7 @@
115
115
  --select--bc: var(--black-500);
116
116
 
117
117
  &:focus {
118
- --select--bc: var(--primary-color);
118
+ --select--bc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
119
119
 
120
120
  box-shadow: var(--bs-focus-ring);
121
121
  }
@@ -103,18 +103,18 @@
103
103
  // $ SELECTED STYLE
104
104
  // ----------------------------------------------------------------------------
105
105
  .d-tab--selected {
106
- --tab--fc: var(--primary-color);
106
+ --tab--fc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
107
107
 
108
108
  z-index: var(--zi-selected);
109
109
 
110
110
  &:hover {
111
- --tab--bgc: hsla(var(--primary-color-hsl) ~' / ' 10%);
112
- --tab--fc: var(--primary-color-hover);
111
+ --tab--bgc: hsla(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l) ~' / ' 10%);
112
+ --tab--fc: hsl(var(--purple-400-h) var(--purple-400-s) calc(var(--purple-400-l) - 10%));
113
113
  }
114
114
 
115
115
  &::after,
116
116
  &:hover::after {
117
- --tab--bgc: var(--primary-color);
117
+ --tab--bgc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
118
118
  }
119
119
  }
120
120
 
@@ -74,7 +74,7 @@
74
74
  // $$ CHECKED TOGGLE
75
75
  // ----------------------------------------------------------------------------
76
76
  .d-toggle--checked {
77
- --toggle-bc: var(--primary-color);
77
+ --toggle-bc: hsl(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l));
78
78
 
79
79
  .d-toggle__inner {
80
80
  left: var(--su6);
@@ -51,14 +51,6 @@ body {
51
51
  }
52
52
  }
53
53
 
54
- .d-svg-primary--stroke {
55
- stroke: var(--primary-color);
56
- }
57
-
58
- .d-svg-primary--fill {
59
- fill: var(--primary-color);
60
- }
61
-
62
54
  // ============================================================================
63
55
  // @ FOCUS VISIBLE
64
56
  // ----------------------------------------------------------------------------
@@ -34,15 +34,9 @@
34
34
 
35
35
 
36
36
  @theme-vars: {
37
- primary-color-h: var(--purple-400-h);
38
- primary-color-s: var(--purple-400-s);
39
- primary-color-l: var(--purple-400-l);
40
- primary-color-hsl: var(--primary-color-h) var(--primary-color-s) var(--primary-color-l);
41
- primary-color: hsl(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l));
42
- primary-color-hover: hsl(var(--primary-color-h) var(--primary-color-s) calc(var(--primary-color-l) - 10%));
43
- nav-background-color-h: var(--purple-600-h);
44
- nav-background-color-s: var(--purple-600-s);
45
- nav-background-color-l: var(--purple-600-l);
37
+ nav-background-color-h: var(--purple-800-h);
38
+ nav-background-color-s: var(--purple-800-s);
39
+ nav-background-color-l: var(--purple-800-l);
46
40
  nav-background-color: hsl(var(--nav-background-color-h) var(--nav-background-color-s) var(--nav-background-color-l));
47
41
 
48
42
  topbar-height: var(--su64);
@@ -25,16 +25,8 @@
25
25
  // $$ SET THESE
26
26
  // Currently only the following items are themeable in Dialtone.
27
27
  //
28
- // @primary-color: This is used for all selected and primary states
29
- // in elements and components (i.e. buttons, input focus,
30
- // links, etc).
31
- //
32
- // @primary-color--hover: Hover state color for @primary-color.
33
- //
34
28
  // @nav__background-color: This sets the navigation background color.
35
29
  // ----------------------------------------------------------------------------
36
- @primary-color: @purple-400;
37
- @primary-color--hover: darken(@primary-color, 10%);
38
30
  @nav__background-color: @black-400;
39
31
 
40
32
  // \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
@@ -43,14 +35,6 @@
43
35
  // Warning: We use these to extract the HSL values of the HEX code and
44
36
  // restate them in the CSS Variables.
45
37
  // ----------------------------------------------------------------------------
46
- @primary-color--h: hue(@primary-color);
47
- @primary-color--s: saturation(@primary-color);
48
- @primary-color--l: lightness(@primary-color);
49
-
50
- @primary-color--hover--h: hue(@primary-color--hover);
51
- @primary-color--hover--s: saturation(@primary-color--hover);
52
- @primary-color--hover--l: lightness(@primary-color--hover);
53
-
54
38
  @nav__background-color--h: hue(@nav__background-color);
55
39
  @nav__background-color--s: saturation(@nav__background-color);
56
40
  @nav__background-color--l: lightness(@nav__background-color);
@@ -59,23 +43,10 @@
59
43
  // -- RE-DECLARE CSS VARIABLES WITH NEW COLORS
60
44
  // ----------------------------------------------------------------------------
61
45
  @theme-vars: {
62
- primary-color: @primary-color;
63
- primary-color--h: @primary-color--h;
64
- primary-color--s: @primary-color--s;
65
- primary-color--l: @primary-color--l;
66
-
67
- primary-color--hover: @primary-color--hover;
68
- primary-color--hover--h: @primary-color--hover--h;
69
- primary-color--hover--s: @primary-color--hover--s;
70
- primary-color--hover--l: @primary-color--l;
71
-
72
46
  nav__background-color: @nav__background-color;
73
47
  nav__background-color--h: @nav__background-color--h;
74
48
  nav__background-color--s: @nav__background-color--s;
75
49
  nav__background-color--l: @nav__background-color--l;
76
-
77
- btn--inverted__bg--hover: fade(mix(#fff, @primary-color, 90%), 25%);
78
- btn--inverted--primary__bg--hover: mix(#fff, @primary-color, 90%);
79
50
  }
80
51
 
81
52
  // ============================================================================
@@ -36,11 +36,6 @@
36
36
  #d-internals #color-classes(green-700);
37
37
  #d-internals #color-classes(red-700);
38
38
 
39
- .d-fc-primary {
40
- color: hsla(var(--primary-color-h) var(--primary-color-s) var(--primary-color-l) ~' / ' var(--fco)) !important;
41
- }
42
- #d-internals #generate-hover-focus(d-fc-primary, {.d-fc-primary();});
43
-
44
39
  // $$ TEXT COLORS
45
40
  // ----------------------------------------------------------------------------
46
41
  .d-fc-dark { &:extend(.d-fc-black-900); }
@@ -70,7 +65,7 @@
70
65
  #d-internals #generate-hover-focus(d-fc-success, {.d-fc-success();});
71
66
 
72
67
  .d-fc-yellow { &:extend(.d-fc-yellow-600); }
73
- .d-fc-warning { color: var(--fc-warning) }
68
+ .d-fc-warning { color: var(--fc-warning); }
74
69
  #d-internals #generate-hover-focus(d-fc-yellow, {.d-fc-yellow();});
75
70
  #d-internals #generate-hover-focus(d-fc-warning, {.d-fc-warning();});
76
71
 
@@ -104,7 +104,7 @@
104
104
  // Used on inputs, buttons, and other focusable elements.
105
105
  // ----------------------------------------------------------------------------
106
106
  @focus-rings: {
107
- focus-ring: hsla(var(--primary-color-hsl) ~' / ' 75%);
107
+ focus-ring: hsla(var(--purple-400-h) var(--purple-400-s) var(--purple-400-l) ~' / ' 75%);
108
108
  focus-ring-success: hsla(var(--success-color-hsl) ~' / ' 75%);
109
109
  focus-ring-warning: hsla(var(--warning-color-hsl) ~' / ' 75%);
110
110
  focus-ring-error: hsla(var(--error-color-hsl) ~' / ' 75%);
@@ -134,7 +134,6 @@
134
134
  fc-warning: hsla(var(--yellow-500-h) var(--yellow-500-s) calc(var(--yellow-500-l) - 20%) ~' / ' var(--alpha, 100%));
135
135
  fc-warning-hover: hsla(var(--yellow-500-h) var(--yellow-500-s) calc(var(--yellow-500-l) - 30%) ~' / ' var(--alpha, 100%));
136
136
  fc-muted: var(--black-900);
137
- fc-primary: var(--primary-color);
138
137
 
139
138
  // -- BASE TEMPLATE
140
139
  base--text-color: var(--black-900);