creativetimofficial / material-tailwind

@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.
https://material-tailwind.com/
MIT License
3.51k stars 307 forks source link

Theme Provider Types #519

Open worapolburaphan opened 7 months ago

worapolburaphan commented 7 months ago

Task Description:

The task involves enhancing the Theme Provider Types within the repository for specific components defined in the theme configuration. The objective is to define type structures for various components within the theme config, as demonstrated below:

type ThemeProviderConfig {
    dialog: DialogStylesType,
    button: ButtonStylesType,
    /* Additional component definitions */
}

const theme: ThemeProviderConfig = {
    dialog: { /* Configuration for the dialog component */ }
    button: { /* Configuration for the button component */ }
    /* Additional configurations for other components */
}

The aim is to refine and establish precise type definitions for various components, such as dialogs, buttons, and potentially other components within the theme configuration. This task involves enhancing the type definitions to ensure accuracy and clarity for each component's style configuration within the Material-Tailwind ThemeProvider