Skip to content

Commit

Permalink
feat(Focus): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 6, 2023
1 parent 689fa75 commit a793e75
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/plugins/components/focus/focus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ export const defaultConfig = {
offset: '2',
width: '2',
style: 'dashed',
color: 'muted-300',
colorDark: 'muted-600',
color: {
light: 'muted-300',
dark: 'muted-600',
},
mode: 'always' as 'always' | 'focus-visible',
}

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/components/focus/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default plugin.withOptions(
{},
'@apply outline-transparent': {},
[mode]: {
[`@apply outline-${config.color} dark:outline-${config.colorDark}`]:
[`@apply outline-${config.color.light} dark:outline-${config.color.dark}`]:
{},
[`@apply outline-${config.style} ring-0`]: {},
},
Expand Down

0 comments on commit a793e75

Please sign in to comment.