Skip to content

Commit 9c15b33

Browse files
committed
feat: enable light mode
1 parent 9511647 commit 9c15b33

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

+1-1
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')"

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

+11
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)