Skip to content

Commit

Permalink
fix: Add subtle transition to links
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed May 17, 2024
1 parent d066ffe commit ca16b1b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/panda-preset/patterns/link.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const link: PatternConfig = {
lineHeight: 'inherit',
textDecoration: 'underline',
color: 'primary',
transitionDuration: 'hover',
transitionTimingFunction: 'hover',
transitionProperty: 'all',
_visited: {
color: 'primary',
},
Expand Down
3 changes: 3 additions & 0 deletions src/panda-preset/patterns/quotedLink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const quotedLink: PatternConfig = {
lineHeight: 'inherit',
textDecoration: 'none',
color: 'inherit',
transitionDuration: 'hover',
transitionTimingFunction: 'hover',
transitionProperty: 'all',
_hover: {
cursor: 'pointer',
},
Expand Down
8 changes: 8 additions & 0 deletions src/panda-preset/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ export const theme = {
button: { value: '0.25em' },
round: { value: '99999em' },
},
easings: {
fade: { value: 'ease-out' },
hover: { value: 'ease-in' },
},
durations: {
fade: { value: '0.15s' },
hover: { value: '0.1s' },
},
},
semanticTokens: {
fontSizes: {
Expand Down

0 comments on commit ca16b1b

Please sign in to comment.