[android] Add support of dark mode for how to edit oh html file

Signed-off-by: Jean-Baptiste <jeanbaptiste.charron@outlook.fr>
This commit is contained in:
Jean-Baptiste
2026-01-10 11:22:49 +01:00
parent c1137bd38a
commit ec4428377e

View File

@@ -11,6 +11,31 @@
.example {
font-weight: bold;
font-family: monospace;
/* Dark mode support. */
:root {
color-scheme: light dark;
--primary-color: black;
--secondary-color: #555555;
--link-color: #37653F;
--background-color: white;
--separator-color: #0e0e0e;
}
@media screen and (prefers-color-scheme: dark) {
:root {
--primary-color: #b5b5b5;
--secondary-color: #858585;
--link-color: #659464;
--background-color: black;
--separator-color: #0a0a0a;
}
}
html {
color: var(--secondary-color);
background-color: var(--background-color);
}
}
</style>
<script>