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 CHANGED
@@ -3153,6 +3153,11 @@ var GlobalStyle = import_styled_components9.createGlobalStyle`
3153
3153
  -webkit-tap-highlight-color: transparent;
3154
3154
  }
3155
3155
 
3156
+ :root {
3157
+ ${(props) => Object.entries(props.theme.styles).map(([key, value]) => `--${key}: ${value}${typeof value === "number" ? "px" : ""};`)}
3158
+ ${(props) => Object.entries(props.theme.colors).map(([key, value]) => `--${key}: ${value};`)}
3159
+ }
3160
+
3156
3161
  a {
3157
3162
  text-decoration: none;
3158
3163
  color: inherit;
@@ -3238,6 +3243,7 @@ function BetterHtmlProviderInternalContent({ children }) {
3238
3243
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3239
3244
  GlobalStyle,
3240
3245
  {
3246
+ theme: theme2,
3241
3247
  fontFamily: theme2.styles.fontFamily,
3242
3248
  color: theme2.colors.textPrimary,
3243
3249
  backgroundColor: theme2.colors.backgroundBase