-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
241 lines (189 loc) · 7.1 KB
/
styles.css
File metadata and controls
241 lines (189 loc) · 7.1 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
/*
* Dim for X — CSS overrides
*
* The content.js script sets data-theme="dim" on <html>, which activates X's
* own Dim CSS variables. This stylesheet handles the remaining hardcoded colors
* that bypass the theme system: React Native Web utility classes, inline styles,
* and Tailwind classes that use raw black instead of CSS variables.
*
* Dim palette reference:
* Primary background: #15202B hsl(210, 34%, 13%)
* Secondary background: #192734 hsl(213, 25%, 16%) [--color-gray-0 in dim]
* Hover/elevated bg: #253341 hsl(211, 24%, 20%) [--color-gray-50 in dim]
* Border: #3D5466 hsl(210, 21%, 28%) [--color-gray-100 in dim]
*/
/* ===================================================================
1. BODY & HTML — Override inline style="background-color: rgb(0, 0, 0)"
=================================================================== */
html,
body {
background-color: #15202B !important;
}
/* ===================================================================
2. REACT NATIVE WEB CLASSES — These hardcode black and bypass
the CSS variable theme system entirely.
=================================================================== */
/* .r-kemksi { background-color: rgba(0,0,0,1.00) } */
.r-kemksi {
background-color: #15202B !important;
}
/* .r-1niwhzg { background-color: rgba(0,0,0,0.00) } — transparent, leave as-is */
/* .r-2tavb8 { background-color: rgba(0,0,0,0.60) } — semi-transparent overlay */
.r-2tavb8 {
background-color: rgba(21, 32, 43, 0.60) !important;
}
/* ===================================================================
3. TAILWIND .bg-black — Base classes that hardcode rgb(0 0 0).
These are used on sticky headers, tab bars, etc.
=================================================================== */
.bg-black {
background-color: #15202B !important;
}
.bg-black\/5 {
background-color: rgba(21, 32, 43, 0.05) !important;
}
.bg-black\/10 {
background-color: rgba(21, 32, 43, 0.1) !important;
}
.bg-black\/20 {
background-color: rgba(21, 32, 43, 0.2) !important;
}
.bg-black\/25 {
background-color: rgba(21, 32, 43, 0.25) !important;
}
.bg-black\/30 {
background-color: rgba(21, 32, 43, 0.3) !important;
}
.bg-black\/40 {
background-color: rgba(21, 32, 43, 0.4) !important;
}
.bg-black\/60 {
background-color: rgba(21, 32, 43, 0.6) !important;
}
.bg-black\/70 {
background-color: rgba(21, 32, 43, 0.7) !important;
}
.bg-black\/75 {
background-color: rgba(21, 32, 43, 0.75) !important;
}
.bg-black\/80 {
background-color: rgba(21, 32, 43, 0.8) !important;
}
.bg-black\/90 {
background-color: rgba(21, 32, 43, 0.9) !important;
}
/* ===================================================================
4. TAILWIND dark: VARIANTS — These use :where(html:not([data-theme='light']))
so they match BOTH "dark" and "dim". Override the black ones.
=================================================================== */
.dark\:bg-black:where(html:not([data-theme='light']), html:not([data-theme='light']) *) {
background-color: #15202B !important;
}
.dark\:bg-black\/50:where(html:not([data-theme='light']), html:not([data-theme='light']) *) {
background-color: rgba(21, 32, 43, 0.5) !important;
}
/* ===================================================================
5. TAILWIND HOVER VARIANTS — Hover states with hardcoded black
=================================================================== */
.hover\:bg-black\/40:hover {
background-color: rgba(21, 32, 43, 0.4) !important;
}
.hover\:bg-black\/50:hover {
background-color: rgba(21, 32, 43, 0.5) !important;
}
.hover\:bg-black\/90:hover {
background-color: rgba(21, 32, 43, 0.9) !important;
}
/* ===================================================================
6. TAILWIND GRADIENT — from-black / to-black
=================================================================== */
.\[--base-gradient-color\:\#000\] {
--base-gradient-color: #15202B;
}
.from-\[\#000\] {
--tw-gradient-from: #15202B var(--tw-gradient-from-position);
}
.to-\[\#000000\] {
--tw-gradient-to: #15202B var(--tw-gradient-to-position);
}
.to-\[\#000\] {
--tw-gradient-to: #15202B var(--tw-gradient-to-position);
}
/* ===================================================================
7. JETFUEL — Ad/promo elements with hardcoded black
=================================================================== */
.jf-element.bg-black {
background-color: #15202B !important;
}
.jf-element.bg-black\/70 {
background-color: rgba(21, 32, 43, 0.7) !important;
}
/* ===================================================================
8. INLINE STYLE OVERRIDES — Catch elements with hardcoded black
=================================================================== */
[style*="background-color: rgb(0, 0, 0)"] {
background-color: #15202B !important;
}
/* Dark near-black: rgba(15, 20, 25) used on scroll buttons, headers */
[style*="background-color: rgba(15, 20, 25"] {
background-color: rgba(21, 32, 43, 0.75) !important;
}
/* Dark border color rgb(47, 51, 54) → dim border */
[style*="border-color: rgb(47, 51, 54)"] {
border-color: hsl(210, 21%, 28%) !important;
}
[style*="border-bottom-color: rgb(47, 51, 54)"] {
border-bottom-color: hsl(210, 21%, 28%) !important;
}
[style*="border-top-color: rgb(47, 51, 54)"] {
border-top-color: hsl(210, 21%, 28%) !important;
}
/* Dark secondary text color rgb(113, 118, 123) → dim secondary text */
[style*="color: rgb(113, 118, 123)"] {
color: hsl(207, 14%, 54%) !important;
}
/* Dark secondary bg rgb(22, 24, 28) → dim card bg */
[style*="background-color: rgb(22, 24, 28)"] {
background-color: hsl(213, 25%, 16%) !important;
}
/* Dark secondary bg rgb(32, 35, 39) → dim elevated bg */
[style*="background-color: rgb(32, 35, 39)"] {
background-color: hsl(211, 24%, 20%) !important;
}
/* Dark scrollbar track colors */
[style*="scrollbar-color: rgb(62, 65, 68) rgb(22, 24, 28)"] {
scrollbar-color: #38444D #15202B !important;
}
/* ===================================================================
9. STICKY HEADERS — Tab bars ("For you"/"Following"), notification
headers, etc. These use runtime-injected RNW classes we can't
predict, so target by structural selectors.
=================================================================== */
/* r-1e5uvyk + r-5zmot are runtime-injected RNW classes applied to ALL
sticky headers across X (post detail "Post" bar, home "For you"/"Following"
tabs, notification headers, etc). They set position:sticky and a background
color dynamically — override the background. */
.r-1e5uvyk,
.r-5zmot {
background-color: #15202B !important;
}
/* ===================================================================
9. SCROLLBAR — Match the dim palette
=================================================================== */
body {
scrollbar-color: #38444D #15202B !important;
}
::-webkit-scrollbar {
width: 16px;
}
::-webkit-scrollbar-track {
background: #15202B;
}
::-webkit-scrollbar-thumb {
background-color: #38444D;
border: 4px solid #15202B;
border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
background-color: #8899AC;
}