Skip to content

Is there a way for variants to inherit properties from default style? #1038

@jack1913

Description

@jack1913

Look at this example:

forms: {
    input: {
      color: 'primary',
      px: 3,
      py: 3,
      roundedTop: {
        borderBottomLeftRadius: 0,
        borderBottomRightRadius: 0,
      },
      roundedBottom: {
        borderTopLeftRadius: 0,
        borderTopRightRadius: 0,
      },
    },
  },

I have defined the default styles, there is a radii: 12px, and with variants I would like to modify the default values to nullify the radius as needed.

I have looked over the docs but did not find anything. :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions