Skip to content

Commit edd3904

Browse files
committed
Upgrade to @iconify/tailwind@1
1 parent 524f2c2 commit edd3904

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/routes/+page.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ let selected = 0
3131
<div class="badge badge-neutral ml-2 font-mono text-xs">v{version}</div>
3232
<p>High-performance responsive/progressive images for SvelteKit.</p>
3333
<a class="btn btn-primary" href="https://github.com/zerodevx/svelte-img" target="_blank">
34-
<span class="icon-[mdi--github] h-6 w-6" />
35-
Visit Github Repo
34+
<span class="iconify h-6 w-6 mdi--github" />
35+
VISIT GITHUB REPO
3636
</a>
3737
</div>
3838
</div>
@@ -202,6 +202,6 @@ const images = Object.entries(modules).map((i) => i[1])
202202
<footer
203203
class="flex h-96 w-full flex-row items-center justify-center bg-neutral text-neutral-content"
204204
>
205-
<span class="icon-[mdi--email] mr-2 h-6 w-6" />
205+
<span class="iconify mr-2 h-6 w-6 mdi--email" />
206206
<a class="link" href="mailto:[email protected]">[email protected]</a>
207207
</footer>

tailwind.config.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { addDynamicIconSelectors } = require('@iconify/tailwind')
1+
const { addIconSelectors } = require('@iconify/tailwind')
22
const dt = require('tailwindcss/defaultTheme')
33

44
const config = {
@@ -10,7 +10,7 @@ const config = {
1010
}
1111
}
1212
},
13-
plugins: [addDynamicIconSelectors(), require('@tailwindcss/typography'), require('daisyui')],
13+
plugins: [addIconSelectors(['mdi']), require('@tailwindcss/typography'), require('daisyui')],
1414
daisyui: {
1515
themes: [
1616
{

0 commit comments

Comments
 (0)