@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.mjs
CHANGED
|
@@ -529,12 +529,12 @@ function createMuiTheme(tokens, darkMode = false) {
|
|
|
529
529
|
subtle: darkMode ? "#2a2a2a" : tokens.colors.backgroundSubtle
|
|
530
530
|
},
|
|
531
531
|
border: tokens.colors.border,
|
|
532
|
-
text: {
|
|
532
|
+
text: darkMode ? void 0 : {
|
|
533
533
|
primary: tokens.colors.textPrimary,
|
|
534
534
|
secondary: tokens.colors.textSecondary,
|
|
535
535
|
disabled: tokens.colors.textDisabled
|
|
536
536
|
},
|
|
537
|
-
divider: tokens.colors.divider
|
|
537
|
+
divider: darkMode ? void 0 : tokens.colors.divider
|
|
538
538
|
},
|
|
539
539
|
typography: {
|
|
540
540
|
fontFamily: tokens.typography.fontFamilyBase,
|
|
@@ -2447,7 +2447,7 @@ var StyledParagraph = styled13("p", {
|
|
|
2447
2447
|
outline: "transparent",
|
|
2448
2448
|
fontSize: theme.tokens.typography.fontSizeLg,
|
|
2449
2449
|
lineHeight: theme.tokens.typography.lineHeightBase,
|
|
2450
|
-
color: $isOnDarkBg ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
2450
|
+
color: $isOnDarkBg || theme.palette.mode === "dark" ? theme.palette.common.white : theme.tokens.colors.textPrimary,
|
|
2451
2451
|
...$variant === "regular" && {
|
|
2452
2452
|
fontWeight: theme.tokens.typography.fontWeightRegular
|
|
2453
2453
|
},
|
|
@@ -2464,7 +2464,7 @@ var StyledParagraph = styled13("p", {
|
|
|
2464
2464
|
fontWeight: theme.tokens.typography.fontWeightBold
|
|
2465
2465
|
},
|
|
2466
2466
|
...$variant === "overline" && {
|
|
2467
|
-
color: $isOnDarkBg ? theme.tokens.colors.overlayLight75 : theme.tokens.colors.textSecondary,
|
|
2467
|
+
color: $isOnDarkBg || theme.palette.mode === "dark" ? theme.tokens.colors.overlayLight75 : theme.tokens.colors.textSecondary,
|
|
2468
2468
|
fontWeight: theme.tokens.typography.fontWeightBold,
|
|
2469
2469
|
letterSpacing: "0.125rem",
|
|
2470
2470
|
textTransform: "uppercase"
|