Skip to content

Commit

Permalink
fix(IconBox): change invert color name to light
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Feb 22, 2024
1 parent b47deb1 commit 15b0d15
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/plugins/components/icon-box/icon-box.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export const defaultConfig = {
},
},
},
invert: {
light: {
background: {
light: 'white',
dark: 'muted-950',
Expand Down Expand Up @@ -212,7 +212,7 @@ export const defaultConfig = {
},
},
},
invert: {
light: {
background: {
light: 'white/10',
dark: 'white/10',
Expand Down Expand Up @@ -342,7 +342,7 @@ export const defaultConfig = {
},
},
},
invert: {
light: {
background: {
light: 'transparent',
dark: 'transparent',
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/components/icon-box/icon-box.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface IconBoxProps extends Record<string, unknown> {
| 'default-contrast'
| 'dark'
| 'black'
| 'invert'
| 'light'
| 'primary'
| 'info'
| 'success'
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/components/icon-box/icon-box.variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const variant = {
export const color = {
default: 'nui-box-default',
'default-contrast': 'nui-box-default-contrast',
invert: 'nui-box-invert',
light: 'nui-box-light',
dark: 'nui-box-dark',
black: 'nui-box-black',
primary: 'nui-box-primary',
Expand Down
26 changes: 13 additions & 13 deletions src/plugins/components/icon-box/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ export default plugin(({ addComponents, theme }) => {
[`@apply bg-${config.color.variant.solid.defaultContrast.background.light} dark:bg-${config.color.variant.solid.defaultContrast.background.dark}`]:
{},
},
//Color:invert
'&.nui-box-invert': {
//Color:light
'&.nui-box-light': {
//Font
[`@apply text-${config.color.variant.solid.invert.font.color.light} dark:text-${config.color.variant.solid.invert.font.color.dark}`]:
[`@apply text-${config.color.variant.solid.light.font.color.light} dark:text-${config.color.variant.solid.light.font.color.dark}`]:
{},
//Background
[`@apply bg-${config.color.variant.solid.invert.background.light} dark:bg-${config.color.variant.solid.invert.background.dark}`]:
[`@apply bg-${config.color.variant.solid.light.background.light} dark:bg-${config.color.variant.solid.light.background.dark}`]:
{},
},
//Color:dark
Expand Down Expand Up @@ -238,13 +238,13 @@ export default plugin(({ addComponents, theme }) => {
[`@apply bg-${config.color.variant.pastel.defaultContrast.background.light} dark:bg-${config.color.variant.pastel.defaultContrast.background.dark}`]:
{},
},
//Color:invert
'&.nui-box-invert': {
//Color:light
'&.nui-box-light': {
//Font
[`@apply text-${config.color.variant.pastel.invert.font.color.light} dark:text-${config.color.variant.pastel.invert.font.color.dark}`]:
[`@apply text-${config.color.variant.pastel.light.font.color.light} dark:text-${config.color.variant.pastel.light.font.color.dark}`]:
{},
//Background
[`@apply bg-${config.color.variant.pastel.invert.background.light} dark:bg-${config.color.variant.pastel.invert.background.dark}`]:
[`@apply bg-${config.color.variant.pastel.light.background.light} dark:bg-${config.color.variant.pastel.light.background.dark}`]:
{},
},
//Color:dark
Expand Down Expand Up @@ -337,16 +337,16 @@ export default plugin(({ addComponents, theme }) => {
[`@apply border-2 border-${config.color.variant.outline.defaultContrast.border.light} dark:border-${config.color.variant.outline.defaultContrast.border.dark}`]:
{},
},
//Color:invert
'&.nui-box-invert': {
//Color:light
'&.nui-box-light': {
//Font
[`@apply text-${config.color.variant.outline.invert.font.color.light} dark:text-${config.color.variant.outline.invert.font.color.dark}`]:
[`@apply text-${config.color.variant.outline.light.font.color.light} dark:text-${config.color.variant.outline.light.font.color.dark}`]:
{},
//Background
[`@apply bg-${config.color.variant.outline.invert.background.light} bg-${config.color.variant.outline.invert.background.dark}`]:
[`@apply bg-${config.color.variant.outline.light.background.light} bg-${config.color.variant.outline.light.background.dark}`]:
{},
//Border
[`@apply border-2 border-${config.color.variant.outline.invert.border.light} dark:border-${config.color.variant.outline.invert.border.dark}`]:
[`@apply border-2 border-${config.color.variant.outline.light.border.light} dark:border-${config.color.variant.outline.light.border.dark}`]:
{},
},
//Color:dark
Expand Down

0 comments on commit 15b0d15

Please sign in to comment.