Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(theme): update flat variant text colors to be accessible #3738

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading