teacss 0.1.5 → 0.1.6
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/index.cjs +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -701,6 +701,8 @@ interface Theme {
|
|
|
701
701
|
};
|
|
702
702
|
preflightRoot?: Arrayable<string>;
|
|
703
703
|
preflightBase?: Record<string, string | number>;
|
|
704
|
+
preflightLight?: Record<string, string | number>;
|
|
705
|
+
preflightDark?: Record<string, string | number>;
|
|
704
706
|
}
|
|
705
707
|
|
|
706
708
|
declare const preflights: Preflight<Theme>[];
|
package/dist/index.d.ts
CHANGED
|
@@ -701,6 +701,8 @@ interface Theme {
|
|
|
701
701
|
};
|
|
702
702
|
preflightRoot?: Arrayable<string>;
|
|
703
703
|
preflightBase?: Record<string, string | number>;
|
|
704
|
+
preflightLight?: Record<string, string | number>;
|
|
705
|
+
preflightDark?: Record<string, string | number>;
|
|
704
706
|
}
|
|
705
707
|
|
|
706
708
|
declare const preflights: Preflight<Theme>[];
|
package/dist/index.js
CHANGED
|
@@ -18405,11 +18405,11 @@ var preflightBase = {
|
|
|
18405
18405
|
};
|
|
18406
18406
|
var preflightLight = {
|
|
18407
18407
|
layer: "preflights",
|
|
18408
|
-
getCSS: () => getPreflightCss(tokenLight, [lightSelector])
|
|
18408
|
+
getCSS: (ctx) => getPreflightCss({ ...tokenLight, ...ctx.theme.preflightLight }, [lightSelector])
|
|
18409
18409
|
};
|
|
18410
18410
|
var preflightDark = {
|
|
18411
18411
|
layer: "preflights",
|
|
18412
|
-
getCSS: () => getPreflightCss(tokenDark, [darkSelector])
|
|
18412
|
+
getCSS: (ctx) => getPreflightCss({ ...tokenDark, ...ctx.theme.preflightDark }, [darkSelector])
|
|
18413
18413
|
};
|
|
18414
18414
|
var preflightSupportP3 = {
|
|
18415
18415
|
layer: "preflights",
|