Skip to content

Commit 9c996f1

Browse files
committed
Export ThemeStyles
1 parent db8e187 commit 9c996f1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/css/src/types.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ export type ResponsiveStyleValue<T> = T | Array<T | null>
2323
export interface CSSProperties
2424
extends CSS.StandardProperties<number | string>,
2525
CSS.SvgProperties<number | string>,
26-
CSS.VendorProperties<number | string>
27-
{}
26+
CSS.VendorProperties<number | string> {}
2827

2928
/**
3029
* Map of all CSS pseudo selectors (`:hover`, `:focus`, ...)
@@ -538,7 +537,7 @@ interface ColorModesScale extends ColorMode {
538537
}
539538
}
540539

541-
interface ThemeStyles {
540+
export interface ThemeStyles {
542541
tr?: ThemeUIStyleObject
543542
th?: ThemeUIStyleObject
544543
td?: ThemeUIStyleObject

packages/sidenav/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @jsx jsx */
2-
import { jsx, ThemeProvider, SxStyleProp, Theme } from 'theme-ui'
2+
import { jsx, ThemeProvider, Theme, ThemeStyles } from 'theme-ui'
33
import { MDXProvider, MDXProviderComponents } from '@mdx-js/react'
44
import React, {
55
useState,
@@ -79,7 +79,7 @@ export const Sidenav = forwardRef<
7979
{
8080
open?: boolean
8181
components?: MDXProviderComponents
82-
styles?: Theme['styles']
82+
styles?: ThemeStyles
8383
children: ReactNode
8484
}
8585
>(({ open, styles = {}, components = {}, ...props }, ref) => {

packages/theme-ui/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export {
2525
ThemeUICSSProperties,
2626
ThemeUIStyleObject,
2727
Theme,
28+
ThemeStyles,
2829
TLengthStyledSystem,
2930
UseThemeFunction,
3031
} from '@theme-ui/css'

0 commit comments

Comments
 (0)