Skip to content

Commit

Permalink
fix: added link component to tailwind config
Browse files Browse the repository at this point in the history
  • Loading branch information
Craig Howell committed Oct 10, 2022
1 parent 6b99394 commit bd8127f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,3 @@ body {
-webkit-backface-visibility: hidden;
-webkit-tap-highlight-color: transparent;
}

a.link {
@apply underline;
@apply text-primary;
}

a.link:hover {
@apply text-primary-hover;
}
7 changes: 7 additions & 0 deletions src/lib/plugin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,13 @@ module.exports = plugin(
'--tw-scale-y': '1',
transform:
'translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))'
},
'a.link': {
'text-decoration-line': 'underline',
color: '#2563eb'
},
'a.link:hover': {
color: '#1d4ed8'
}
});
addBase({
Expand Down

0 comments on commit bd8127f

Please sign in to comment.