@gjfleo/theme 0.1.2 → 0.2.0

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.
@@ -932,7 +932,24 @@ var require_lib = __commonJS((exports) => {
932
932
  });
933
933
 
934
934
  // src/naive-ui/theme-overrides-dark.ts
935
- var theme_overrides_dark_default = {};
935
+ var theme_overrides_dark_default = {
936
+ common: {
937
+ fontFamily: "var(--default-font-family)",
938
+ fontFamilyMono: "var(--default-monoFont-family)",
939
+ fontWeight: "var(--fontWeight-normal)",
940
+ fontWeightStrong: "var(--fontWeight-medium)",
941
+ borderRadius: "var(--radius-DEFAULT)",
942
+ borderRadiusSmall: "var(--radius-xs)",
943
+ fontSize: "var(--text-base-fontSize)",
944
+ fontSizeMini: "var(--text-xs-fontSize)",
945
+ fontSizeTiny: "var(--text-xs-fontSize)",
946
+ fontSizeSmall: "var(--text-sm-fontSize)",
947
+ fontSizeMedium: "var(--text-base-fontSize)",
948
+ fontSizeLarge: "var(--text-lg-fontSize)",
949
+ fontSizeHuge: "var(--text-xl-fontSize)",
950
+ lineHeight: "1.5"
951
+ }
952
+ };
936
953
  // src/theme-variables.ts
937
954
  var import_seemly = __toESM(require_lib(), 1);
938
955
  function createHoverColor(color, overlayAlpha = 0.15) {
@@ -968,33 +985,51 @@ var theme_variables_default = themeVariables;
968
985
  // src/naive-ui/theme-overrides-light.ts
969
986
  var theme_overrides_light_default = {
970
987
  common: {
988
+ fontFamily: "var(--default-font-family)",
989
+ fontFamilyMono: "var(--default-monoFont-family)",
990
+ fontWeight: "var(--fontWeight-normal)",
991
+ fontWeightStrong: "var(--fontWeight-medium)",
992
+ borderRadius: "var(--radius-DEFAULT)",
993
+ borderRadiusSmall: "var(--radius-xs)",
971
994
  primaryColor: theme_variables_default.primary,
972
995
  primaryColorHover: theme_variables_default.primaryHover,
973
996
  primaryColorPressed: theme_variables_default.primaryPressed,
997
+ primaryColorSuppl: theme_variables_default.primary,
974
998
  infoColor: theme_variables_default.info,
975
999
  infoColorHover: theme_variables_default.infoHover,
976
1000
  infoColorPressed: theme_variables_default.infoPressed,
1001
+ infoColorSuppl: theme_variables_default.info,
977
1002
  successColor: theme_variables_default.success,
978
1003
  successColorHover: theme_variables_default.successHover,
979
1004
  successColorPressed: theme_variables_default.successPressed,
1005
+ successColorSuppl: theme_variables_default.success,
980
1006
  warningColor: theme_variables_default.warning,
981
1007
  warningColorHover: theme_variables_default.warningHover,
982
1008
  warningColorPressed: theme_variables_default.warningPressed,
1009
+ warningColorSuppl: theme_variables_default.warning,
983
1010
  errorColor: theme_variables_default.danger,
984
1011
  errorColorHover: theme_variables_default.dangerHover,
985
1012
  errorColorPressed: theme_variables_default.dangerPressed,
986
- textColorBase: "#222222",
987
- textColor1: "#323232",
988
- textColor2: "#4A4A4A",
989
- textColor3: "#6A7282",
990
- bodyColor: theme_variables_default.light,
991
- cardColor: "#FCFEFCFF",
992
- tableColor: "#F5F7F5FF",
993
- tableHeaderColor: "#FAFCFAFF",
994
- dividerColor: "#E6E8E6FF"
1013
+ errorColorSuppl: theme_variables_default.danger,
1014
+ fontSize: "var(--text-base-fontSize)",
1015
+ fontSizeMini: "var(--text-xs-fontSize)",
1016
+ fontSizeTiny: "var(--text-xs-fontSize)",
1017
+ fontSizeSmall: "var(--text-sm-fontSize)",
1018
+ fontSizeMedium: "var(--text-base-fontSize)",
1019
+ fontSizeLarge: "var(--text-lg-fontSize)",
1020
+ fontSizeHuge: "var(--text-xl-fontSize)",
1021
+ lineHeight: "1.5",
1022
+ textColorBase: "var(--colors-dark-400)",
1023
+ textColor1: "var(--colors-dark-200)",
1024
+ textColor2: "var(--colors-dark-50)",
1025
+ textColor3: "var(--colors-gray-500)",
1026
+ textColorDisabled: "var(--colors-gray-400)",
1027
+ bodyColor: theme_variables_default.light
995
1028
  },
996
- Table: {
997
- tdColor: "#F5F7F5FF"
1029
+ Card: {
1030
+ color: "var(--colors-light-400)",
1031
+ colorEmbedded: "var(--colors-light-50)",
1032
+ borderColor: "var(--colors-gray-200)"
998
1033
  }
999
1034
  };
1000
1035
  export {
@@ -1,7 +1,7 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { PresetWindTheme } from 'unocss';
3
+ import { PresetWind4Theme } from 'unocss';
4
4
 
5
- export declare function extendTheme(theme: PresetWindTheme): void;
5
+ export declare function extendPresetWind4Theme(theme: PresetWind4Theme): void;
6
6
 
7
7
  export {};
@@ -964,7 +964,8 @@ var themeVariables = {
964
964
  var theme_variables_default = themeVariables;
965
965
 
966
966
  // src/unocss/index.ts
967
- function extendTheme(theme) {
967
+ function extendPresetWind4Theme(theme) {
968
+ theme.colors = theme.colors ?? {};
968
969
  theme.colors.primary = {
969
970
  DEFAULT: theme_variables_default.primary,
970
971
  hover: theme_variables_default.primaryHover,
@@ -1009,7 +1010,12 @@ function extendTheme(theme) {
1009
1010
  900: "oklch(90.72% 0.026 140)",
1010
1011
  950: "oklch(89.23% 0.026 140)"
1011
1012
  };
1013
+ theme.text = theme.text ?? {};
1014
+ theme.text.xs = { fontSize: "0.75rem", lineHeight: "1rem" };
1015
+ theme.text.sm = { fontSize: "0.875rem", lineHeight: "1.25rem" };
1016
+ theme.text.base = { fontSize: "0.875rem", lineHeight: "1.25rem" };
1017
+ theme.text.lg = { fontSize: "1rem", lineHeight: "1.5rem" };
1012
1018
  }
1013
1019
  export {
1014
- extendTheme
1020
+ extendPresetWind4Theme
1015
1021
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gjfleo/theme",
3
3
  "type": "module",
4
- "version": "0.1.2",
4
+ "version": "0.2.0",
5
5
  "description": "GjfLeo's themes.",
6
6
  "author": "gjfLeo <gjfLeo@yeah.net>",
7
7
  "exports": {