@cssxio/compiler 0.4.0 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BUILD_MANIFEST.json +5 -5
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -188,10 +188,10 @@ type ThemeOutputMode = 'inline' | 'reference' | 'static';
|
|
|
188
188
|
declare function parseTheme(source?: string): CssxTheme;
|
|
189
189
|
|
|
190
190
|
/** Controls how the `dark` variant is activated. */
|
|
191
|
-
type DarkMode = 'media' | 'selector';
|
|
191
|
+
type DarkMode = 'media' | 'selector' | 'class';
|
|
192
192
|
/** Options that affect how variants are rendered. */
|
|
193
193
|
interface VariantOptions {
|
|
194
|
-
/** Activates `dark` variants with a media query
|
|
194
|
+
/** Activates `dark` variants with a media query, `[data-theme=dark]`, or a `.dark` class. */
|
|
195
195
|
readonly darkMode?: DarkMode;
|
|
196
196
|
}
|
|
197
197
|
|
package/dist/index.d.ts
CHANGED
|
@@ -188,10 +188,10 @@ type ThemeOutputMode = 'inline' | 'reference' | 'static';
|
|
|
188
188
|
declare function parseTheme(source?: string): CssxTheme;
|
|
189
189
|
|
|
190
190
|
/** Controls how the `dark` variant is activated. */
|
|
191
|
-
type DarkMode = 'media' | 'selector';
|
|
191
|
+
type DarkMode = 'media' | 'selector' | 'class';
|
|
192
192
|
/** Options that affect how variants are rendered. */
|
|
193
193
|
interface VariantOptions {
|
|
194
|
-
/** Activates `dark` variants with a media query
|
|
194
|
+
/** Activates `dark` variants with a media query, `[data-theme=dark]`, or a `.dark` class. */
|
|
195
195
|
readonly darkMode?: DarkMode;
|
|
196
196
|
}
|
|
197
197
|
|