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 { .auto {
@apply @dark:(text-white bg-dark-900); @apply dark:(text-white bg-dark-900);
} }
.dark { .dark {
@ -145,7 +145,7 @@ b {
.auto .input, .auto .input,
.auto .select, .auto .select,
.auto .btn { .auto .btn {
@apply @dark:(text-gray-400 bg-dark-400); @apply dark:(text-gray-400 bg-dark-400);
} }
.input { .input {
@ -166,7 +166,7 @@ hr {
} }
.auto hr { .auto hr {
@apply @dark:border-dark-100; @apply dark:border-dark-100;
} }
h1, h1,
@ -199,7 +199,7 @@ h2 {
} }
.auto .link { .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 { .dark .link-secondary {
@ -207,7 +207,7 @@ h2 {
} }
.auto .link-secondary { .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 { .line {

View File

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

View File

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