Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(theme-ui): add typescript to the root package #724

Merged
merged 1 commit into from
Mar 1, 2020

Conversation

hasparus
Copy link
Member

@hasparus hasparus commented Feb 25, 2020

Part of #668.

Useful for #705.

Emitted .d.ts

/// <reference types="@theme-ui/core/dist/react-jsx" />
export { jsx, Context, merge, useThemeUI, ContextValue, IntrinsicSxElements, SxProps, SxStyleProp, } from '@theme-ui/core';
export { useColorMode, InitializeColorMode } from '@theme-ui/color-modes';
export { Styled, components } from '@theme-ui/mdx';
export { ThemeProvider } from '@theme-ui/theme-provider';
export * from '@theme-ui/components';
export { css, get, ColorMode, CSSObject, CSSProperties, CSSPseudoSelectorProps, ResponsiveStyleValue, SystemCssProperties, SystemStyleObject, Theme, TLengthStyledSystem, UseThemeFunction, } from '@theme-ui/css';
export declare const BaseStyles: (props: Record<string, unknown>) => import("react").DetailedReactHTMLElement<{
    sx: {
        fontFamily: string;
        lineHeight: string;
        fontWeight: string;
        variant: string;
    };
}, HTMLElement>;

@hasparus hasparus requested a review from mxstbr February 25, 2020 21:54
Copy link
Member

@mxstbr mxstbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, that looks great! Thank you @hasparus!

@mxstbr mxstbr merged commit 25da709 into system-ui:master Mar 1, 2020
@hasparus hasparus deleted the ts-theme-ui branch March 3, 2020 04:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants