anthonym21 commited on
Commit
1a9ccc8
·
1 Parent(s): 00b74f6

fix: improve hero contrast and typography

Browse files

Force explicit light text for the hero and markdown surfaces, use stronger font choices, and sync the visible test-count metric to 594.

Files changed (2) hide show
  1. app.py +50 -6
  2. app_logic.py +1 -1
app.py CHANGED
@@ -37,6 +37,8 @@ CUSTOM_CSS = """
37
  --slip-line: rgba(255, 255, 255, 0.08);
38
  --slip-text: #f4efe6;
39
  --slip-muted: #c5b8a0;
 
 
40
  --slip-accent: #d18d3b;
41
  --slip-cool: #83c5be;
42
  }
@@ -53,12 +55,43 @@ body, .gradio-container {
53
  max-width: 1320px !important;
54
  }
55
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
56
  .hero-shell {
57
  border: 1px solid var(--slip-line);
58
  border-radius: 28px;
59
  padding: 28px;
60
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
61
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
 
 
 
 
 
 
62
  }
63
 
64
  .hero-grid {
@@ -68,7 +101,9 @@ body, .gradio-container {
68
  }
69
 
70
  .eyebrow {
71
- color: var(--slip-accent);
 
 
72
  text-transform: uppercase;
73
  letter-spacing: 0.12em;
74
  font-size: 12px;
@@ -76,6 +111,8 @@ body, .gradio-container {
76
  }
77
 
78
  .hero-title {
 
 
79
  font-size: 56px;
80
  line-height: 0.95;
81
  margin: 0 0 16px 0;
@@ -83,9 +120,10 @@ body, .gradio-container {
83
  }
84
 
85
  .hero-copy {
 
 
86
  font-size: 17px;
87
  line-height: 1.65;
88
- color: var(--slip-muted);
89
  }
90
 
91
  .signal-card, .mini-card {
@@ -96,7 +134,9 @@ body, .gradio-container {
96
  }
97
 
98
  .signal-label {
99
- color: var(--slip-cool);
 
 
100
  text-transform: uppercase;
101
  letter-spacing: 0.10em;
102
  font-size: 12px;
@@ -111,7 +151,7 @@ body, .gradio-container {
111
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
112
  font-size: 13px;
113
  line-height: 1.65;
114
- color: var(--slip-text);
115
  white-space: pre-wrap;
116
  }
117
 
@@ -123,18 +163,22 @@ body, .gradio-container {
123
  }
124
 
125
  .stat-value {
 
 
126
  font-size: 28px;
127
  font-weight: 700;
128
  }
129
 
130
  .stat-label {
131
- color: var(--slip-muted);
 
132
  font-size: 13px;
133
  margin-top: 6px;
134
  }
135
 
136
  .panel-copy {
137
- color: var(--slip-muted);
 
138
  line-height: 1.65;
139
  }
140
 
 
37
  --slip-line: rgba(255, 255, 255, 0.08);
38
  --slip-text: #f4efe6;
39
  --slip-muted: #c5b8a0;
40
+ --slip-hero: #fbf5ea;
41
+ --slip-prose: #e7dbc8;
42
  --slip-accent: #d18d3b;
43
  --slip-cool: #83c5be;
44
  }
 
55
  max-width: 1320px !important;
56
  }
57
 
58
+ .gradio-container .prose,
59
+ .gradio-container .prose *,
60
+ .gradio-container .html-container,
61
+ .gradio-container .html-container * {
62
+ color: var(--slip-text);
63
+ }
64
+
65
+ .gradio-container .prose h1,
66
+ .gradio-container .prose h2,
67
+ .gradio-container .prose h3,
68
+ .gradio-container .prose h4,
69
+ .gradio-container .prose strong,
70
+ .gradio-container .prose th {
71
+ color: var(--slip-hero) !important;
72
+ }
73
+
74
+ .gradio-container .prose p,
75
+ .gradio-container .prose li,
76
+ .gradio-container .prose td,
77
+ .gradio-container .prose code,
78
+ .gradio-container .prose a {
79
+ color: var(--slip-prose) !important;
80
+ font-family: "Trebuchet MS", Verdana, sans-serif;
81
+ }
82
+
83
  .hero-shell {
84
  border: 1px solid var(--slip-line);
85
  border-radius: 28px;
86
  padding: 28px;
87
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
88
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
89
+ color: var(--slip-text);
90
+ }
91
+
92
+ .hero-shell,
93
+ .hero-shell * {
94
+ color: var(--slip-text);
95
  }
96
 
97
  .hero-grid {
 
101
  }
102
 
103
  .eyebrow {
104
+ color: var(--slip-accent) !important;
105
+ font-family: "Trebuchet MS", Verdana, sans-serif;
106
+ font-weight: 700;
107
  text-transform: uppercase;
108
  letter-spacing: 0.12em;
109
  font-size: 12px;
 
111
  }
112
 
113
  .hero-title {
114
+ color: var(--slip-hero) !important;
115
+ font-family: Georgia, "Times New Roman", serif;
116
  font-size: 56px;
117
  line-height: 0.95;
118
  margin: 0 0 16px 0;
 
120
  }
121
 
122
  .hero-copy {
123
+ color: var(--slip-prose) !important;
124
+ font-family: "Trebuchet MS", Verdana, sans-serif;
125
  font-size: 17px;
126
  line-height: 1.65;
 
127
  }
128
 
129
  .signal-card, .mini-card {
 
134
  }
135
 
136
  .signal-label {
137
+ color: var(--slip-cool) !important;
138
+ font-family: "Trebuchet MS", Verdana, sans-serif;
139
+ font-weight: 700;
140
  text-transform: uppercase;
141
  letter-spacing: 0.10em;
142
  font-size: 12px;
 
151
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
152
  font-size: 13px;
153
  line-height: 1.65;
154
+ color: var(--slip-hero) !important;
155
  white-space: pre-wrap;
156
  }
157
 
 
163
  }
164
 
165
  .stat-value {
166
+ color: var(--slip-hero);
167
+ font-family: Georgia, "Times New Roman", serif;
168
  font-size: 28px;
169
  font-weight: 700;
170
  }
171
 
172
  .stat-label {
173
+ color: var(--slip-prose) !important;
174
+ font-family: "Trebuchet MS", Verdana, sans-serif;
175
  font-size: 13px;
176
  margin-top: 6px;
177
  }
178
 
179
  .panel-copy {
180
+ color: var(--slip-prose) !important;
181
+ font-family: "Trebuchet MS", Verdana, sans-serif;
182
  line-height: 1.65;
183
  }
184
 
app_logic.py CHANGED
@@ -226,7 +226,7 @@ def get_overview_metrics() -> list[dict[str, str]]:
226
  return [
227
  {"metric": "Current release", "value": "3.1.1"},
228
  {"metric": "Core dependencies", "value": "0"},
229
- {"metric": "Passing tests", "value": "593"},
230
  {"metric": "Average token reduction", "value": "82%"},
231
  ]
232
 
 
226
  return [
227
  {"metric": "Current release", "value": "3.1.1"},
228
  {"metric": "Core dependencies", "value": "0"},
229
+ {"metric": "Passing tests", "value": "594"},
230
  {"metric": "Average token reduction", "value": "82%"},
231
  ]
232