Skip to content

Commit a0cd714

Browse files
create custom css config
1 parent 0d1e88a commit a0cd714

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

src/style/theme.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Custom theme
3+
*/
4+
/* Red Light scheme (Default) */
5+
/* Can be forced with data-theme="light" */
6+
[data-theme="light"],
7+
:root:not([data-theme="dark"]) {
8+
--primary: #e53935;
9+
--primary-hover: #d32f2f;
10+
--primary-focus: rgba(229, 57, 53, 0.125);
11+
--primary-inverse: #FFF;
12+
}
13+
14+
/* Red Dark scheme (Auto) */
15+
/* Automatically enabled if user has Dark mode enabled */
16+
@media only screen and (prefers-color-scheme: dark) {
17+
:root:not([data-theme="light"]) {
18+
--primary: #e53935;
19+
--primary-hover: #f44336;
20+
--primary-focus: rgba(229, 57, 53, 0.25);
21+
--primary-inverse: #FFF;
22+
}
23+
}
24+
25+
/* Red Dark scheme (Forced) */
26+
/* Enabled if forced with data-theme="dark" */
27+
[data-theme="dark"] {
28+
--primary: #e53935;
29+
--primary-hover: #f44336;
30+
--primary-focus: rgba(229, 57, 53, 0.25);
31+
--primary-inverse: #FFF;
32+
}
33+
34+
/* Red (Common styles) */
35+
:root {
36+
--form-element-active-border-color: var(--primary);
37+
--form-element-focus-color: var(--primary-focus);
38+
--switch-color: var(--primary-inverse);
39+
--switch-checked-background-color: var(--primary);
40+
}

0 commit comments

Comments
 (0)