diff --git a/.changeset/seven-forks-join.md b/.changeset/seven-forks-join.md new file mode 100644 index 00000000000..0a0450e8183 --- /dev/null +++ b/.changeset/seven-forks-join.md @@ -0,0 +1,5 @@ +--- +"@primer/styled-react": patch +--- + +Export theming utilities from styled-react diff --git a/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap b/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap index b4c0bcfd038..01c5c7ac016 100644 --- a/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap +++ b/packages/styled-react/src/__tests__/__snapshots__/exports.test.ts.snap @@ -53,6 +53,12 @@ exports[`@primer/styled-react exports 1`] = ` "UnderlineNav", "Box", "sx", + "ThemeProvider", + "merge", + "theme", + "themeGet", + "useColorSchemeVar", + "useTheme", ] `; diff --git a/packages/styled-react/src/index.ts b/packages/styled-react/src/index.ts index 3f2f0ef90e7..8b3188d4dd2 100644 --- a/packages/styled-react/src/index.ts +++ b/packages/styled-react/src/index.ts @@ -60,4 +60,12 @@ export { sx, type SxProp, type BetterSystemStyleObject, + + // theming depends on styled-components + ThemeProvider, + merge, + theme, + themeGet, + useColorSchemeVar, + useTheme, } from '@primer/react'