react-better-html 1.1.282 → 1.1.283
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 +6 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3088,6 +3088,11 @@ var GlobalStyle = createGlobalStyle`
|
|
|
3088
3088
|
-webkit-tap-highlight-color: transparent;
|
|
3089
3089
|
}
|
|
3090
3090
|
|
|
3091
|
+
:root {
|
|
3092
|
+
${(props) => Object.entries(props.theme.styles).map(([key, value]) => `--${key}: ${value}${typeof value === "number" ? "px" : ""};`)}
|
|
3093
|
+
${(props) => Object.entries(props.theme.colors).map(([key, value]) => `--${key}: ${value};`)}
|
|
3094
|
+
}
|
|
3095
|
+
|
|
3091
3096
|
a {
|
|
3092
3097
|
text-decoration: none;
|
|
3093
3098
|
color: inherit;
|
|
@@ -3173,6 +3178,7 @@ function BetterHtmlProviderInternalContent({ children }) {
|
|
|
3173
3178
|
/* @__PURE__ */ jsx12(
|
|
3174
3179
|
GlobalStyle,
|
|
3175
3180
|
{
|
|
3181
|
+
theme: theme2,
|
|
3176
3182
|
fontFamily: theme2.styles.fontFamily,
|
|
3177
3183
|
color: theme2.colors.textPrimary,
|
|
3178
3184
|
backgroundColor: theme2.colors.backgroundBase
|