Skip to content

Commit 9720a00

Browse files
authored
feat: Aura color scheme (#10143)
1 parent 2277a21 commit 9720a00

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

dev/aura.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,17 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
88
<title>Aura</title>
99
<link rel="stylesheet" href="../packages/aura/aura.css" />
10+
<script type="module">
11+
import '@vaadin/app-layout';
12+
</script>
1013
</head>
1114
<body>
1215

13-
<h1>Aura</h1>
14-
<h2>Aura</h2>
15-
<h3>Aura</h3>
16-
<h4>Aura</h4>
17-
<h5>Aura</h5>
18-
<h6>Aura</h6>
16+
<vaadin-app-layout>
17+
<main>
18+
<h1>Aura</h1>
19+
</main>
20+
</vaadin-app-layout>
1921

2022
</body>
2123
</html>

packages/aura/aura.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@import './src/color.css';
2+
@import './src/color-scheme.css';
23
@import './src/palette.css';
34
@import './src/size.css';
45
@import './src/typography.css';

packages/aura/src/color-scheme.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
:where(html) {
2+
--aura-color-scheme: light;
3+
--aura-content-color-scheme: var(--aura-color-scheme);
4+
--aura-notification-color-scheme: var(--aura-color-scheme);
5+
}
6+
7+
html {
8+
color-scheme: var(--aura-color-scheme);
9+
}

0 commit comments

Comments
 (0)