Skip to content

Commit

Permalink
feat: export some system functions
Browse files Browse the repository at this point in the history
  • Loading branch information
juanrgm committed Oct 28, 2022
1 parent 6fe8621 commit 6440e2d
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .changeset/chilly-cougars-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@suid/material": minor
"@suid/system": minor
---

Export some system functions
18 changes: 16 additions & 2 deletions packages/material/src/styles/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
export {
hexToRgb,
rgbToHex,
hslToRgb,
decomposeColor,
recomposeColor,
getContrastRatio,
getLuminance,
emphasize,
alpha,
darken,
lighten,
StyledEngineProvider,
} from "@suid/system";
export type { Breakpoint } from "@suid/system";
export { default as useTheme } from "./useTheme";
export { default as useThemeProps } from "./useThemeProps";
export { createTheme } from "./createTheme";
export { default as ThemeProvider } from "./ThemeProvider";
export { createTheme } from "./createTheme";
export type { Theme } from "./createTheme";
export { default as StyledEngineProvider } from "@suid/system/StyledEngineProvider";
2 changes: 2 additions & 0 deletions packages/system/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ export * from "./breakpoints";

export type { SxProps } from "./sxProps";
export type { SystemProps } from "./systemProps";
export type { Breakpoint } from "./createTheme/createBreakpoints";
export { default as StyledEngineProvider } from "./StyledEngineProvider";

0 comments on commit 6440e2d

Please sign in to comment.