From 1b0b6b18589bc34ad75564301ac676c0e6f2c960 Mon Sep 17 00:00:00 2001 From: Joao Tenorio Date: Wed, 23 Apr 2025 09:35:31 -0300 Subject: [PATCH 1/2] Change destructive foreground color --- lib/generators/ruby_ui/install/templates/tailwind.css.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/ruby_ui/install/templates/tailwind.css.erb b/lib/generators/ruby_ui/install/templates/tailwind.css.erb index dc7fa403..e117f29e 100644 --- a/lib/generators/ruby_ui/install/templates/tailwind.css.erb +++ b/lib/generators/ruby_ui/install/templates/tailwind.css.erb @@ -24,7 +24,7 @@ --accent: oklch(0.97 0 0); --accent-foreground: oklch(0.205 0 0); --destructive: oklch(0.577 0.245 27.325); - --destructive-foreground: oklch(0.577 0.245 27.325); + --destructive-foreground: oklch(1 0 27.325); --border: oklch(0.922 0 0); --input: oklch(0.922 0 0); --ring: oklch(0.708 0 0); From 5c4f6abe12d161a77d30384903809dc1d68614d0 Mon Sep 17 00:00:00 2001 From: Joao Tenorio Date: Wed, 23 Apr 2025 09:42:56 -0300 Subject: [PATCH 2/2] Change destructive color to match AAA acessibility patterns --- lib/generators/ruby_ui/install/templates/tailwind.css.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/ruby_ui/install/templates/tailwind.css.erb b/lib/generators/ruby_ui/install/templates/tailwind.css.erb index e117f29e..95ebd059 100644 --- a/lib/generators/ruby_ui/install/templates/tailwind.css.erb +++ b/lib/generators/ruby_ui/install/templates/tailwind.css.erb @@ -23,7 +23,7 @@ --muted-foreground: oklch(0.556 0 0); --accent: oklch(0.97 0 0); --accent-foreground: oklch(0.205 0 0); - --destructive: oklch(0.577 0.245 27.325); + --destructive: oklch(0.487 0.245 27.325); --destructive-foreground: oklch(1 0 27.325); --border: oklch(0.922 0 0); --input: oklch(0.922 0 0);