UNPKG

@tabnews/ui

Version:
27 lines (26 loc) 658 B
import { jsxs as t, jsx as o } from "react/jsx-runtime"; import { ThemeProvider as l, BaseStyles as s, useTheme as m } from "@primer/react"; function d({ children: e, ...r }) { return /* @__PURE__ */ t(l, { ...r, children: [ /* @__PURE__ */ o(c, {}), /* @__PURE__ */ o(s, { children: e }) ] }); } function c() { const { resolvedColorScheme: e, theme: { colors: r } } = m(); return /* @__PURE__ */ o("style", { jsx: "true", global: "true", children: ` html:root { color-scheme: ${e}; } body { background: ${r.canvas.default}; } ` }); } export { c as GlobalStyle, d as ThemeProvider };