@@ -78,26 +78,26 @@ const fontMono = "'Geist Mono'"
7878 <!-- Content column -->
7979 <div class =" flex flex-col flex-1 overflow-hidden justify-between" >
8080 <!-- Top content -->
81- <div class =" flex flex-col pt-8 pr-10 pl-8 " >
81+ <div class =" flex flex-col" style = " padding-top : 2 rem ; padding-right : 2.5 rem ; padding-left : 2 rem ; " >
8282 <!-- Top row: name+version+latest ← → downloads — single baseline -->
8383 <div class =" flex flex-row items-baseline justify-between mb-4" >
8484 <!-- Left: name · version · latest -->
8585 <div class =" flex flex-row items-baseline flex-wrap gap-[16px]" >
8686 <span
87- class =" text-[48px] font-medium leading-none tracking-[-1px]"
87+ class =" text-5xl font-medium leading-none tracking-[-1px]"
8888 :style =" { fontFamily: fontMono }"
8989 >
9090 {{ truncate(name, 24) }}
9191 </span >
9292 <span
93- class =" text-[26px ] font-light leading-none"
93+ class =" text-[1.625rem ] font-light leading-none"
9494 :style =" { color: theme.textMuted, fontFamily: fontMono }"
9595 >
9696 v{{ version }}
9797 </span >
9898 <span
9999 v-if =" isLatest"
100- class =" flex items-center text-[20px] font-normal py-1 px-[14px] rounded-[6px] leading-[1.5] tracking-[0.04em]"
100+ class =" flex items-center text-xl font-normal py-1 px-[14px] rounded-[6px] leading-[1.5] tracking-[0.04em]"
101101 :style =" {
102102 backgroundColor: withAlpha(primaryColor, 0.1),
103103 color: primaryColor,
@@ -109,18 +109,18 @@ const fontMono = "'Geist Mono'"
109109 <!-- Right: weekly downloads — flat, single line -->
110110 <div class =" flex flex-row items-baseline flex-shrink-0 gap-[10px]" >
111111 <span
112- class =" text-[40px ] font-medium leading-none tracking-[-1.5px]"
112+ class =" text-[2.5rem ] font-medium leading-none tracking-[-1.5px]"
113113 :style =" { color: theme.text, fontFamily: fontMono }"
114114 >
115115 {{ compactFormatter.format(weeklyDownloads) }}
116116 </span >
117- <span class =" text-[22px ] font-light" :style =" { color: theme.textMuted }" >weekly</span >
117+ <span class =" text-[1.375rem ] font-light" :style =" { color: theme.textMuted }" >weekly</span >
118118 </div >
119119 </div >
120120
121121 <!-- Description -->
122122 <div
123- class =" text-[22px ] font-light leading-[1.6] mb-5"
123+ class =" text-[1.375rem ] font-light leading-[1.6] mb-5"
124124 :style =" { color: theme.textMuted, fontFamily: fontSans }"
125125 >
126126 {{ truncate(description || 'No description.', 440) }}
@@ -130,15 +130,15 @@ const fontMono = "'Geist Mono'"
130130 <div class =" flex flex-row flex-wrap gap-[16px]" >
131131 <span
132132 v-if =" hasTypes"
133- class =" flex items-center text-[20px] font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
133+ class =" flex items-center text-xl font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
134134 :style =" {
135135 border: `1px solid ${theme.borderMuted}`,
136136 color: theme.textSubtle,
137137 }"
138138 >Types</span
139139 >
140140 <span
141- class =" flex items-center text-[20px] font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
141+ class =" flex items-center text-xl font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
142142 :style =" {
143143 border: `1px solid ${theme.borderMuted}`,
144144 color: theme.textSubtle,
@@ -147,7 +147,7 @@ const fontMono = "'Geist Mono'"
147147 >
148148 <span
149149 v-if =" license"
150- class =" flex items-center text-[20px] font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
150+ class =" flex items-center text-xl font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
151151 :style =" {
152152 border: `1px solid ${theme.borderMuted}`,
153153 color: theme.textSubtle,
@@ -156,7 +156,7 @@ const fontMono = "'Geist Mono'"
156156 >
157157 <span
158158 v-if =" repoSlug"
159- class =" flex items-center text-[20px] font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
159+ class =" flex items-center text-xl font-light py-1 px-[14px] rounded-[6px] leading-[1.6]"
160160 :style =" {
161161 border: `1px solid ${theme.borderFaint}`,
162162 color: theme.textFaint,
@@ -168,7 +168,7 @@ const fontMono = "'Geist Mono'"
168168 </div >
169169
170170 <!-- Bottom unified stats row -->
171- <div class =" flex flex-col justify-center flex-shrink-0 h-[132px] pr-10 pl-8 " >
171+ <div class =" flex flex-col justify-center flex-shrink-0 h-[132px]" style = " padding-right : 2.5 rem ; padding-left : 2 rem ; " >
172172 <div class =" flex flex-row items-center gap-[42px]" >
173173 <!-- Stars -->
174174 <div v-if =" stars > 0" class =" flex flex-row items-center gap-2" >
@@ -187,7 +187,7 @@ const fontMono = "'Geist Mono'"
187187 />
188188 </svg >
189189 <span
190- class =" text-[24px] font-normal leading-none tracking-[-0.3px]"
190+ class =" text-2xl font-normal leading-none tracking-[-0.3px]"
191191 :style =" { color: theme.textMuted }"
192192 >{{ compactFormatter.format(stars) }}</span
193193 >
@@ -211,7 +211,7 @@ const fontMono = "'Geist Mono'"
211211 <path d =" M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9m6 3v3" />
212212 </svg >
213213 <span
214- class =" text-[24px] font-normal leading-none tracking-[-0.3px]"
214+ class =" text-2xl font-normal leading-none tracking-[-0.3px]"
215215 :style =" { color: theme.textMuted }"
216216 >{{ compactFormatter.format(forks) }}</span
217217 >
@@ -235,7 +235,7 @@ const fontMono = "'Geist Mono'"
235235 <path d =" M3.29 7L12 12l8.71-5M7.5 4.27l9 5.15" />
236236 </svg >
237237 <span
238- class =" text-[24px] font-normal leading-none tracking-[-0.3px]"
238+ class =" text-2xl font-normal leading-none tracking-[-0.3px]"
239239 :style =" { color: theme.textMuted }"
240240 >{{ bytesFormatter.format(unpackedSize) }}</span
241241 >
@@ -257,7 +257,7 @@ const fontMono = "'Geist Mono'"
257257 <path d =" M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" />
258258 </svg >
259259 <span
260- class =" text-[24px] font-normal leading-none tracking-[-0.3px]"
260+ class =" text-2xl font-normal leading-none tracking-[-0.3px]"
261261 :style =" { color: theme.textMuted }"
262262 >{{ depsCount }}</span
263263 >
@@ -280,7 +280,7 @@ const fontMono = "'Geist Mono'"
280280 <path d =" M3 10h18" />
281281 </svg >
282282 <span
283- class =" text-[24px] font-normal leading-none tracking-[-0.3px]"
283+ class =" text-2xl font-normal leading-none tracking-[-0.3px]"
284284 :style =" { color: theme.textMuted }"
285285 >{{ formatDate(publishedAt) }}</span
286286 >
@@ -292,23 +292,27 @@ const fontMono = "'Geist Mono'"
292292
293293 <!-- ── Footer ────────────────────────────────────────────────────── -->
294294 <div
295- class =" flex flex-row items-center justify-between flex-shrink-0 py-4 pr-10 pl-8 "
295+ class =" flex flex-row items-center justify-between flex-shrink-0"
296296 :style =" {
297297 borderTop: `1px solid ${theme.border}`,
298298 backgroundColor: theme.bg,
299+ paddingTop: '1rem',
300+ paddingBottom: '1rem',
301+ paddingRight: '2.5rem',
302+ paddingLeft: '2rem',
299303 }"
300304 >
301305 <div
302- class =" flex flex-row items-center text-[22px ] font-light"
306+ class =" flex flex-row items-center text-[1.375rem ] font-light"
303307 :style =" { fontFamily: fontMono }"
304308 >
305- <span class =" font-medium -ml-1 " :style =" { color: primaryColor }" >.</span >/npmx
306- <span class =" ml-3 font-light" :style =" { color: theme.textSubtle, fontFamily: fontSans }"
309+ <span class =" font-medium" :style =" { color: primaryColor, marginLeft: '-0.25rem' }" >.</span >/npmx
310+ <span class =" font-light" :style =" { color: theme.textSubtle, fontFamily: fontSans, marginLeft: '0.75rem' }"
307311 >· npm package explorer</span
308312 >
309313 </div >
310314 <span
311- class =" text-[20px] font-light"
315+ class =" text-xl font-light"
312316 :style =" { color: theme.textSubtle, fontFamily: fontMono }"
313317 >
314318 npmx.dev/package/{{ name }}
0 commit comments