Skip to content

Commit 398548d

Browse files
committed
Fake fix by manually creating the tailwind classes.
1 parent 72ce05d commit 398548d

File tree

2 files changed

+163
-0
lines changed

2 files changed

+163
-0
lines changed

browser-extension/tests/playground/playground.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { createRoot } from 'react-dom/client'
22
import '@/entrypoints/popup/style.css'
33
import './style.css'
4+
import './tailwind-fix.css'
45
import { PopupPlayground } from './PopupPlayground'
56

67
const root = createRoot(document.getElementById('root')!)
Lines changed: 162 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,162 @@
1+
/* Tailwind utility classes for the component */
2+
3+
/* Background colors */
4+
.bg-white { background-color: #ffffff; }
5+
.bg-gray-50 { background-color: #f9fafb; }
6+
.bg-gray-100 { background-color: #f3f4f6; }
7+
.bg-blue-50 { background-color: #eff6ff; }
8+
.bg-blue-100 { background-color: #dbeafe; }
9+
.bg-green-50 { background-color: #f0fdf4; }
10+
.bg-purple-50 { background-color: #faf5ff; }
11+
.bg-slate-50 { background-color: #f8fafc; }
12+
.bg-slate-100 { background-color: #f1f5f9; }
13+
14+
/* Text colors */
15+
.text-gray-500 { color: #6b7280; }
16+
.text-gray-600 { color: #4b5563; }
17+
.text-gray-900 { color: #111827; }
18+
.text-slate-500 { color: #64748b; }
19+
.text-slate-600 { color: #475569; }
20+
.text-slate-900 { color: #0f172a; }
21+
.text-blue-600 { color: #2563eb; }
22+
.text-blue-700 { color: #1d4ed8; }
23+
.text-green-700 { color: #15803d; }
24+
.text-purple-700 { color: #7c3aed; }
25+
.text-sky-500 { color: #0ea5e9; }
26+
.text-emerald-500 { color: #10b981; }
27+
.text-rose-500 { color: #f43f5e; }
28+
.text-xs { font-size: 0.75rem; line-height: 1rem; }
29+
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
30+
31+
/* Spacing */
32+
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; }
33+
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
34+
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
35+
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
36+
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
37+
.p-1\.5 { padding: 0.375rem; }
38+
.p-3 { padding: 0.75rem; }
39+
.p-4 { padding: 1rem; }
40+
.p-6 { padding: 1.5rem; }
41+
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
42+
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
43+
.pl-9 { padding-left: 2.25rem; }
44+
.pr-3 { padding-right: 0.75rem; }
45+
.mt-3 { margin-top: 0.75rem; }
46+
.mb-2 { margin-top: 0.5rem; }
47+
.mb-4 { margin-bottom: 1rem; }
48+
.mb-6 { margin-bottom: 1.5rem; }
49+
.mt-6 { margin-top: 1.5rem; }
50+
.mx-auto { margin-left: auto; margin-right: auto; }
51+
52+
/* Layout */
53+
.min-h-screen { min-height: 100vh; }
54+
.w-full { width: 100%; }
55+
.w-3 { width: 0.75rem; }
56+
.w-4 { width: 1rem; }
57+
.h-3 { height: 0.75rem; }
58+
.h-4 { height: 1rem; }
59+
.w-10 { width: 2.5rem; }
60+
.w-24 { width: 6rem; }
61+
.max-w-xs { max-width: 20rem; }
62+
.max-w-2xl { max-width: 42rem; }
63+
.max-w-4xl { max-width: 56rem; }
64+
65+
/* Flexbox */
66+
.flex { display: flex; }
67+
.inline-flex { display: inline-flex; }
68+
.flex-1 { flex: 1 1 0%; }
69+
.flex-wrap { flex-wrap: wrap; }
70+
.items-center { align-items: center; }
71+
.justify-center { align-items: center; }
72+
.justify-end { justify-content: flex-end; }
73+
.gap-0\.5 { gap: 0.125rem; }
74+
.gap-1 { gap: 0.25rem; }
75+
.gap-1\.5 { gap: 0.375rem; }
76+
.gap-2 { gap: 0.5rem; }
77+
.gap-3 { gap: 0.75rem; }
78+
.space-y-1 > * + * { margin-top: 0.25rem; }
79+
.space-y-2 > * + * { margin-top: 0.5rem; }
80+
81+
/* Borders */
82+
.border { border-width: 1px; border-style: solid; border-color: #d1d5db; }
83+
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #d1d5db; }
84+
.border-gray-200 { border-color: #e5e7eb; }
85+
.border-gray-300 { border-color: #d1d5db; }
86+
.border-slate-200 { border-color: #e2e8f0; }
87+
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; border-top-color: #e5e7eb; }
88+
.divide-gray-200 > * + * { border-top-color: #e5e7eb; }
89+
90+
/* Border radius */
91+
.rounded { border-radius: 0.25rem; }
92+
.rounded-md { border-radius: 0.375rem; }
93+
.rounded-lg { border-radius: 0.5rem; }
94+
.rounded-full { border-radius: 9999px; }
95+
96+
/* Shadows */
97+
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
98+
99+
/* Position */
100+
.relative { position: relative; }
101+
.absolute { position: absolute; }
102+
.left-3 { left: 0.75rem; }
103+
.top-1\/2 { top: 50%; }
104+
.-translate-y-1\/2 { transform: translateY(-50%); }
105+
106+
/* Typography */
107+
.font-medium { font-weight: 500; }
108+
.font-semibold { font-weight: 600; }
109+
.font-bold { font-weight: 700; }
110+
.text-left { text-align: left; }
111+
.text-right { text-align: right; }
112+
.text-center { text-align: center; }
113+
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
114+
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
115+
.uppercase { text-transform: uppercase; }
116+
.tracking-wider { letter-spacing: 0.05em; }
117+
.truncate {
118+
overflow: hidden;
119+
text-overflow: ellipsis;
120+
white-space: nowrap;
121+
}
122+
123+
/* Interactions */
124+
.cursor-pointer { cursor: pointer; }
125+
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
126+
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
127+
.hover\:underline:hover { text-decoration: underline; }
128+
.transition-colors {
129+
transition-property: color, background-color, border-color;
130+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
131+
transition-duration: 150ms;
132+
}
133+
134+
/* Focus */
135+
.focus\:outline-none:focus { outline: none; }
136+
.focus\:ring-2:focus {
137+
box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5);
138+
}
139+
.focus\:ring-blue-500:focus {
140+
box-shadow: 0 0 0 2px rgb(59 130 246 / 0.5);
141+
}
142+
143+
/* Display */
144+
.hidden { display: none; }
145+
.table-fixed { table-layout: fixed; }
146+
147+
/* Overflow */
148+
.overflow-x-auto { overflow-x: auto; }
149+
150+
/* Responsive */
151+
@media (min-width: 640px) {
152+
.sm\:flex { display: flex; }
153+
}
154+
155+
/* Container */
156+
.container {
157+
width: 100%;
158+
margin-left: auto;
159+
margin-right: auto;
160+
padding-left: 1rem;
161+
padding-right: 1rem;
162+
}

0 commit comments

Comments
 (0)