File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export type ColorTheme = {
1111 options : ColorOptions ;
1212} ;
1313
14- export function useColorTheme ( ) : ColorTheme {
14+ export function useColors ( ) : ColorTheme {
1515 const { isDark } = useIsDark ( ) ;
1616
1717 const options = useMemo ( ( ) => getColorOptions ( { isDark } ) , [ isDark ] ) ;
Original file line number Diff line number Diff line change 1+ export * from "./start" ;
12export { useIsDark , $isDark } from "./darkMode" ;
2- export * from "./breakpoints" ;
33export * from "./colors" ;
4- export * from "./start" ;
4+ export type { BreakpointKeys } from "./breakpoints" ;
5+ import { breakpoints } from "./breakpoints" ;
6+ import { spacing } from "./spacing" ;
7+ export type { SpacingToken } from "./spacing" ;
8+
9+ export const fr = {
10+ breakpoints,
11+ spacing
12+ } ;
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const spacingTokenByValue = {
1111
1212type SpacingTokenByValue = typeof spacingTokenByValue ;
1313
14- type SpacingToken = keyof SpacingTokenByValue ;
14+ export type SpacingToken = keyof SpacingTokenByValue ;
1515
1616export function spacing < T extends SpacingToken > ( token : T ) : SpacingTokenByValue [ T ] ;
1717export function spacing <
You can’t perform that action at this time.
0 commit comments