Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add custom and accessible outlines #162

Merged
merged 2 commits into from
Oct 17, 2020
Merged

Conversation

ben-rogerson
Copy link
Owner

@ben-rogerson ben-rogerson commented Oct 13, 2020

This PR adds support for the changes to the default outline colors in Tailwindcss@1.9.0:

import tw from 'twin.macro'

tw`outline-none`
tw`outline-black`
tw`outline-white`

// ↓ ↓ ↓ ↓ ↓ ↓

({
  "outline": "2px solid transparent",
  "outlineOffset": "2px"
});
({
  "outline": "2px dotted black",
  "outlineOffset": "2px"
});
({
  "outline": "2px dotted white",
  "outlineOffset": "2px"
});

@ben-rogerson ben-rogerson merged commit 44d55c5 into master Oct 17, 2020
@ben-rogerson ben-rogerson deleted the feature/outline-transparent branch October 17, 2020 22:25
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.

1 participant