Skip to content

ring defaults - #2951

Merged
adamwathan merged 3 commits into
masterfrom
ring-defaults
Dec 2, 2020
Merged

ring defaults#2951
adamwathan merged 3 commits into
masterfrom
ring-defaults

Conversation

@RobinMalfait

@RobinMalfait RobinMalfait commented Nov 30, 2020

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown

@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

4 participants