Skip to content

Commit 3c19db3

Browse files
authored
refactor: move all color scheme styles to one dedicated file (#9672)
1 parent 2e59969 commit 3c19db3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/vaadin-lumo-styles/global.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,5 @@
44
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
55
*/
66
@import './src/global/badge.css';
7-
@import './src/global/dark.css';
7+
@import './src/global/color-scheme.css';
88
@import './src/global/typography.css';
9-
10-
:where(:root, :host) {
11-
color: var(--lumo-body-text-color);
12-
background-color: var(--lumo-base-color);
13-
color-scheme: light;
14-
}

packages/vaadin-lumo-styles/src/global/dark.css renamed to packages/vaadin-lumo-styles/src/global/color-scheme.css

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
/**
22
* @license
3-
* Copyright (c) 2017 - 2025 Vaadin Ltd.
3+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
44
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
55
*/
6+
:where(:root, :host) {
7+
color: var(--lumo-body-text-color);
8+
background-color: var(--lumo-base-color);
9+
color-scheme: light;
10+
}
11+
612
[theme~='dark'] {
713
/* Base (background) */
814
--lumo-base-color: hsl(214, 35%, 21%);

0 commit comments

Comments
 (0)