Skip to content

Commit

Permalink
refactor: migrate utilites to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
bjohansebas authored Mar 3, 2025
1 parent 6966e08 commit e689a4d
Show file tree
Hide file tree
Showing 26 changed files with 61 additions and 62 deletions.
4 changes: 2 additions & 2 deletions apps/site/components/Common/AlertBox/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
flex-row
items-center
gap-2
rounded
rounded-sm
px-4
py-3
text-sm
Expand Down Expand Up @@ -33,7 +33,7 @@
}

.title {
@apply rounded-sm
@apply rounded-xs
px-1.5;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
truncate;

&.active {
@apply rounded
@apply rounded-sm
bg-green-600
px-2
py-1
Expand Down
8 changes: 4 additions & 4 deletions apps/site/components/Common/Button/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
}

&.neutral {
@apply rounded
@apply rounded-sm
bg-neutral-900
text-white
dark:text-neutral-200;
Expand All @@ -47,12 +47,12 @@
}

&.primary {
@apply rounded
@apply rounded-sm
border
border-green-600
bg-green-600
text-white
shadow-sm;
shadow-xs;

&:hover:not([aria-disabled='true']) {
@apply border-green-700
Expand Down Expand Up @@ -102,7 +102,7 @@
border-green-600/30
bg-green-600/10
text-white
shadow-sm;
shadow-xs;

&::before {
@apply bg-gradient-glow-backdrop
Expand Down
2 changes: 1 addition & 1 deletion apps/site/components/Common/CodeBox/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.root {
@apply w-full
rounded
rounded-sm
border
border-neutral-900
bg-neutral-950;
Expand Down
2 changes: 1 addition & 1 deletion apps/site/components/Common/CrossLink/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
items-start
gap-2
truncate
rounded
rounded-sm
border
border-solid
border-neutral-300
Expand Down
5 changes: 2 additions & 3 deletions apps/site/components/Common/LanguageDropDown/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
@apply max-h-80
w-48
overflow-hidden
rounded
border
rounded-sm border
border-neutral-200
bg-white
shadow-lg
Expand All @@ -40,7 +39,7 @@
text-sm
font-medium
text-neutral-800
outline-none
outline-hidden
data-[highlighted]:bg-green-600
data-[highlighted]:text-white
dark:text-white;
Expand Down
2 changes: 1 addition & 1 deletion apps/site/components/Common/Notification/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

.root {
@apply m-6
rounded
rounded-sm
border
border-neutral-200
bg-white
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
size-10
items-center
justify-center
rounded
rounded-sm
px-3
py-2.5
text-neutral-800
Expand Down
2 changes: 1 addition & 1 deletion apps/site/components/Common/Preview/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
flex
aspect-[1.90/1]
items-center
rounded
rounded-sm
border
border-neutral-900
bg-neutral-950;
Expand Down
12 changes: 6 additions & 6 deletions apps/site/components/Common/Select/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
}

.trigger {
@apply inline-flex
@apply r
ounded-sm
inline-flex
h-11
w-full
min-w-[17rem]
items-center
justify-between
items-center justify-between
gap-2
rounded
border
border-neutral-300
bg-white
Expand All @@ -33,7 +33,7 @@
font-medium
text-neutral-900
shadow-xs
outline-none
outline-hidden
focus:border-neutral-500
focus:ring-1
focus:ring-neutral-500
Expand Down Expand Up @@ -86,7 +86,7 @@
@apply text-neutral-800
data-[highlighted]:bg-green-500
data-[highlighted]:text-white
data-[highlighted]:outline-none
data-[highlighted]:outline-hidden
dark:text-neutral-200
dark:data-[highlighted]:bg-green-600
dark:data-[highlighted]:text-white;
Expand Down
2 changes: 1 addition & 1 deletion apps/site/components/Common/Skeleton/index.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
bg-clip-border
text-transparent
shadow-none
outline-none
outline-hidden
select-none;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@apply inline-flex
items-center
gap-2
rounded
rounded-sm
px-3
py-2
motion-safe:transition-colors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

.active {
@apply rounded
@apply rounded-sm
bg-green-600
text-white
dark:text-white;
Expand Down
6 changes: 3 additions & 3 deletions apps/site/pages/en/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ Credit to [Angela Angelini](https://www.linkedin.com/in/angeliningl/) for design
<img
alt="Node.js Light Stacked Logo"
src="/static/logos/nodejsStackedLight.svg"
className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent"
className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent"
width="267"
height="164"
/>
Expand All @@ -83,7 +83,7 @@ Credit to [Angela Angelini](https://www.linkedin.com/in/angeliningl/) for design
<img
alt="Node.js White Stacked Logo"
src="/static/logos/nodejsStackedWhite.svg"
className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent"
className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent"
/>
</td>
</tr>
Expand All @@ -108,7 +108,7 @@ Credit to [Angela Angelini](https://www.linkedin.com/in/angeliningl/) for design
<img
alt="White JS Icons"
src="/static/logos/jsIconWhite.svg"
className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent"
className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent"
width="71"
height="80"
/>
Expand Down
6 changes: 3 additions & 3 deletions apps/site/pages/es/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
</td>

<td>
<img alt="Logo Apilado Claro de Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
<img alt="Logo Apilado Claro de Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
</td>

</tr>
Expand All @@ -59,7 +59,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
</td>

<td>
<img alt="Logo Apilado Blanco de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent" />
<img alt="Logo Apilado Blanco de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent" />
</td>

</tr>
Expand All @@ -76,7 +76,7 @@ Créditos a [Angela Angelini](https://www.linkedin.com/in/angeliningl/) por dise
</td>

<td>
<img alt="Iconos Blanco de JS" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
<img alt="Iconos Blanco de JS" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
</td>

</tr>
Expand Down
6 changes: 3 additions & 3 deletions apps/site/pages/fa/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ layout: about
</td>

<td>
<img alt="لوگو تراکم‌یافته روشن Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
<img alt="لوگو تراکم‌یافته روشن Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
</td>
</tr>

Expand All @@ -52,7 +52,7 @@ layout: about
</td>

<td>
<img alt="لوگو تراکم‌یافته سفید Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent" />
<img alt="لوگو تراکم‌یافته سفید Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent" />
</td>
</tr>
</table>
Expand All @@ -66,7 +66,7 @@ layout: about
</td>

<td>
<img alt="آیکون‌های JS سفید" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
<img alt="آیکون‌های JS سفید" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
</td>
</tr>
</table>
6 changes: 3 additions & 3 deletions apps/site/pages/fr/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
</td>

<td>
<img alt="Logo empilé clair de Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
<img alt="Logo empilé clair de Node.js" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
</td>

</tr>
Expand All @@ -59,7 +59,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
</td>

<td>
<img alt="Logo empilé blanc de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent" />
<img alt="Logo empilé blanc de Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent" />
</td>

</tr>
Expand All @@ -76,7 +76,7 @@ Crédit à [Angela Angelini](https://www.linkedin.com/in/angeliningl/) pour la c
</td>

<td>
<img alt="Icons JS Blanc" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
<img alt="Icons JS Blanc" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
</td>

</tr>
Expand Down
6 changes: 3 additions & 3 deletions apps/site/pages/id/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Penghargaan kepada [Angela Angelini](https://www.linkedin.com/in/angeliningl/) a
</td>

<td>
<img alt="Logo Terang Bertumpuk Node.js®" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
<img alt="Logo Terang Bertumpuk Node.js®" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
</td>

</tr>
Expand All @@ -59,7 +59,7 @@ Penghargaan kepada [Angela Angelini](https://www.linkedin.com/in/angeliningl/) a
</td>

<td>
<img alt="Logo Bertumpuk Putih Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent" />
<img alt="Logo Bertumpuk Putih Node.js" src="/static/logos/nodejsStackedWhite.svg" className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent" />
</td>

</tr>
Expand All @@ -76,7 +76,7 @@ Penghargaan kepada [Angela Angelini](https://www.linkedin.com/in/angeliningl/) a
</td>

<td>
<img alt="Ikon JS Putih" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
<img alt="Ikon JS Putih" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
</td>

</tr>
Expand Down
6 changes: 3 additions & 3 deletions apps/site/pages/ja/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Node.jsのロゴやシンボルマークの許可されている利用方法に
</td>

<td>
<img alt="Node.jsライトスタック型ロゴ" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
<img alt="Node.jsライトスタック型ロゴ" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
</td>

</tr>
Expand All @@ -59,7 +59,7 @@ Node.jsのロゴやシンボルマークの許可されている利用方法に
</td>

<td>
<img alt="Node.jsホワイトスタック型ロゴ" src="/static/logos/nodejsStackedWhite.svg" className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent" />
<img alt="Node.jsホワイトスタック型ロゴ" src="/static/logos/nodejsStackedWhite.svg" className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent" />
</td>

</tr>
Expand All @@ -76,7 +76,7 @@ Node.jsのロゴやシンボルマークの許可されている利用方法に
</td>

<td>
<img alt="JSアイコンホワイト" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
<img alt="JSアイコンホワイト" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
</td>

</tr>
Expand Down
6 changes: 3 additions & 3 deletions apps/site/pages/ko/about/branding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Node.js® 로고 및 마크의 허용 가능한 사용에 대한 정보는 [상
</td>

<td>
<img alt="Node.js 밝은 세로 로고" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
<img alt="Node.js 밝은 세로 로고" src="/static/logos/nodejsStackedLight.svg" className="h-[164px] w-[267px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="267" height="164" />
</td>

</tr>
Expand All @@ -59,7 +59,7 @@ Node.js® 로고 및 마크의 허용 가능한 사용에 대한 정보는 [상
</td>

<td>
<img alt="Node.js 흰색 세로 로고" src="/static/logos/nodejsStackedWhite.svg" className="rounded-sm bg-neutral-950 p-2 dark:bg-transparent" />
<img alt="Node.js 흰색 세로 로고" src="/static/logos/nodejsStackedWhite.svg" className="rounded-xs bg-neutral-950 p-2 dark:bg-transparent" />
</td>

</tr>
Expand All @@ -76,7 +76,7 @@ Node.js® 로고 및 마크의 허용 가능한 사용에 대한 정보는 [상
</td>

<td>
<img alt="흰색 JS 아이콘" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-sm bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
<img alt="흰색 JS 아이콘" src="/static/logos/jsIconWhite.svg" className="height-[80px] mx-auto w-[71px] rounded-xs bg-neutral-950 p-2 dark:bg-transparent" width="71" height="80" />
</td>

</tr>
Expand Down
Loading

0 comments on commit e689a4d

Please sign in to comment.