Douro-ui / design-system

Douro UI is a Design System for all Metyis projects and partners
MIT License
2 stars 0 forks source link

Theme type must be available on root of @douro-ui/react #39

Closed joaoprcosta closed 4 months ago

joaoprcosta commented 4 months ago

Is your feature request related to a problem? Please describe. When configuring a new theme in a project we need to declare the theme object but it is not available on the root to be accessed.

import { Theme as DouroTheme } from '@douro-ui/react/src/tokens/themes/theme.types';

declare module '@emotion/react' {
  export interface Theme extends DouroTheme {}
}

Describe the solution you'd like I must be able to import the theme type from the root.

import type { Theme } from '@douro-ui/react';