Skip to content
New issue

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

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

Already on GitHub? # to your account

Create a provider that allows customizing default values as well as the theme #73

Closed
cheton opened this issue Mar 11, 2020 · 0 comments · Fixed by #922
Closed

Create a provider that allows customizing default values as well as the theme #73

cheton opened this issue Mar 11, 2020 · 0 comments · Fixed by #922
Labels
💬 discussion This is a request for comments 🎉 feature (enhancement) New feature or request
Milestone

Comments

@cheton
Copy link
Member

cheton commented Mar 11, 2020

MUI

Open MUI and access the theme object directly in the console:

Example:

components: {
  Link: {
    defaultProps: {
      underline: 'none',
    },
    styleOverrides: {
      root: {
        alignItems: 'center',
        display: 'inline-flex',
        fontWeight: 700,
      },
    },
    variants: [
      {
        props: { color: 'primary' },
        style: f (e),
      }
    ],
  },
}

image

Ant Design - ConfigProvider

https://ant.design/components/config-provider-cn/#header
https://ant.design/components/config-provider-cn/#API

@cheton cheton added the 💬 discussion This is a request for comments label Mar 11, 2020
@cheton cheton changed the title Create a provider that allows customizing certain settings as well as the theme Create a provider that allows customizing certain values as well as the theme Mar 11, 2020
@cheton cheton changed the title Create a provider that allows customizing certain values as well as the theme Create a provider that allows customizing default values as well as the theme May 29, 2020
@cheton cheton added the 🎉 feature (enhancement) New feature or request label May 29, 2020
@cheton cheton added the P2 label Jun 19, 2024
@cheton cheton added this to the v2 milestone Jul 11, 2024
@cheton cheton removed the P2 label Jul 11, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
💬 discussion This is a request for comments 🎉 feature (enhancement) New feature or request
Projects
None yet
1 participant