fix(web): Gruvbox text and links reach 4.5:1 contrast
Muted text on the secondary surface was 4.05:1 in Gruvbox dark and 3.8:1 in Gruvbox light, and the link colour on cards was 4.46:1 in Gruvbox light. The tokens are adjusted and the contrast test now also checks muted text on secondary and the primary colour as text on background and card. Closes #128
This commit is contained in:
parent
82f9ee39cc
commit
36dffc2ed1
2 changed files with 7 additions and 4 deletions
|
|
@ -33,6 +33,9 @@ const pairs: [string, string, number][] = [
|
|||
['foreground', 'card', 4.5],
|
||||
['muted-foreground', 'background', 4.5],
|
||||
['muted-foreground', 'card', 4.5],
|
||||
['muted-foreground', 'secondary', 4.5],
|
||||
['primary', 'background', 4.5],
|
||||
['primary', 'card', 4.5],
|
||||
['primary-foreground', 'primary', 4.5],
|
||||
['primary', 'background', 3],
|
||||
['input', 'background', 3],
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
--secondary: #504945;
|
||||
--secondary-foreground: #ebdbb2;
|
||||
--muted: #504945;
|
||||
--muted-foreground: #bdae93;
|
||||
--muted-foreground: #d5c4a1;
|
||||
--accent: #504945;
|
||||
--accent-foreground: #ebdbb2;
|
||||
--destructive: #fb4934;
|
||||
|
|
@ -124,16 +124,16 @@
|
|||
--card-foreground: #3c3836;
|
||||
--popover: #ebdbb2;
|
||||
--popover-foreground: #3c3836;
|
||||
--primary: #af3a03;
|
||||
--primary: #9d2f00;
|
||||
--primary-foreground: #fbf1c7;
|
||||
--secondary: #d5c4a1;
|
||||
--secondary-foreground: #3c3836;
|
||||
--muted: #d5c4a1;
|
||||
--muted-foreground: #665c54;
|
||||
--muted-foreground: #504945;
|
||||
--accent: #d5c4a1;
|
||||
--accent-foreground: #3c3836;
|
||||
--destructive: #9d0006;
|
||||
--border: #d5c4a1;
|
||||
--input: #7c6f64;
|
||||
--ring: #af3a03;
|
||||
--ring: #9d2f00;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue