azion-theme 1.5.1 → 1.5.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.5.2](https://github.com/aziontech/azion-theme/compare/v1.5.1...v1.5.2) (2024-08-07)
2
+
3
+ ### Bug Fixes
4
+
5
+ * light/dark mode merge missing colors ([11e8e39](https://github.com/aziontech/azion-theme/commit/11e8e39131911616a6da72e147cd76d2a175f34e))
6
+
1
7
  ## [1.5.1](https://github.com/aziontech/azion-theme/compare/v1.5.0...v1.5.1) (2024-08-06)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "azion-theme",
3
3
  "type": "module",
4
- "version": "1.5.1",
4
+ "version": "1.5.2",
5
5
  "author": "aziontech",
6
6
  "contributors": [
7
7
  {
@@ -1,80 +1,70 @@
1
1
  // Theme Specific Variables
2
2
 
3
+ :root {
4
+ --surface-a: #ffffff;
5
+ --surface-b: #f8f9fa;
6
+ --surface-c: #e9ecef;
7
+ --surface-d: #dee2e6;
8
+ --surface-e: #ffffff;
9
+ --surface-f: #ffffff;
3
10
 
4
- $highlightBg: #f4f4f410;
11
+ --green-50: #f4fcf7;
12
+ --green-100: #caf1d8;
13
+ --green-200: #a0e6ba;
14
+ --green-300: #76db9b;
15
+ --green-400: #4cd07d;
16
+ --green-500: #22c55e;
17
+ --green-600: #1da750;
18
+ --green-700: #188a42;
19
+ --green-800: #136c34;
20
+ --green-900: #0e4f26;
5
21
 
6
- $pc: #2b2b2b;
7
- $pdc: #000;
8
- $pderc: #000;
9
- $ptc: #f4f4f4;
10
- $highlightBg: rgba($pc, 0.06);
11
- $overlayContentBg: #ffffff;
22
+ --red-50: #fff5f5;
23
+ --red-100: #ffd0ce;
24
+ --red-200: #ffaca7;
25
+ --red-300: #ff8780;
26
+ --red-400: #ff6259;
27
+ --red-500: #ff3d32;
28
+ --red-600: #d9342b;
29
+ --red-700: #b32b23;
30
+ --red-800: #8c221c;
31
+ --red-900: #661814;
12
32
 
13
- :root {
14
- --surface-a: #ffffff;
15
- --surface-b: #f8f9fa;
16
- --surface-c: #e9ecef;
17
- --surface-d: #dee2e6;
18
- --surface-e: #ffffff;
19
- --surface-f: #ffffff;
20
-
21
- --green-50: #f4fcf7;
22
- --green-100: #caf1d8;
23
- --green-200: #a0e6ba;
24
- --green-300: #76db9b;
25
- --green-400: #4cd07d;
26
- --green-500: #22c55e;
27
- --green-600: #1da750;
28
- --green-700: #188a42;
29
- --green-800: #136c34;
30
- --green-900: #0e4f26;
31
-
32
- --red-50: #fff5f5;
33
- --red-100: #ffd0ce;
34
- --red-200: #ffaca7;
35
- --red-300: #ff8780;
36
- --red-400: #ff6259;
37
- --red-500: #ff3d32;
38
- --red-600: #d9342b;
39
- --red-700: #b32b23;
40
- --red-800: #8c221c;
41
- --red-900: #661814;
42
-
43
- --font-family: "Roboto", sans-serif;
44
- }
45
- // Mandatory Designer Variables
33
+ --font-family: "Roboto", sans-serif;
34
+ }
35
+ // Mandatory Designer Variables
46
36
 
47
- $colors: (
48
- "blue": #2196f3,
49
- "green": #4caf50,
50
- "yellow": #fbc02d,
51
- "cyan": #00bcd4,
52
- "pink": #e91e63,
53
- "indigo": #3f51b5,
54
- "teal": #009688,
55
- "orange": #f57c00,
56
- "bluegray": #607d8b,
57
- "purple": #9c27b0,
58
- "red": #ff4032,
59
- "primary": #f4f4f4
60
- );
37
+ $colors: (
38
+ "blue": #2196f3,
39
+ "green": #4caf50,
40
+ "yellow": #fbc02d,
41
+ "cyan": #00bcd4,
42
+ "pink": #e91e63,
43
+ "indigo": #3f51b5,
44
+ "teal": #009688,
45
+ "orange": #f57c00,
46
+ "bluegray": #607d8b,
47
+ "purple": #9c27b0,
48
+ "red": #ff4032,
49
+ "primary": #f4f4f4,
50
+ );
61
51
 
62
- @import "./variables/general";
63
- @import "./variables/form";
64
- @import "./variables/button";
65
- @import "./variables/panel";
66
- @import "./variables/_data";
67
- @import "./variables/_overlay";
68
- @import "./variables/_message";
69
- @import "./variables/_menu";
70
- @import "./variables/_media";
71
- @import "./variables/_misc";
52
+ @import "./variables/general";
53
+ @import "./variables/form";
54
+ @import "./variables/button";
55
+ @import "./variables/panel";
56
+ @import "./variables/_data";
57
+ @import "./variables/_overlay";
58
+ @import "./variables/_message";
59
+ @import "./variables/_menu";
60
+ @import "./variables/_media";
61
+ @import "./variables/_misc";
72
62
 
73
63
  :root.azion.azion-dark {
74
64
  color-scheme: dark;
75
65
 
76
66
  --primary-color: #f4f4f4;
77
- --primary-dark-color: #hsla(0, 0%, 96%, 0.5);;
67
+ --primary-dark-color: #hsla(0, 0%, 96%, 0.5);
78
68
  --primary-darker-color: #f4f4f4;
79
69
  --primary-text-color: #f4f4f4;
80
70
  --overlay-content-bg: #171717;
@@ -120,16 +110,20 @@
120
110
  --inline-spacing: 0.5rem;
121
111
  --border-radius: 6px;
122
112
  --focus-ring: 0 0 0 0.2rem #f3642b9f;
113
+ --tabview-header-active-bg: #f4f4f4;
123
114
 
124
115
  --maskbg: #1c1c1c80;
125
116
  --highlight-text-color: none;
126
- --highlight-focus-bg: rgba(var(--primary-color), 0.08);
117
+ --highlight-focus-bg: var(--surface-hover);
118
+ --dropdown-hover-bg: var(--surface-hover);
127
119
  --disabled-opacity: 0.5;
128
120
  --error-color: #f26464;
129
121
  --mask-bg: #1c1c1c80;
130
122
  --bg-selection: #fab99e;
131
123
  --table-bg-color: #1c1c1c;
132
- --tab-menu-link: #f4f4f4;
124
+ --highlight-tabview-nav-link: #1e1e1e;
125
+ --bg-tabview-nav-link: var(--surface-section);
126
+ --highlight-tab-menu-link: #1c1c1c;
133
127
  --paginator-bg: #1c1c1c;
134
128
  --paginator-border: #282828;
135
129
  --paginator-element-hover-bg: hsla(0, 0%, 100%, 0.03);
@@ -138,7 +132,7 @@
138
132
  --table-header-cell-hover-bg: #ffffff0d;
139
133
  --table-header-cell-bg: #1c1c1c;
140
134
  --table-header-cell-highlight-bg: #1c1c1c;
141
- --table-cell-highlight-hover-bg: rgba(var(--primary-color), 0.16);
135
+ --table-cell-highlight-hover-bg: rgba(244, 244, 244, 0.16);
142
136
  --table-body-row-even-bg: #212121;
143
137
  --table-body-row-hover-bg: #353535;
144
138
  --table-footer-cell-bg: #1c1c1c;
@@ -150,11 +144,10 @@
150
144
  --secondary-button-text-color: #222222;
151
145
  --secondary-button-border: #f4f4f4;
152
146
  --secondary-button-hover-bg: #e1e1e1;
153
- --secondary-button-text-hover-color: #e1e1e1;
147
+ --secondary-button-text-hover-color: #1e1e1e;
154
148
  --secondary-button-hover-border-color: #e1e1e1;
155
149
  --secondary-button-active-bg: #d9d9d9;
156
150
  --secondary-button-active-border-color: #d9d9d9;
157
- --secondary-button-text-hover-color: #1e1e1e;
158
151
  --secondary-button-hover-border-color: #e1e1e1;
159
152
  --secondary-button-text-active-color: #1e1e1e;
160
153
  --secondary-button-active-border-color: #d9d9d9;
@@ -189,7 +182,7 @@
189
182
  --action-icon-hover-border-color: 1px solid #3e3e3e;
190
183
  --panel-content-bg: #171717;
191
184
  --panel-header-hover-border-color: #171717;
192
- --panel-header-text-hover-color: rgba(var(--primary-color), 0.04);
185
+ --panel-header-text-hover-color: rgba(244, 244, 244, 0.04);
193
186
  --card-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.02),
194
187
  0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12),
195
188
  0px 0px 0px 1px #3c3c3c;
@@ -214,9 +207,9 @@
214
207
  --error-message--bg: #f2646433;
215
208
  --error-message-icon-color: #f26464;
216
209
  --steps-item-bg: #00000000;
217
- --steps-item-border: 1px solid #3e3e3e;
210
+ --steps-item-border: #3e3e3e;
218
211
  --menu-bg: #1c1c1c;
219
- --menu-border: 1px solid #3e3e3e;
212
+ --menu-border: #3e3e3e;
220
213
  --submenu-header-font-weight: 500;
221
214
  --overlay-menu-shadow: 0px 1px 10px 0px rgba(0, 0, 0, 0.12),
222
215
  0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 2px 4px -1px rgba(0, 0, 0, 0.2),
@@ -232,13 +225,13 @@
232
225
  --text-color-link: #3265cb;
233
226
  --text-color-link-hover: #2851a4;
234
227
 
235
- --primary-color: #2b2b2b;
228
+ --primary-color: #f4f4f4;
236
229
  --primary-dark-color: #000;
237
230
  --primary-darker-color: #000;
238
231
  --primary-text-color: #f4f4f4;
239
232
 
240
233
  --overlay-content-bg: #ffffff;
241
- --highlight-bg: rgba(var(--primary-color), 0.06);
234
+ --highlight-bg: rgba(244 244 244 0.08);
242
235
 
243
236
  --primary-color-text: #f4f4f4;
244
237
  --primary-text-color: #f4f4f4;
@@ -276,13 +269,17 @@
276
269
 
277
270
  --maskbg: #1e1e1e32;
278
271
  --highlight-text-color: none;
279
- --highlight-focus-bg: rgba(var(--primary-color), 0.08);
272
+ --highlight-focus-bg: var(--surface-hover);
273
+ --highlight-tabview-nav-link: #f4f4f4;
274
+ --dropdown-hover-bg: var(--surface-hover);
275
+ --bg-tabview-nav-link: var(--surface-hover);
276
+ --tabview-header-active-bg: #1e1e1e;
280
277
  --disabled-opacity: 0.4;
281
278
  --mask-bg: #1e1e1e32;
282
279
  --error-color: #ef4040;
283
280
  --bg-selection: #f7966e;
284
281
  --table-bg-color: #e7e7e7;
285
- --tab-menu-link: #1c1c1c;
282
+ --highlight-tab-menu-link: #f4f4f4;
286
283
  --paginator-bg: #ffffff;
287
284
  --paginator-border: none;
288
285
  --paginator-element-hover-bg: #e9ecef;
@@ -300,7 +297,7 @@
300
297
  --plain-button-active-bg-color: #1e1e1e33;
301
298
  --secondary-button-bg: #1e1e1e;
302
299
  --secondary-button-text-color: #f4f4f4;
303
- --secondary-button-text-hover-bg: #404040;
300
+ --secondary-button-hover-bg: #404040;
304
301
  --secondary-button-text-hover-color: #f4f4f4;
305
302
  --secondary-button-hover-border-color: #323232;
306
303
  --secondary-button-active-bg: #303030;
@@ -359,9 +356,9 @@
359
356
  --error-message--bg: #ef40401f;
360
357
  --error-message-icon-color: #ef4040;
361
358
  --steps-item-bg: #ffffff00;
362
- --steps-item-border: 1px solid #e7e7e7;
359
+ --steps-item-border: #e7e7e7;
363
360
  --menu-bg: #ffffff;
364
- --menu-border: 1px solid #e7e7e7;
361
+ --menu-border: #e7e7e7;
365
362
  --submenu-header-font-weight: 400;
366
363
  --overlay-menu-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.04),
367
364
  0px 0px 0px 1px #e7e7e7;
@@ -12,7 +12,7 @@
12
12
  }
13
13
  &.p-highlight {
14
14
  .p-menuitem-link {
15
- color: var(--tab-menu-link) !important;
15
+ color: var(--highlight-tab-menu-link) !important;
16
16
  font-weight: 500 !important;
17
17
  }
18
18
  }
@@ -13,7 +13,7 @@
13
13
  }
14
14
  &.p-highlight {
15
15
  .p-tabview-nav-link {
16
- color: #1e1e1e !important;
16
+ color: var(--highlight-tabview-nav-link) !important;
17
17
  font-weight: 700 !important;
18
18
  }
19
19
  }
@@ -35,14 +35,14 @@
35
35
 
36
36
  &.p-highlight {
37
37
  .p-tabview-nav-link {
38
- background: $tabviewHeaderActiveBg;
39
- border-color: $tabviewHeaderActiveBorderColor;
38
+ background: $tabviewHeaderActiveBg;
39
+ border-color: $tabviewHeaderActiveBorderColor;
40
40
  color: $tabviewHeaderTextActiveColor;
41
41
  }
42
42
  }
43
43
  }
44
44
  }
45
-
45
+
46
46
  .p-tabview-nav-btn.p-link {
47
47
  background: $tabviewHeaderActiveBg;
48
48
  color: $tabviewHeaderTextActiveColor;
@@ -95,7 +95,7 @@ $secondaryButtonBorder: 1px solid var(--secondary-button-bg);
95
95
 
96
96
  /// Background of a secondary button in hover state
97
97
  /// @group button
98
- $secondaryButtonHoverBg: var(--secondary-button-text-hover-bg);
98
+ $secondaryButtonHoverBg: var(--secondary-button-hover-bg);
99
99
 
100
100
  /// Text color of a secondary button in hover state
101
101
  /// @group button
@@ -92,7 +92,7 @@ $inputListItemTextColor: $textColor;
92
92
 
93
93
  /// Hover state background for an individual itrem of an input list
94
94
  /// @group form
95
- $inputListItemHoverBg: rgba(var(--primary-color), 0.06);
95
+ $inputListItemHoverBg: var(--dropdown-hover-bg);
96
96
 
97
97
  /// Hover state text color for an individual itrem of an input list
98
98
  /// @group form
@@ -100,7 +100,7 @@ $inputListItemTextHoverColor: $textColor;
100
100
 
101
101
  /// Focus state background for an individual itrem of an input list
102
102
  /// @group form
103
- $inputListItemFocusBg: rgba(var(--primary-color), 0.06);
103
+ $inputListItemFocusBg: var(--highlight-focus-bg);
104
104
 
105
105
  /// Focus state text color for an individual itrem of an input list
106
106
  /// @group form
@@ -412,7 +412,7 @@ $calendarCellDateBorder: 1px solid transparent;
412
412
 
413
413
  /// Background of a calendar date cell in hover state
414
414
  /// @group form
415
- $calendarCellDateHoverBg: rgba(var(--primary-color), 0.06);
415
+ $calendarCellDateHoverBg: var(--surface-hover);
416
416
 
417
417
  /// Background of a calendar date cell indicating today
418
418
  /// @group form
@@ -76,7 +76,7 @@ $menuitemIconHoverColor: $textColor;
76
76
 
77
77
  /// Background of a menuitem in hover state
78
78
  /// @group menu
79
- $menuitemHoverBg: rgba(var(--primary-color), 0.06);
79
+ $menuitemHoverBg: var(--surface-hover);
80
80
 
81
81
  /// Text color of a menuitem in focus state
82
82
  /// @group menu
@@ -88,7 +88,7 @@ $menuitemIconFocusColor: $textColor;
88
88
 
89
89
  /// Background of a menuitem in focus state
90
90
  /// @group menu
91
- $menuitemFocusBg: rgba(var(--primary-color), 0.06);
91
+ $menuitemFocusBg: var(--surface-hover);
92
92
 
93
93
  /// Text color of a menuitem in active state
94
94
  /// @group menu
@@ -100,11 +100,11 @@ $menuitemIconActiveColor: $textSecondaryColor;
100
100
 
101
101
  /// Background of a menuitem in active state
102
102
  /// @group menu
103
- $menuitemActiveBg: rgba(var(--primary-color), 0.08);
103
+ $menuitemActiveBg: var(--surface-hover);
104
104
 
105
105
  /// Background of a menuitem in active and focus states
106
106
  /// @group menu
107
- $menuitemActiveFocusBg: rgba(var(--primary-color), 0.06);
107
+ $menuitemActiveFocusBg: var(--surface-hover);
108
108
 
109
109
  /// Font size of an icon indicating the item has a submenu
110
110
  /// @group menu
@@ -216,7 +216,7 @@ $tabviewHeaderTextHoverColor: $textColor;
216
216
 
217
217
  /// Background of a tabview header in selected state
218
218
  /// @group panel
219
- $tabviewHeaderActiveBg: var(--primary-color);
219
+ $tabviewHeaderActiveBg: var(--tabview-header-active-bg);
220
220
 
221
221
  /// Border of a tabview header in selected state
222
222
  /// @group panel