Skip to content

Commit

Permalink
feat(Label): config redesign and implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 7, 2023
1 parent fd7a3e2 commit d6483ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/plugins/components/label/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default plugin.withOptions(

addComponents({
[`.${prefix}label`]: {
[`@apply inline-block font-${config.font} leading-none text-${config.text} dark:text-${config.textDark}`]:
[`@apply inline-block font-${config.font.family} leading-none text-${config.font.color.light} dark:text-${config.font.color.dark}`]:
{},
},
})
Expand Down
10 changes: 7 additions & 3 deletions src/plugins/components/label/label.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
export const key = 'label' as const

export const defaultConfig = {
font: 'sans',
text: 'muted-400',
textDark: 'muted-400/80',
font: {
family: 'sans',
color: {
light: 'muted-400',
dark: 'muted-400/80',
},
},
}

export type LabelPluginConfig = typeof defaultConfig
Expand Down

0 comments on commit d6483ce

Please sign in to comment.