Fix auto theme.

Closes #1401
This commit is contained in:
Kavin 2022-09-11 13:04:06 +05:30
parent 86482c8d41
commit 9198ffd938
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
3 changed files with 10 additions and 8 deletions

View File

@ -114,7 +114,7 @@ b {
}
.auto {
@apply @dark:(text-white bg-dark-900);
@apply dark:(text-white bg-dark-900);
}
.dark {
@ -145,7 +145,7 @@ b {
.auto .input,
.auto .select,
.auto .btn {
@apply @dark:(text-gray-400 bg-dark-400);
@apply dark:(text-gray-400 bg-dark-400);
}
.input {
@ -166,7 +166,7 @@ hr {
}
.auto hr {
@apply @dark:border-dark-100;
@apply dark:border-dark-100;
}
h1,
@ -199,7 +199,7 @@ h2 {
}
.auto .link {
@apply @dark:hover:(text-gray-300 underline underline-gray-300);
@apply dark:hover:(text-gray-300 underline underline-gray-300);
}
.dark .link-secondary {
@ -207,7 +207,7 @@ h2 {
}
.auto .link-secondary {
@apply @dark:(text-gray-300 hover:(text-gray-400 underline underline-gray-400));
@apply dark:(text-gray-300 hover:(text-gray-400 underline underline-gray-400));
}
.line {

View File

@ -85,7 +85,7 @@ export default {
}
.auto .suggestions-container {
@apply @dark:bg-dark-400;
@apply dark:bg-dark-400;
}
.suggestion-selected {
@ -97,7 +97,7 @@ export default {
}
.auto .suggestion-selected {
@apply @dark:bg-dark-100;
@apply dark:bg-dark-100;
}
.suggestion {

View File

@ -9,7 +9,9 @@ import presetWebFonts from "@unocss/preset-web-fonts";
export default defineConfig({
transformers: [transformerDirective(), transformerVariantGroup()],
presets: [
presetUno(),
presetUno({
dark: "media",
}),
presetIcons(),
presetWebFonts({
provider: "none",