github chakra-ui/chakra-ui @chakra-ui/styled-system@2.1.0

latest releases: @chakra-ui/utils@3.0.0-next.23, @chakra-ui/react@3.0.0-next.23, @chakra-ui/docs@3.0.0-next.23...
2 years ago

Minor Changes

  • #6050
    ddea8d143
    Thanks @segunadebayo! - Add support for
    responsive variants and sizes.

    <Button variant={["sm", "lg"]}>Click me</Button>

    Add support for !important in token values as an escape hatch for overriding
    properties in responsive variants/sizes.

    <Button variant={["sm", "lg"]} fontSize="lg !important">
      Click me
    </Button>

    Notes

    • Based on how this is designed, there's no support for responsive
      colorScheme since it is technically not a variant
    • When using responsive sizes and variants, overriding properties via props
      might not work as expected. We use native CSS media queries to enable this
      feature so there's no "magic" under the hood. If you really want to override
      properties, you can consider using the important syntax

Don't miss a new chakra-ui release

NewReleases is sending notifications on new releases.