@gjfleo/theme 0.1.2 → 0.2.1
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.js +1 -2
- package/dist/naive-ui/index.d.ts +33 -6
- package/dist/naive-ui/index.js +1310 -43
- package/dist/unocss/index.d.ts +2 -2
- package/dist/unocss/index.js +26 -21
- package/package.json +1 -1
package/dist/unocss/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { PresetWind4Theme } from 'unocss';
|
|
4
4
|
|
|
5
|
-
export declare function
|
|
5
|
+
export declare function extendPresetWind4Theme(theme: PresetWind4Theme): void;
|
|
6
6
|
|
|
7
7
|
export {};
|
package/dist/unocss/index.js
CHANGED
|
@@ -961,39 +961,39 @@ var themeVariables = {
|
|
|
961
961
|
dangerHover: createHoverColor("#E7000B"),
|
|
962
962
|
dangerPressed: createPressedColor("#E7000B")
|
|
963
963
|
};
|
|
964
|
-
var theme_variables_default = themeVariables;
|
|
965
964
|
|
|
966
965
|
// src/unocss/index.ts
|
|
967
|
-
function
|
|
966
|
+
function extendPresetWind4Theme(theme) {
|
|
967
|
+
theme.colors = theme.colors ?? {};
|
|
968
968
|
theme.colors.primary = {
|
|
969
|
-
DEFAULT:
|
|
970
|
-
hover:
|
|
971
|
-
pressed:
|
|
969
|
+
DEFAULT: themeVariables.primary,
|
|
970
|
+
hover: themeVariables.primaryHover,
|
|
971
|
+
pressed: themeVariables.primaryPressed
|
|
972
972
|
};
|
|
973
973
|
theme.colors.secondary = {
|
|
974
|
-
DEFAULT:
|
|
975
|
-
hover:
|
|
976
|
-
pressed:
|
|
974
|
+
DEFAULT: themeVariables.secondary,
|
|
975
|
+
hover: themeVariables.secondaryHover,
|
|
976
|
+
pressed: themeVariables.secondaryPressed
|
|
977
977
|
};
|
|
978
978
|
theme.colors.info = {
|
|
979
|
-
DEFAULT:
|
|
980
|
-
hover:
|
|
981
|
-
pressed:
|
|
979
|
+
DEFAULT: themeVariables.info,
|
|
980
|
+
hover: themeVariables.infoHover,
|
|
981
|
+
pressed: themeVariables.infoPressed
|
|
982
982
|
};
|
|
983
983
|
theme.colors.success = {
|
|
984
|
-
DEFAULT:
|
|
985
|
-
hover:
|
|
986
|
-
pressed:
|
|
984
|
+
DEFAULT: themeVariables.success,
|
|
985
|
+
hover: themeVariables.successHover,
|
|
986
|
+
pressed: themeVariables.successPressed
|
|
987
987
|
};
|
|
988
988
|
theme.colors.warning = {
|
|
989
|
-
DEFAULT:
|
|
990
|
-
hover:
|
|
991
|
-
pressed:
|
|
989
|
+
DEFAULT: themeVariables.warning,
|
|
990
|
+
hover: themeVariables.warningHover,
|
|
991
|
+
pressed: themeVariables.warningPressed
|
|
992
992
|
};
|
|
993
993
|
theme.colors.danger = {
|
|
994
|
-
DEFAULT:
|
|
995
|
-
hover:
|
|
996
|
-
pressed:
|
|
994
|
+
DEFAULT: themeVariables.danger,
|
|
995
|
+
hover: themeVariables.dangerHover,
|
|
996
|
+
pressed: themeVariables.dangerPressed
|
|
997
997
|
};
|
|
998
998
|
theme.colors.light = {
|
|
999
999
|
DEFAULT: "oklch(97.31% 0.018 140)",
|
|
@@ -1009,7 +1009,12 @@ function extendTheme(theme) {
|
|
|
1009
1009
|
900: "oklch(90.72% 0.026 140)",
|
|
1010
1010
|
950: "oklch(89.23% 0.026 140)"
|
|
1011
1011
|
};
|
|
1012
|
+
theme.text = theme.text ?? {};
|
|
1013
|
+
theme.text.xs = { fontSize: "0.75rem", lineHeight: "1rem" };
|
|
1014
|
+
theme.text.sm = { fontSize: "0.875rem", lineHeight: "1.25rem" };
|
|
1015
|
+
theme.text.base = { fontSize: "0.875rem", lineHeight: "1.25rem" };
|
|
1016
|
+
theme.text.lg = { fontSize: "1rem", lineHeight: "1.5rem" };
|
|
1012
1017
|
}
|
|
1013
1018
|
export {
|
|
1014
|
-
|
|
1019
|
+
extendPresetWind4Theme
|
|
1015
1020
|
};
|