UNPKG

@tabnews/ui

Version:
9 lines (8 loc) 569 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@primer/react");function s({children:r,...o}){return e.jsxs(t.ThemeProvider,{...o,children:[e.jsx(l,{}),e.jsx(t.BaseStyles,{children:r})]})}function l(){const{resolvedColorScheme:r,theme:{colors:o}}=t.useTheme();return e.jsx("style",{jsx:"true",global:"true",children:` html:root { color-scheme: ${r}; } body { background: ${o.canvas.default}; } `})}exports.GlobalStyle=l;exports.ThemeProvider=s;