Skip to content

Commit 9cbd8f8

Browse files
Proper migration for Tailwind 4
1 parent 5bd7757 commit 9cbd8f8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+64
-76
lines changed

src/components/Animation.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<button
15-
class="my-2 px-2 border-slate-800 dark:border-slate-200 border-2 rounded hover:bg-purple-500"
15+
class="my-2 px-2 border-slate-800 dark:border-slate-200 border-2 rounded-sm hover:bg-purple-500"
1616
onclick={addItem}>Add Item</button
1717
>
1818

@@ -21,7 +21,7 @@
2121
<li transition:slide={{ duration: 200 }}>
2222
{item}
2323
<button
24-
class="my-2 px-2 border-slate-800 dark:border-slate-200 border-2 rounded hover:bg-purple-500"
24+
class="my-2 px-2 border-slate-800 dark:border-slate-200 border-2 rounded-sm hover:bg-purple-500"
2525
onclick={() => removeItem(index)}>Remove</button
2626
>
2727
</li>

src/components/Carousel.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434
<button type="button" class="w-3 h-3 rounded-full" aria-current="false" aria-label="Slide 5" data-carousel-slide-to="4"></button>
3535
</div>
3636
<!-- Slider controls -->
37-
<button type="button" class="absolute top-0 start-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-prev>
38-
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-none">
37+
<button type="button" class="absolute top-0 start-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-hidden" data-carousel-prev>
38+
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-hidden">
3939
<svg class="w-4 h-4 text-white dark:text-gray-800 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
4040
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 1 1 5l4 4"/>
4141
</svg>
4242
<span class="sr-only">Previous</span>
4343
</span>
4444
</button>
45-
<button type="button" class="absolute top-0 end-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none" data-carousel-next>
46-
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-none">
45+
<button type="button" class="absolute top-0 end-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-hidden" data-carousel-next>
46+
<span class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-white/30 dark:bg-gray-800/30 group-hover:bg-white/50 dark:group-hover:bg-gray-800/60 group-focus:ring-4 group-focus:ring-white dark:group-focus:ring-gray-800/70 group-focus:outline-hidden">
4747
<svg class="w-4 h-4 text-white dark:text-gray-800 rtl:rotate-180" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 6 10">
4848
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 9 4-4-4-4"/>
4949
</svg>

src/components/CounterButtons.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
<main>
1414
<h3>The count is {count}</h3>
1515
<button
16-
class="my-2 border-slate-800 dark:border-slate-200 border-2 rounded hover:bg-purple-500"
16+
class="my-2 border-slate-800 dark:border-slate-200 border-2 rounded-sm hover:bg-purple-500"
1717
onclick={decrement}>-</button
1818
>
1919
<button
20-
class="my-2 border-slate-800 dark:border-slate-200 border-2 rounded hover:bg-purple-500"
20+
class="my-2 border-slate-800 dark:border-slate-200 border-2 rounded-sm hover:bg-purple-500"
2121
onclick={increment}>+</button
2222
>
2323

src/components/CurationItem.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const { Content } = await item.render();
1111
---
1212

1313
<li
14-
class="bg-white dark:bg-slate-800 rounded-lg px-6 py-8 ring-1 ring-slate-900/5 shadow-xl flex-grow-0 flex-[48%]"
14+
class="bg-white dark:bg-slate-800 rounded-lg px-6 py-8 ring-1 ring-slate-900/5 shadow-xl grow-0 flex-[48%]"
1515
>
1616
<a
1717
class="hover:grayscale"

src/components/Footer.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const today = new Date();
4848
☕️ Buy me a coffee
4949
</button>
5050
</a>
51-
<ul class="flex gap-2 list-none m-0 p-0">
51+
<ul class="flex flex-wrap md:flex-nowrap gap-2 list-none m-0 p-0">
5252
<FooterSocialItem
5353
class="col-span-1 px-4 py-2 border-2 rounded-full flex gap-2 items-center"
5454
link="mailto:jeremy@craftbyzen.com"

src/components/GuitarFingering.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
<div class="grid grid-cols-6 gap-4">
155155
{#each notes as note}
156156
<div
157-
class="col-span-3 sm:col-span-2 md:col-span-1 flex items-center ps-4 border border-gray-200 rounded dark:border-gray-700"
157+
class="col-span-3 sm:col-span-2 md:col-span-1 flex items-center ps-4 border border-gray-200 rounded-sm dark:border-gray-700"
158158
>
159159
<input
160160
class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"
@@ -183,7 +183,7 @@
183183
<div class="grid grid-cols-6 gap-8">
184184
{#each options as option}
185185
<div
186-
class="col-span-3 sm:col-span-2 md:col-span-1 flex items-center ps-4 border border-gray-200 rounded dark:border-gray-700"
186+
class="col-span-3 sm:col-span-2 md:col-span-1 flex items-center ps-4 border border-gray-200 rounded-sm dark:border-gray-700"
187187
>
188188
<input
189189
class="w-4 h-4 text-blue-600 bg-gray-100 border-gray-300 focus:ring-blue-500 dark:focus:ring-blue-600 dark:ring-offset-gray-800 focus:ring-2 dark:bg-gray-700 dark:border-gray-600"

src/components/HolidayCalendar.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@
5050
{maxValue}
5151
{minValue}
5252
numberOfMonths={1}
53-
class="rounded-md border shadow calendar-container"
53+
class="rounded-md border border-gray-200 shadow-sm calendar-container"
5454
{isDateUnavailable}
5555
/>
5656
<button
57-
class="px-2 my-2 border-slate-800 dark:border-slate-200 border-2 rounded hover:bg-purple-500 disabled:opacity-50 disabled:cursor-not-allowed"
57+
class="px-2 my-2 border-slate-800 dark:border-slate-200 border-2 rounded-sm hover:bg-purple-500 disabled:opacity-50 disabled:cursor-not-allowed"
5858
disabled={value?.toString() === today(getLocalTimeZone()).toString()}
5959
on:click={() => (value = today(getLocalTimeZone()))}>Return to today</button
6060
>
6161

6262
{#if selectedHolidays.length > 0}
63-
<div class="p-4 border rounded-md space-y-2">
63+
<div class="p-4 border border-gray-200 rounded-md space-y-2">
6464
<h3 class="font-semibold text-lg">
6565
Holidays on {value?.toString()}
6666
</h3>
@@ -77,7 +77,7 @@
7777
</div>
7878
</div>
7979
{:else}
80-
<div class="p-4 border rounded-md space-y-2">
80+
<div class="p-4 border border-gray-200 rounded-md space-y-2">
8181
<h3 class="font-semibold text-lg">
8282
No holidays on {value?.toString()}
8383
</h3>

src/components/HomePageAntiBookItem.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { pubDate, title, heroImage, heroImageAlt, blurb, author } = data;
1212
---
1313

1414
<div
15-
class="prose dark:prose-invert !max-w-none prose-p:m-0 grid grid-cols-8 gap-2 mb-6 md:mb-0 rounded-sm box-border dark:text-white"
15+
class="prose dark:prose-invert !max-w-none prose-p:m-0 grid grid-cols-8 gap-2 mb-6 md:mb-0 rounded-xs box-border dark:text-white"
1616
>
1717
<div class="col-span-5 sm:col-span-6 md:py-0 md:px-0 md:mt-0">
1818
<div class="mb-2">

src/components/HomePageBookItem.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const { pubDate, title, heroImage, heroImageAlt, blurb, author } = data;
1212
---
1313

1414
<div
15-
class="prose dark:prose-invert !max-w-none prose-p:m-0 grid grid-cols-8 gap-2 mb-6 md:mb-0 rounded-sm box-border dark:text-white"
15+
class="prose dark:prose-invert !max-w-none prose-p:m-0 grid grid-cols-8 gap-2 mb-6 md:mb-0 rounded-xs box-border dark:text-white"
1616
>
1717
<div class="col-span-5 sm:col-span-6 md:py-0 md:px-0 md:mt-0">
1818
<div class="mb-2">

src/components/HomePageCurationItem.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { item } = Astro.props;
99
---
1010

1111
<li
12-
class="grid grid-cols-8 gap-2 mb-6 md:mb-0 rounded-sm box-border dark:text-white"
12+
class="grid grid-cols-8 gap-2 mb-6 md:mb-0 rounded-xs box-border dark:text-white"
1313
>
1414
<div class="col-span-3 sm:col-span-2">
1515
<a

0 commit comments

Comments
 (0)