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