From 775dc2376b204a773005d1ee35bf0db0e53e87e3 Mon Sep 17 00:00:00 2001 From: Riley Butterfield Date: Tue, 10 Sep 2024 09:20:38 -0700 Subject: [PATCH 1/3] fix: use accessible text colors for flat variant --- packages/core/theme/src/utils/variants.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/theme/src/utils/variants.ts b/packages/core/theme/src/utils/variants.ts index d05da8761f..084bf1de5c 100644 --- a/packages/core/theme/src/utils/variants.ts +++ b/packages/core/theme/src/utils/variants.ts @@ -29,12 +29,12 @@ const bordered = { }; const flat = { - default: "bg-default/40 text-default-foreground", - primary: "bg-primary/20 text-primary", - secondary: "bg-secondary/20 text-secondary", - success: "bg-success/20 text-success-600 dark:text-success", - warning: "bg-warning/20 text-warning-600 dark:text-warning", - danger: "bg-danger/20 text-danger dark:text-danger-500", + default: "bg-default/40 text-default-700", + primary: "bg-primary/20 text-primary-700", + secondary: "bg-secondary/20 text-secondary-700", + success: "bg-success/20 text-success-800 dark:text-success", + warning: "bg-warning/20 text-warning-800 dark:text-warning", + danger: "bg-danger/20 text-danger-800 dark:text-danger-500", foreground: "bg-foreground/10 text-foreground", }; From 38daf9adf72b81fee0c7beb0635bfb1c1b74ae29 Mon Sep 17 00:00:00 2001 From: Riley Butterfield Date: Tue, 10 Sep 2024 09:25:27 -0700 Subject: [PATCH 2/3] fix: use accessible text colors for flat variant --- .changeset/tough-mangos-deliver.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/tough-mangos-deliver.md diff --git a/.changeset/tough-mangos-deliver.md b/.changeset/tough-mangos-deliver.md new file mode 100644 index 0000000000..d1738ee4f4 --- /dev/null +++ b/.changeset/tough-mangos-deliver.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/theme": minor +--- + +Updates the text colors for the flat variant in the theme so that elements using this variant are accessible From d5355435081319b444c24c5e36078920c3f08820 Mon Sep 17 00:00:00 2001 From: WK Wong Date: Wed, 11 Sep 2024 23:59:09 +0800 Subject: [PATCH 3/3] chore(changeset): update changeset --- .changeset/tough-mangos-deliver.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.changeset/tough-mangos-deliver.md b/.changeset/tough-mangos-deliver.md index d1738ee4f4..f9595370ad 100644 --- a/.changeset/tough-mangos-deliver.md +++ b/.changeset/tough-mangos-deliver.md @@ -1,5 +1,5 @@ --- -"@nextui-org/theme": minor +"@nextui-org/theme": patch --- -Updates the text colors for the flat variant in the theme so that elements using this variant are accessible +Updates the text colors for the flat variant in the theme so that elements using this variant are accessible (#3738)