Skip to content

Commit dde19b2

Browse files
committed
fix: add custom variant to tailwind default theme
1 parent b5ecffb commit dde19b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sources/WebUI/Core/Document.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public struct Document {
123123
--breakpoint-3xl: 120rem;
124124
--breakpoint-4xl: 160rem;
125125
\(theme?.generateCSS() ?? "")
126+
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
126127
}
127128
</style>
128129
\(head ?? "")

0 commit comments

Comments
 (0)