mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix(theme): update flat variant text colors to be accessible (#3738)
* fix: use accessible text colors for flat variant * fix: use accessible text colors for flat variant * chore(changeset): update changeset --------- Co-authored-by: WK Wong <wingkwong.code@gmail.com>
This commit is contained in:
parent
74792f7bff
commit
54bd9cdd6d
5
.changeset/tough-mangos-deliver.md
Normal file
5
.changeset/tough-mangos-deliver.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@nextui-org/theme": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Updates the text colors for the flat variant in the theme so that elements using this variant are accessible (#3738)
|
||||||
@ -29,12 +29,12 @@ const bordered = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const flat = {
|
const flat = {
|
||||||
default: "bg-default/40 text-default-foreground",
|
default: "bg-default/40 text-default-700",
|
||||||
primary: "bg-primary/20 text-primary",
|
primary: "bg-primary/20 text-primary-700",
|
||||||
secondary: "bg-secondary/20 text-secondary",
|
secondary: "bg-secondary/20 text-secondary-700",
|
||||||
success: "bg-success/20 text-success-600 dark:text-success",
|
success: "bg-success/20 text-success-800 dark:text-success",
|
||||||
warning: "bg-warning/20 text-warning-600 dark:text-warning",
|
warning: "bg-warning/20 text-warning-800 dark:text-warning",
|
||||||
danger: "bg-danger/20 text-danger dark:text-danger-500",
|
danger: "bg-danger/20 text-danger-800 dark:text-danger-500",
|
||||||
foreground: "bg-foreground/10 text-foreground",
|
foreground: "bg-foreground/10 text-foreground",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user