Skip to content

Conversation

@RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Nov 30, 2020

Resolves #2911.

This PR allows you to set default values for the ring utilities, you can define the default offset width and offset color.

module.exports = {
  theme: {
    extend: {
      ringOffsetColor: {
        black: 'black',
        DEFAULT: 'black',
      },
      ringOffsetWidth: {
       4: '4px',
        DEFAULT: '4px'
      }
    },
  },
  variants: {},
  plugins: [],
}

This will allow you to write ring-2 instead of ring-2 ring-offset-black ring-offset-4

@florianbouvot
Copy link
Contributor

Thanks @RobinMalfait

@adamwathan adamwathan merged commit d1ef88a into master Dec 2, 2020
@adamwathan adamwathan deleted the ring-defaults branch December 2, 2020 20:45
@rightaway
Copy link

@RobinMalfait Docs includes DEFAULT info under Ring Width, but not under Ring Offset Width so it isn't clear from reading that it's possible for Offset too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing DEFAULT option for ringOffsetWidth and ringOffsetColor

5 participants