@octoguide/mui-ui-toolkit 0.7.1 → 0.7.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/index.js CHANGED
@@ -645,12 +645,14 @@ function createMuiTheme(tokens, darkMode = false) {
645
645
  subtle: darkMode ? "#2a2a2a" : tokens.colors.backgroundSubtle
646
646
  },
647
647
  border: tokens.colors.border,
648
- text: {
649
- primary: tokens.colors.textPrimary,
650
- secondary: tokens.colors.textSecondary,
651
- disabled: tokens.colors.textDisabled
652
- },
653
- divider: tokens.colors.divider
648
+ ...darkMode ? {} : {
649
+ text: {
650
+ primary: tokens.colors.textPrimary,
651
+ secondary: tokens.colors.textSecondary,
652
+ disabled: tokens.colors.textDisabled
653
+ },
654
+ divider: tokens.colors.divider
655
+ }
654
656
  },
655
657
  typography: {
656
658
  fontFamily: tokens.typography.fontFamilyBase,
@@ -2507,7 +2509,7 @@ var StyledParagraph = (0, import_styles15.styled)("p", {
2507
2509
  outline: "transparent",
2508
2510
  fontSize: theme.tokens.typography.fontSizeLg,
2509
2511
  lineHeight: theme.tokens.typography.lineHeightBase,
2510
- color: $isOnDarkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
2512
+ color: $isOnDarkBg || theme.palette.mode === "dark" ? theme.palette.common.white : theme.tokens.colors.textPrimary,
2511
2513
  ...$variant === "regular" && {
2512
2514
  fontWeight: theme.tokens.typography.fontWeightRegular
2513
2515
  },
@@ -2524,7 +2526,7 @@ var StyledParagraph = (0, import_styles15.styled)("p", {
2524
2526
  fontWeight: theme.tokens.typography.fontWeightBold
2525
2527
  },
2526
2528
  ...$variant === "overline" && {
2527
- color: $isOnDarkBg ? theme.tokens.colors.overlayLight75 : theme.tokens.colors.textSecondary,
2529
+ color: $isOnDarkBg || theme.palette.mode === "dark" ? theme.tokens.colors.overlayLight75 : theme.tokens.colors.textSecondary,
2528
2530
  fontWeight: theme.tokens.typography.fontWeightBold,
2529
2531
  letterSpacing: "0.125rem",
2530
2532
  textTransform: "uppercase"