Skip to content

Commit 6a5dbae

Browse files
committed
feat: enable light mode
1 parent 9511647 commit 6a5dbae

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

libs/blog/layouts/ui-layouts/src/lib/header/header.component.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1 class="text-al-primary px-4 text-lg font-bold">angular.love</h1>
2929
type="button"
3030
class="border-al-gray-200 mr-1 rounded border bg-transparent px-1 py-2 font-medium leading-4 md:mr-2 md:px-4"
3131
[ngClass]="{
32-
'!text-white': language() === 'en',
32+
'!text-al-foreground': language() === 'en',
3333
'!text-al-gray-50 opacity-50': language() !== 'en',
3434
}"
3535
[attr.aria-label]="t('changeLangToEnglish')"
@@ -42,7 +42,7 @@ <h1 class="text-al-primary px-4 text-lg font-bold">angular.love</h1>
4242
type="button"
4343
class="border-al-gray-200 mr-1 rounded border bg-transparent px-1 py-2 font-medium leading-4 md:mr-2 md:px-4"
4444
[ngClass]="{
45-
'!text-white': language() === 'pl',
45+
'!text-al-foreground': language() === 'pl',
4646
'!text-al-gray-50 opacity-50': language() !== 'pl',
4747
}"
4848
[attr.aria-label]="t('changeLangToPolish')"

libs/shared/assets/src/lib/styles/main.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@
1313
--card: 25 26 34;
1414
--background: 16 15 21;
1515
}
16+
17+
@media (prefers-color-scheme: light) {
18+
:root {
19+
--primary: 213 1 89;
20+
--foreground: 0 0 0;
21+
--muted: 25 25 25;
22+
--border: 200 200 200;
23+
--card: 250 250 250;
24+
--background: 255 255 255;
25+
}
26+
}
1627
}
1728

1829
@layer base {

0 commit comments

Comments
 (0)