Skip to content

Commit fb96504

Browse files
committed
feat: prepared dark theme
1 parent 2090376 commit fb96504

File tree

4 files changed

+153
-1
lines changed

4 files changed

+153
-1
lines changed

src/app/components/workspace-selector/workspace-selector.component.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
<mat-form-field appearance="outline" class="form">
44
<input matInput [formControl]="form" placeholder="Search" />
55
</mat-form-field>
6-
<button mat-flat-button class="actions button-accent">Accent Button</button>
6+
<button
7+
mat-flat-button
8+
(click)="toggleTheme()"
9+
class="actions button-accent"
10+
>
11+
Accent Button
12+
</button>
713
</div>
814

915
<mat-tab-group class="table-tabs">

src/app/components/workspace-selector/workspace-selector.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ import { DiscoveryTableComponent } from './discovery-table/discovery-table.compo
1616
})
1717
export class WorkspaceSelectorComponent {
1818
form = new FormControl('');
19+
20+
toggleTheme() {}
1921
}
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
// This file was generated by running 'ng generate @angular/material:theme-color'.
2+
// Proceed with caution if making changes to this file.
3+
4+
@use 'sass:map';
5+
@use '@angular/material' as mat;
6+
7+
// Note: Color palettes are generated from primary: #026fad, secondary: #20242b, tertiary: #a2d830, neutral: #747c89, neutral variant: #414956, error: #d23729
8+
$_palettes: (
9+
primary: (
10+
0: #000000,
11+
10: #001d33,
12+
20: #003353,
13+
25: #003e64,
14+
30: #004a76,
15+
35: #005688,
16+
40: #00639b,
17+
50: #237cbb,
18+
60: #4696d7,
19+
70: #65b1f3,
20+
80: #97cbff,
21+
90: #cee5ff,
22+
95: #e8f2ff,
23+
98: #f7f9ff,
24+
99: #fcfcff,
25+
100: #ffffff,
26+
),
27+
secondary: (
28+
0: #000000,
29+
10: #181c23,
30+
20: #2d3138,
31+
25: #383c43,
32+
30: #43474f,
33+
35: #4f525a,
34+
40: #5b5e67,
35+
50: #737780,
36+
60: #8d9199,
37+
70: #a8abb4,
38+
80: #c3c6d0,
39+
90: #dfe2ec,
40+
95: #eef0fa,
41+
98: #f9f9ff,
42+
99: #fdfcff,
43+
100: #ffffff,
44+
),
45+
tertiary: (
46+
0: #000000,
47+
10: #131f00,
48+
20: #243600,
49+
25: #2d4200,
50+
30: #364e00,
51+
35: #405b00,
52+
40: #496800,
53+
50: #5d8200,
54+
60: #729e00,
55+
70: #87bb06,
56+
80: #a2d72f,
57+
90: #bcf54c,
58+
95: #d6ff88,
59+
98: #f1ffd1,
60+
99: #faffe5,
61+
100: #ffffff,
62+
),
63+
neutral: (
64+
0: #000000,
65+
10: #141c26,
66+
20: #29313c,
67+
25: #343c47,
68+
30: #3f4753,
69+
35: #4b535f,
70+
40: #575f6b,
71+
50: #707884,
72+
60: #89919f,
73+
70: #a4acba,
74+
80: #bfc7d5,
75+
90: #dbe3f2,
76+
95: #eaf1ff,
77+
98: #f8f9ff,
78+
99: #fdfcff,
79+
100: #ffffff,
80+
4: #070f19,
81+
6: #0c141e,
82+
12: #18202b,
83+
17: #232a35,
84+
22: #2d3541,
85+
24: #323a45,
86+
87: #d3dae9,
87+
92: #e1e9f7,
88+
94: #e6eefd,
89+
96: #eff4ff,
90+
),
91+
neutral-variant: (
92+
0: #000000,
93+
10: #141c27,
94+
20: #29313d,
95+
25: #343c48,
96+
30: #3f4754,
97+
35: #4b5360,
98+
40: #575f6c,
99+
50: #6f7786,
100+
60: #8991a0,
101+
70: #a4acbb,
102+
80: #bfc7d7,
103+
90: #dbe3f3,
104+
95: #ebf1ff,
105+
98: #f8f9ff,
106+
99: #fdfcff,
107+
100: #ffffff,
108+
),
109+
error: (
110+
0: #000000,
111+
10: #410000,
112+
20: #690001,
113+
25: #7e0001,
114+
30: #930002,
115+
35: #a5130d,
116+
40: #b72218,
117+
50: #da3d2e,
118+
60: #fe5644,
119+
70: #ff8a79,
120+
80: #ffb4a9,
121+
90: #ffdad5,
122+
95: #ffedea,
123+
98: #fff8f6,
124+
99: #fffbff,
125+
100: #ffffff,
126+
),
127+
);
128+
129+
$_rest: (
130+
secondary: map.get($_palettes, secondary),
131+
neutral: map.get($_palettes, neutral),
132+
neutral-variant: map.get($_palettes, neutral-variant),
133+
error: map.get($_palettes, error),
134+
);
135+
136+
$primary-palette: map.merge(map.get($_palettes, primary), $_rest);
137+
$tertiary-palette: map.merge(map.get($_palettes, tertiary), $_rest);

src/app/styles/_vars.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@ $neutral-color-light: #ffffff;
55
$neutral-color-variant-light: #eeeff0;
66
$error-color-light: #d23729;
77

8+
$primary-color-dark: #026fad;
9+
$secondary-color-dark: #20242b;
10+
$tertiary-color-dark: #a2d830;
11+
$neutral-color-dark: #747c89;
12+
$neutral-color-variant-dark: #414956;
13+
$error-color-dark: #d23729;
14+
815
$border-radius: 2px;

0 commit comments

Comments
 (0)