Skip to content

Commit

Permalink
fix(theme): update flat variant text colors to be accessible (#3738)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
rileybutterfield and wingkwong authored Sep 11, 2024
1 parent 74792f7 commit 54bd9cd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/tough-mangos-deliver.md
Original file line number Diff line number Diff line change
@@ -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)
12 changes: 6 additions & 6 deletions packages/core/theme/src/utils/variants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
};

Expand Down

0 comments on commit 54bd9cd

Please sign in to comment.