Skip to content

Commit

Permalink
feat(Button): add contrast color variant styles
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 18, 2024
1 parent ff0c853 commit 15930a6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/plugins/components/button/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ export default plugin(({ addComponents, theme }) => {
},
'&.nui-button-pastel': {
//Pastel:default
'&.nui-button-default': {
'&.nui-button-default, &.nui-button-default-contrast': {
//Text color
[`@apply text-${config.variant.pastel.default.text.light} dark:text-${config.variant.pastel.default.text.dark}`]:
{},
Expand All @@ -541,7 +541,7 @@ export default plugin(({ addComponents, theme }) => {
{},
},
//Pastel:muted
'&.nui-button-muted': {
'&.nui-button-muted, &.nui-button-muted-contrast': {
//Text color
[`@apply text-${config.variant.pastel.muted.text.light} dark:text-${config.variant.pastel.muted.text.dark}`]:
{},
Expand Down Expand Up @@ -706,7 +706,7 @@ export default plugin(({ addComponents, theme }) => {
//Variant:outline
'&.nui-button-outline': {
//Outline:default
'&.nui-button-default': {
'&.nui-button-default, &.nui-button-default-contrast': {
//Text color
[`@apply text-${config.variant.outline.default.text.light.base} dark:text-${config.variant.outline.default.text.dark.base}`]:
{},
Expand Down Expand Up @@ -776,7 +776,7 @@ export default plugin(({ addComponents, theme }) => {
},
},
//Outline:muted
'&.nui-button-muted': {
'&.nui-button-muted, &.nui-button-muted-contrast': {
//Text color
[`@apply text-${config.variant.outline.muted.text.light.base} dark:text-${config.variant.outline.muted.text.dark.base}`]:
{},
Expand Down

0 comments on commit 15930a6

Please sign in to comment.