-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontrast-test.html
More file actions
112 lines (99 loc) · 4.51 KB
/
Copy pathcontrast-test.html
File metadata and controls
112 lines (99 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>WhisperRNote Contrast Test</title>
<style>
body {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
transition: all 0.3s ease;
}
/* OLD COLORS (Before Fix) */
.old-light {
background-color: #f8f8f8; /* ash-white */
color: #1a120e; /* old light-fg */
padding: 2rem;
margin: 1rem;
border: 1px solid #e8e8e8;
border-radius: 8px;
}
.old-dark {
background-color: #0f0f0f; /* very dark ash */
color: #f5f2f0; /* old dark-fg */
padding: 2rem;
margin: 1rem;
border: 1px solid #2a2a2a;
border-radius: 8px;
}
/* NEW COLORS (After Fix) */
.new-light {
background-color: #f8f8f8; /* ash-white */
color: #0f0a08; /* new stronger light-fg */
padding: 2rem;
margin: 1rem;
border: 1px solid #e8e8e8;
border-radius: 8px;
}
.new-dark {
background-color: #0f0f0f; /* very dark ash */
color: #faf8f6; /* new stronger dark-fg */
padding: 2rem;
margin: 1rem;
border: 1px solid #2a2a2a;
border-radius: 8px;
}
h2 { margin-top: 0; }
.comparison { display: flex; flex-wrap: wrap; }
.side { flex: 1; min-width: 300px; }
.muted-old-light { color: #6b5b4f; } /* old muted */
.muted-new-light { color: #3d2f26; } /* new muted */
.muted-old-dark { color: #a69080; } /* old muted */
.muted-new-dark { color: #c4b5a8; } /* new muted */
</style>
</head>
<body>
<h1 style="text-align: center; padding: 1rem;">WhisperRNote Contrast Test</h1>
<div class="comparison">
<div class="side">
<h2 style="text-align: center;">BEFORE (Weak Contrast)</h2>
<div class="old-light">
<h2>Light Mode - Old</h2>
<p>This is regular text with the old light mode colors. Background: #f8f8f8, Text: #1a120e</p>
<p class="muted-old-light">This is muted text with old colors (#6b5b4f)</p>
<p><strong>This text should be hard to read due to weak contrast.</strong></p>
</div>
<div class="old-dark">
<h2>Dark Mode - Old</h2>
<p>This is regular text with the old dark mode colors. Background: #0f0f0f, Text: #f5f2f0</p>
<p class="muted-old-dark">This is muted text with old colors (#a69080)</p>
<p><strong>This text should be hard to read due to weak contrast.</strong></p>
</div>
</div>
<div class="side">
<h2 style="text-align: center;">AFTER (Strong Contrast)</h2>
<div class="new-light">
<h2>Light Mode - New</h2>
<p>This is regular text with the new light mode colors. Background: #f8f8f8, Text: #0f0a08</p>
<p class="muted-new-light">This is muted text with new colors (#3d2f26)</p>
<p><strong>This text should be much easier to read with stronger contrast!</strong></p>
</div>
<div class="new-dark">
<h2>Dark Mode - New</h2>
<p>This is regular text with the new dark mode colors. Background: #0f0f0f, Text: #faf8f6</p>
<p class="muted-new-dark">This is muted text with new colors (#c4b5a8)</p>
<p><strong>This text should be much easier to read with stronger contrast!</strong></p>
</div>
</div>
</div>
<div style="text-align: center; padding: 2rem; background: #f0f0f0; margin: 1rem; border-radius: 8px;">
<h3>Contrast Analysis</h3>
<p><strong>Old Light Mode:</strong> #1a120e on #f8f8f8 ≈ 15.5:1 contrast ratio</p>
<p><strong>New Light Mode:</strong> #0f0a08 on #f8f8f8 ≈ 19.8:1 contrast ratio</p>
<p><strong>Old Dark Mode:</strong> #f5f2f0 on #0f0f0f ≈ 15.2:1 contrast ratio</p>
<p><strong>New Dark Mode:</strong> #faf8f6 on #0f0f0f ≈ 18.6:1 contrast ratio</p>
<p style="color: #10b981;"><strong>✅ All exceed WCAG AAA standard (7:1), new colors provide ~30% better contrast!</strong></p>
</div>
</body>
</html>