azion-theme 1.15.3 → 1.16.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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.16.0](https://github.com/aziontech/azion-theme/compare/v1.15.3...v1.16.0) (2025-11-06)
2
+
3
+ ### Features
4
+
5
+ * [ENG-35795] Surfaces Theme Tokens Adjustments ([#61](https://github.com/aziontech/azion-theme/issues/61)) ([4cfbdc6](https://github.com/aziontech/azion-theme/commit/4cfbdc65f8fca7d7befce26d44db9a723fe38f07))
6
+
1
7
  ## [1.15.3](https://github.com/aziontech/azion-theme/compare/v1.15.2...v1.15.3) (2025-11-05)
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.15.3",
4
+ "version": "1.16.0",
5
5
  "author": "aziontech",
6
6
  "contributors": [
7
7
  {
@@ -67,7 +67,7 @@ $colors: (
67
67
  --primary-dark-color: #hsla(0, 0%, 96%, 0.5);
68
68
  --primary-darker-color: #f4f4f4;
69
69
  --primary-text-color: #f4f4f4;
70
- --overlay-content-bg: #171717;
70
+ --overlay-content-bg: var(--surface-section);
71
71
  --highlight-bg: #f4f4f410;
72
72
  --degrade-primary: 255, 255, 255;
73
73
  --degrade-secondary: 0, 0, 0;
@@ -79,6 +79,17 @@ $colors: (
79
79
  --text-color-link-hover: #93c5fd;
80
80
  --text-color-empty: var(--surface-800);
81
81
 
82
+ --gray-50: #282828;
83
+ --gray-100: #363636;
84
+ --gray-200: #747474;
85
+ --gray-300: #939393;
86
+ --gray-400: #b2b2b2;
87
+ --gray-500: #9e9e9e;
88
+ --gray-600: #ebebeb;
89
+ --gray-700: #f5f5f5;
90
+ --gray-800: #fafafa;
91
+ --gray-900: #ffffff;
92
+
82
93
  --surface-0: #0a0a0a;
83
94
  --surface-50: #111111;
84
95
  --surface-100: #171717;
@@ -91,25 +102,13 @@ $colors: (
91
102
  --surface-800: #5e5e5e;
92
103
  --surface-900: #7d7d7d;
93
104
 
94
- --surface-code-highlight: #5e5e5e50;
95
-
96
- --gray-50: #282828;
97
- --gray-100: #363636;
98
- --gray-200: #747474;
99
- --gray-300: #939393;
100
- --gray-400: #b2b2b2;
101
- --gray-500: #9e9e9e;
102
- --gray-600: #ebebeb;
103
- --gray-700: #f5f5f5;
104
- --gray-800: #fafafa;
105
- --gray-900: #ffffff;
106
-
107
- --surface-ground: #171717;
108
- --surface-section: #171717;
109
- --surface-card: #171717;
105
+ --surface-ground: var(--surface-0);
106
+ --surface-section: var(--surface-50);
107
+ --surface-card: var(--surface-100);
110
108
  --surface-overlay: #ffffff;
111
- --surface-border: #282828;
109
+ --surface-border: var(--surface-300);
112
110
  --surface-hover: #f5f5f516;
111
+ --surface-code-highlight: #5e5e5e50;
113
112
 
114
113
  --content-padding: 1.25rem;
115
114
  --inline-spacing: 0.5rem;
@@ -125,21 +124,22 @@ $colors: (
125
124
  --error-color: #f26464;
126
125
  --mask-bg: #1c1c1c80;
127
126
  --bg-selection: #fab99e;
128
- --table-bg-color: #1c1c1c;
127
+ --table-bg-color: var(--surface-0);
128
+ --table-header-color: var(--surface-50);
129
129
  --highlight-tabview-nav-link: #1e1e1e;
130
- --bg-tabview-nav-link: var(--surface-section);
130
+ --bg-tabview-nav-link: var(--surface-100);
131
131
  --highlight-tab-menu-link: #1c1c1c;
132
- --paginator-bg: #1c1c1c;
133
- --paginator-border: #282828;
132
+ --paginator-bg: var(--surface-50);
133
+ --paginator-border: var(--surface-border);
134
134
  --paginator-element-hover-bg: hsla(0, 0%, 100%, 0.03);
135
135
  --table-header-font-weight: 500;
136
136
  --table-cell-font-weight: 600;
137
- --table-header-cell-hover-bg: #ffffff0d;
138
- --table-header-cell-bg: #1c1c1c;
139
- --table-header-cell-highlight-bg: #1c1c1c;
140
- --table-cell-highlight-hover-bg: rgba(244, 244, 244, 0.16);
141
- --table-body-row-even-bg: #212121;
142
- --table-body-row-hover-bg: #353535;
137
+ --table-header-cell-hover-bg: var(--surface-200);
138
+ --table-header-cell-bg: var(--surface-50);
139
+ --table-header-cell-highlight-bg: var(--surface-50);
140
+ --table-cell-highlight-hover-bg: var(--surface-200);
141
+ --table-body-row-even-bg: var(--surface-100);
142
+ --table-body-row-hover-bg: var(--surface-200);
143
143
  --table-footer-cell-bg: #1c1c1c;
144
144
  --table-footer-border: var(--surface-border);
145
145
  --table-footer-border-width: none;
@@ -162,7 +162,8 @@ $colors: (
162
162
  --toggle-button-bg: #1e1e1e;
163
163
  --toggle-button-border: #3e3e3e;
164
164
  --toggle-button-hover-bg: #282828;
165
- --input-bg: #292929;
165
+ --input-bg: var(--surface-300);
166
+ --input-border: var(--surface-500);
166
167
  --input-placeholder-text-color: #666;
167
168
  --input-filled-bg: #181818;
168
169
  --input-filled-hover-bg: #2b2b2b;
@@ -185,17 +186,17 @@ $colors: (
185
186
  --action-icon-color: $textSecondaryColor;
186
187
  --action-icon-hover-bg: #282828;
187
188
  --action-icon-hover-border-color: 1px solid #3e3e3e;
188
- --panel-content-bg: #171717;
189
+ --panel-content-bg: var(--surface-section);
189
190
  --panel-header-hover-border-color: #171717;
190
191
  --panel-header-text-hover-color: rgba(244, 244, 244, 0.04);
191
192
  --card-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.02),
192
193
  0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12),
193
194
  0px 0px 0px 1px #3c3c3c;
194
- --splitter-gutter-handle-bg: #3e3e3e;
195
+ --splitter-gutter-handle-bg: var(--surface-100);
195
196
  --overlay-container-shadow: 0px 0px 0px 1px #3e3e3e,
196
197
  0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
197
198
  0px 4px 4px 0px rgba(0, 0, 0, 0.25);
198
- --dialog-header-bg: #1c1c1c;
199
+ --dialog-header-bg: var(--surface-section);
199
200
  --tooltip-text-color: #1c1c1c;
200
201
  --badge-font-weight: 400;
201
202
  --tag-padding: 0.25rem 0.5rem;
@@ -253,12 +254,22 @@ $colors: (
253
254
  --primary-darker-color: #000;
254
255
  --primary-text-color: #f4f4f4;
255
256
 
256
- --overlay-content-bg: #ffffff;
257
- --highlight-bg: #2b2b2b10;
257
+ --overlay-content-bg: var(--surface-section);
258
+ --highlight-bg: var(--surface-100);
258
259
 
259
260
  --primary-color-text: #f4f4f4;
260
261
  --primary-text-color: #f4f4f4;
261
- --overlay-content-bg: #ffffff;
262
+
263
+ --gray-50: #fafafa;
264
+ --gray-100: #f5f5f5;
265
+ --gray-200: #eeeeee;
266
+ --gray-300: #e0e0e0;
267
+ --gray-400: #bdbdbd;
268
+ --gray-500: #9e9e9e;
269
+ --gray-600: #757575;
270
+ --gray-700: #616161;
271
+ --gray-800: #424242;
272
+ --gray-900: #212121;
262
273
 
263
274
  --surface-0: #ffffff;
264
275
  --surface-50: #f9fafb;
@@ -272,25 +283,13 @@ $colors: (
272
283
  --surface-800: #b5b5b5;
273
284
  --surface-900: #a7a7a7;
274
285
 
275
- --surface-code-highlight: #b5b5b550;
276
-
277
- --gray-50: #fafafa;
278
- --gray-100: #f5f5f5;
279
- --gray-200: #eeeeee;
280
- --gray-300: #e0e0e0;
281
- --gray-400: #bdbdbd;
282
- --gray-500: #9e9e9e;
283
- --gray-600: #757575;
284
- --gray-700: #616161;
285
- --gray-800: #424242;
286
- --gray-900: #212121;
287
-
288
- --surface-ground: #ffffff;
289
- --surface-section: #ffffff;
290
- --surface-card: #ffffff;
291
- --surface-overlay: #ffffff;
292
- --surface-border: #e8e8e8;
286
+ --surface-ground: var(--surface-50);
287
+ --surface-section: var(--surface-0);
288
+ --surface-card: var(--surface-0);
289
+ --surface-overlay: var(--surface-0);
290
+ --surface-border: var(--surface-200);
293
291
  --surface-hover: #3b3b3b16;
292
+ --surface-code-highlight: #b5b5b550;
294
293
 
295
294
  --maskbg: #1e1e1e32;
296
295
  --highlight-text-color: none;
@@ -303,17 +302,18 @@ $colors: (
303
302
  --mask-bg: #1e1e1e32;
304
303
  --error-color: #ef4040;
305
304
  --bg-selection: #f7966e;
306
- --table-bg-color: #e7e7e7;
305
+ --table-bg-color: var(--surface-50);
306
+ --table-header-color: var(--surface-0);
307
307
  --highlight-tab-menu-link: #f4f4f4;
308
- --paginator-bg: #ffffff;
308
+ --paginator-bg: var(--surface-0);
309
309
  --paginator-border: none;
310
310
  --paginator-element-hover-bg: #e9ecef;
311
311
  --table-header-cell-hover-bg: #e9ecef;
312
312
  --table-cell-highlight-hover-bg: #e9ecef;
313
313
  --table-header-font-weight: 600;
314
314
  --table-cell-font-weight: 500;
315
- --table-header-cell-bg: #fcfdfd;
316
- --table-header-cell-highlight-bg: #f8f9fa;
315
+ --table-header-cell-bg: var(--surface-50);
316
+ --table-header-cell-highlight-bg: var(--surface-100);
317
317
  --table-body-row-even-bg: #ffffff;
318
318
  --table-body-row-hover-bg: #f7f7f7;
319
319
  --table-footer-border: #e9ecef;
@@ -334,7 +334,8 @@ $colors: (
334
334
  --toggle-button-bg: #ffffff;
335
335
  --toggle-button-border: #ced4da;
336
336
  --toggle-button-hover-bg: #e9ecef;
337
- --input-bg: #f4f4f4;
337
+ --input-bg: var(--surface-100);
338
+ --input-border: var(--surface-300);
338
339
  --input-placeholder-text-color: #979797;
339
340
  --input-filled-bg: #f4f4f4;
340
341
  --input-filled-hover-bg: #eaeaea;
@@ -357,14 +358,14 @@ $colors: (
357
358
  --action-icon-color: $textColor;
358
359
  --action-icon-hover-bg: #1e1e1e04;
359
360
  --action-icon-hover-border-color: 1px solid #e7e7e7;
360
- --panel-content-bg: #ffffff;
361
+ --panel-content-bg: var(--surface-section);
361
362
  --panel-header-hover-border-color: #dee2e6;
362
363
  --panel-header-text-hover-color: var(--text-color);
363
364
  --card-shadow: 0px 0px 0px 1px #e7e7e7;
364
365
  --splitter-gutter-handle-bg: #e7e7e7;
365
366
  --overlay-container-shadow: 0px 0px 0px 1px #e7e7e7,
366
367
  0px 5px 10px 0px rgba(0, 0, 0, 0.05);
367
- --dialog-header-bg: #ffffff;
368
+ --dialog-header-bg: var(--surface-section);
368
369
  --tooltip-text-color: #ffffff;
369
370
  --badge-font-weight: 500;
370
371
  --tag-padding: 0.25rem 0.4rem;
@@ -4,6 +4,10 @@
4
4
  font-size: 0.875rem !important;
5
5
  text-wrap: nowrap !important;
6
6
 
7
+ .p-datatable-tbody > tr {
8
+ background: var(--table-body-row-even-bg);
9
+ }
10
+
7
11
  .p-paginator {
8
12
  border-width: 0px !important;
9
13
  border-top-left-radius: 0 !important;
@@ -13,6 +17,7 @@
13
17
  .p-datatable-header {
14
18
  border-top-right-radius: $borderRadius;
15
19
  border-top-left-radius: $borderRadius;
20
+ background: var(--table-header-color);
16
21
  }
17
22
 
18
23
  .p-datatable-tbody > .p-datatable-emptymessage:hover {
@@ -21,8 +26,8 @@
21
26
 
22
27
  .p-datatable-tbody {
23
28
  .p-frozen-column {
24
- background: var(--surface-section);
25
- transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s !important;
29
+ background: var(--table-body-row-bg);
30
+ transition: background-color 0.2s !important;
26
31
  }
27
32
  }
28
33
 
@@ -9,6 +9,9 @@
9
9
  font-size: 0.875rem !important;
10
10
  font-weight: 500 !important;
11
11
  }
12
+ .p-highlight {
13
+ opacity: 1;
14
+ }
12
15
  &.p-focus {
13
16
  border-color: none !important;
14
17
  outline: none !important;
@@ -1,6 +1,7 @@
1
1
  // Custom Header Sidebar
2
2
  .p-sidebar {
3
3
  .p-sidebar-header {
4
+ background: var(--surface-section);
4
5
  justify-content: space-between;
5
6
  font-size: 1.25rem !important;
6
7
  height: 3.5rem !important;
@@ -148,7 +148,7 @@ $tableSortableColumnBadgeSize: 1.143rem;
148
148
 
149
149
  /// Background of a table body row
150
150
  /// @group data
151
- $tableBodyRowBg: var(--surface-ground);
151
+ $tableBodyRowBg: var(--table-bg-color);
152
152
 
153
153
  /// Text color of a table body row
154
154
  /// @group data
@@ -20,7 +20,7 @@ $inputIconColor: $textColor;
20
20
 
21
21
  /// Border of an input field
22
22
  /// @group form
23
- $inputBorder: 1px solid var(--surface-border);
23
+ $inputBorder: 1px solid var(--input-border);
24
24
 
25
25
  /// Border of an input field in hover state
26
26
  /// @group form
@@ -0,0 +1,93 @@
1
+ /**
2
+ * SURFACE COLORS TOKENS
3
+ *
4
+ * Surface color tokens for both light and dark themes.
5
+ * These tokens are used across the application to maintain consistency.
6
+ */
7
+
8
+ // Helper function to create rgba colors from hex
9
+ const withAlpha = (hexColor: string, alpha: number) => {
10
+ // Convert hex to RGB first
11
+ let r = 0, g = 0, b = 0;
12
+
13
+ // 3 digits
14
+ if (hexColor.length === 4) {
15
+ r = parseInt(hexColor[1] + hexColor[1], 16);
16
+ g = parseInt(hexColor[2] + hexColor[2], 16);
17
+ b = parseInt(hexColor[3] + hexColor[3], 16);
18
+ }
19
+ // 6 digits
20
+ else if (hexColor.length === 7) {
21
+ r = parseInt(hexColor.substring(1, 3), 16);
22
+ g = parseInt(hexColor.substring(3, 5), 16);
23
+ b = parseInt(hexColor.substring(5, 7), 16);
24
+ }
25
+
26
+ return `rgba(${r}, ${g}, ${b}, ${alpha})`;
27
+ };
28
+
29
+ // Base surface colors
30
+ export const surfaceColors = {
31
+ // Light Theme
32
+ light: {
33
+ // Surface scale - these are the base values that others reference
34
+ surface0: '#ffffff',
35
+ surface50: '#f9fafb',
36
+ surface100: '#f4f4f4',
37
+ surface200: '#eeeeee',
38
+ surface300: '#e8e8e8',
39
+ surface400: '#e3e3e3',
40
+ surface500: '#dddddd',
41
+ surface600: '#d3d3d3',
42
+ surface700: '#c9c9c9',
43
+ surface800: '#b5b5b5',
44
+ surface900: '#a7a7a7',
45
+
46
+ // Semantic surfaces - all reference the scale values
47
+ surfaceGround: 'var(--surface-50, #f9fafb)',
48
+ surfaceSection: 'var(--surface-0, #ffffff)',
49
+ surfaceCard: 'var(--surface-0, #ffffff)',
50
+ surfaceOverlay: 'var(--surface-0, #ffffff)',
51
+ surfaceBorder: 'var(--surface-100, #f4f4f4)',
52
+ surfaceHover: withAlpha('var(--surface-900, #a7a7a7)', 0.04), // Using surface-900 with 4% opacity
53
+
54
+ // Additional surface states
55
+ surfaceCodeHighlight: 'var(--surface-50, #f9fafb)',
56
+ surfaceDropdownHover: withAlpha('var(--surface-900, #a7a7a7)', 0.04),
57
+ surfaceHighlightFocus: withAlpha('var(--surface-900, #a7a7a7)', 0.04),
58
+ surfaceTabviewNavLink: withAlpha('var(--surface-900, #a7a7a7)', 0.04)
59
+ },
60
+
61
+ // Dark Theme
62
+ dark: {
63
+ // Surface scale - base values
64
+ surface0: '#0a0a0a',
65
+ surface50: '#111111',
66
+ surface100: '#171717',
67
+ surface200: '#222222',
68
+ surface300: '#282828',
69
+ surface400: '#2e2e2e',
70
+ surface500: '#353535',
71
+ surface600: '#3e3e3e',
72
+ surface700: '#4a4a4a',
73
+ surface800: '#5e5e5e',
74
+ surface900: '#7d7d7d',
75
+
76
+ // Semantic surfaces - all reference the scale values
77
+ surfaceGround: 'var(--surface-0, #0a0a0a)',
78
+ surfaceSection: 'var(--surface-100, #171717)',
79
+ surfaceCard: 'var(--surface-200, #222222)',
80
+ surfaceOverlay: 'var(--surface-0, #0a0a0a)',
81
+ surfaceBorder: 'var(--surface-300, #282828)',
82
+ surfaceHover: withAlpha('var(--surface-0, #f5f5f5)', 0.08), // Using surface-0 with 8% opacity
83
+
84
+ // Additional surface states
85
+ surfaceCodeHighlight: withAlpha('var(--surface-900, #7d7d7d)', 0.5),
86
+ surfaceDropdownHover: withAlpha('var(--surface-0, #f5f5f5)', 0.08),
87
+ surfaceHighlightFocus: withAlpha('var(--surface-0, #f5f5f5)', 0.08),
88
+ surfaceTabviewNavLink: withAlpha('var(--surface-0, #f5f5f5)', 0.08)
89
+ }
90
+ };
91
+
92
+ // Export type for better TypeScript support
93
+ export type SurfaceColors = typeof surfaceColors;