Skip to content

Commit 76ad4eb

Browse files
committed
move from heroicons to lucide icon
1 parent 9b82ad4 commit 76ad4eb

File tree

10 files changed

+222
-185
lines changed

10 files changed

+222
-185
lines changed

app/layouts/auth.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ useHead({
1111
<div class="gradient" />
1212

1313
<UButton
14-
icon="i-heroicons-home"
14+
icon="i-lucide-home"
1515
label="Home"
1616
to="/"
1717
color="neutral"

app/pages/login.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ function onSubmit(data: any) {
5050
:providers="providers"
5151
title="Welcome back"
5252
align="top"
53-
icon="i-heroicons-lock-closed"
53+
icon="i-lucide-lock"
5454
:ui="{ base: 'text-center', footer: 'text-center' }"
55-
:submit-button="{ trailingIcon: 'i-heroicons-arrow-right-20-solid' }"
55+
:submit-button="{ trailingIcon: 'i-lucide-arrow-right' }"
5656
@submit="onSubmit"
5757
>
5858
<template #description>

content/0.index.yml

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ hero:
66
description: This template demonstrates most of Nuxt UI Pro's components. It's a great starting point to build your own SaaS.
77
headline:
88
label: Made with Nuxt UI Pro
9-
to: https://ui.nuxt.com/pro
9+
to: https://ui3.nuxt.dev/getting-started
1010
icon: i-lucide-arrow-up-right
1111
links:
1212
- label: Get started
1313
to: '/signup'
1414
size: xl
1515
color: neutral
16-
icon: i-heroicons-arrow-right-20-solid
16+
icon: i-lucide-arrow-right
1717
trailing: true
1818
- label: Use this template
1919
icon: i-simple-icons-github
@@ -30,18 +30,18 @@ sections:
3030
features:
3131
- name: Easy to use
3232
description: Id laborum laboris duis nostrud excepteur ut velit.
33-
icon: i-heroicons-cog
33+
icon: i-lucide-cog
3434
- name: Reliable
3535
description: Magna Lorem ex cillum fugiat ad enim aute irure sit duis minim.
36-
icon: i-heroicons-check
36+
icon: i-lucide-check
3737
- name: Secure
3838
description: Proident nostrud excepteur sint ut culpa consectetur aute adipisicing.
39-
icon: i-heroicons-lock-closed
39+
icon: i-lucide-lock
4040
links:
4141
- label: Explore components
4242
to: /pro/components
4343
color: neutral
44-
icon: i-heroicons-arrow-right-20-solid
44+
icon: i-lucide-arrow-right
4545
trailing: true
4646
size: md
4747
class: ml-8
@@ -52,18 +52,18 @@ sections:
5252
features:
5353
- name: Fast
5454
description: Qui reprehenderit nostrud dolore nisi ad fugiat labore eiusmod.
55-
icon: i-heroicons-rocket-launch
55+
icon: i-lucide-rocket
5656
- name: Affordable
5757
description: Reprehenderit fugiat elit in do ipsum ut pariatur.
58-
icon: i-heroicons-currency-dollar
58+
icon: i-lucide-circle-dollar-sign
5959
- name: Scalable
6060
description: Lorem deserunt et eiusmod. Ea in consectetur minim officia.
61-
icon: i-heroicons-chart-bar
61+
icon: i-lucide-chart-bar
6262
links:
6363
- label: Learn more
6464
to: /pro/guide/content
6565
color: neutral
66-
icon: i-heroicons-arrow-right-20-solid
66+
icon: i-lucide-arrow-right
6767
trailing: true
6868
size: md
6969
class: ml-8
@@ -73,22 +73,22 @@ features:
7373
items:
7474
- title: Easy to use
7575
description: Id laborum laboris duis nostrud excepteur ut velit nulla magna Lorem proident non.
76-
icon: i-heroicons-cog
76+
icon: i-lucide-cog
7777
- title: Reliable
7878
description: Magna Lorem ex cillum fugiat ad enim aute irure sit duis minim.
79-
icon: i-heroicons-check
79+
icon: i-lucide-check
8080
- title: Secure
8181
description: Proident nostrud excepteur sint ut culpa consectetur aute adipisicing non anim ullamco.
82-
icon: i-heroicons-lock-closed
82+
icon: i-lucide-lock
8383
- title: Fast
8484
description: Qui reprehenderit nostrud dolore nisi ad fugiat labore eiusmod sint aliquip nisi voluptate.
85-
icon: i-heroicons-rocket-launch
85+
icon: i-lucide-rocket
8686
- title: Affordable
8787
description: Reprehenderit fugiat elit in do ipsum ut pariatur.
88-
icon: i-heroicons-currency-dollar
88+
icon: i-lucide-circle-dollar-sign
8989
- title: Scalable
9090
description: Lorem deserunt et eiusmod. Ea in consectetur minim officia ullamco enim deserunt est.
91-
icon: i-heroicons-chart-bar
91+
icon: i-lucide-chart-bar
9292
testimonials:
9393
headline: Testimonials
9494
title: What our customers are saying.
@@ -100,42 +100,36 @@ testimonials:
100100
description: CEO at Company
101101
avatar:
102102
src: https://i.pravatar.cc/120?img=1
103-
loading: lazy
104103
- quote: Eiusmod dolor aute ut nulla pariatur officia consequat aute amet exercitation.
105104
user:
106105
name: Chace Rodgers
107106
description: CEO at Company
108107
avatar:
109108
src: https://i.pravatar.cc/120?img=7
110-
loading: lazy
111109
- quote: Id duis velit enim officia ad nisi incididunt magna ex dolor minim deserunt dolor. Esse incididunt cillum nostrud esse do quis amet labore amet nulla eiusmod amet nulla Lorem. Incididunt ex voluptate irure officia laboris ea proident est qui.
112110
user:
113111
name: Cornelius Sheppard
114112
description: CEO at Company
115113
avatar:
116114
src: https://i.pravatar.cc/120?img=3
117-
loading: lazy
118115
- quote: Velit consectetur in adipisicing culpa eiusmod commodo eu ex dolore. Officia irure nisi dolor dolore velit fugiat. Aliqua sint aliqua aute elit eu sunt.
119116
user:
120117
name: Destinee Woods
121118
description: CEO at Company
122119
avatar:
123120
src: https://i.pravatar.cc/120?img=5
124-
loading: lazy
125121
- quote: Proident quis deserunt qui ex exercitation veniam id Lorem est cupidatat ipsum irure aliquip ad.
126122
user:
127123
name: Kaleb Mccormick
128124
description: CEO at Company
129125
avatar:
130126
src: https://i.pravatar.cc/120?img=8
131-
loading: lazy
132127
- quote: Magna officia quis ea ea in officia non voluptate ipsum culpa do labore sunt. Aute est dolore commodo sint officia ad laboris dolor magna aliquip exercitation tempor commodo.
133128
user:
134129
name: Jazmin Mccall
135130
description: CEO at Company
136131
avatar:
137132
src: https://i.pravatar.cc/120?img=9
138-
loading: lazy
139133
cta:
140134
title: Get started today
141135
description: Nisi mollit id aliquip sunt est laborum sit sit.

content/2.pricing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
title: Pricing
22
description: Choose the plan that's right for you.
3-
navigation.icon: i-heroicons-credit-card
3+
navigation.icon: i-lucide-credit-card
44
hero:
55
title: A plan for every need
66
description: Our plans are designed to meet the requirements of both beginners and players. Get the right plan that suits you.

content/3.blog.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
title: Blog
22
description: Those are examples posts taken from Nuxt.com, they may be outdated and not render properly.
3-
navigation.icon: i-heroicons-newspaper
3+
navigation.icon: i-lucide-newspaper

content/3.blog/1.asian-cuisine.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
6767
::div
6868
---
6969
label: 'Ingredients'
70-
icon: 'i-heroicons-fire'
70+
icon: 'i-lucide-flame'
7171
---
7272
- 2 cups sushi rice, cooked and seasoned with<br/>rice vinegar, sugar, and salt
7373
- 10 sheets nori (seaweed)
@@ -79,7 +79,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
7979
::div
8080
---
8181
label: 'Instructions'
82-
icon: 'i-heroicons-list-bullet-20-solid'
82+
icon: 'i-lucide-list'
8383
---
8484
- **Prepare Sushi Rice:**
8585
Cook sushi rice according to package instructions. Once cooked, season with a mixture of rice vinegar, sugar, and salt. Allow it to cool.
@@ -118,7 +118,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
118118
::div{ .flex .space-between .w-full .items-center }
119119
---
120120
label: Ingredients
121-
icon: i-heroicons-fire
121+
icon: i-lucide-flame
122122
---
123123
- 1/2 lb (about 225g) ground pork
124124
- 1 cup finely shredded carrots
@@ -136,7 +136,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
136136
::div
137137
---
138138
label: Instructions
139-
icon: i-heroicons-list-bullet-20-solid
139+
icon: i-lucide-list
140140
---
141141
- **Prepare the Filling:**
142142
In a pan, heat 2 tablespoons of vegetable oil. Add minced garlic and shallots, stir-frying until fragrant.
@@ -176,7 +176,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
176176
::div{ .flex .space-between .w-full .items-center }
177177
---
178178
label: Ingredients
179-
icon: i-heroicons-fire
179+
icon: i-lucide-flame
180180
---
181181
- 2 cups cooked short-grain rice
182182
- 1 cup assorted vegetables (such as carrots, spinach, mushrooms, zucchini, bean sprouts)
@@ -194,7 +194,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
194194
::div
195195
---
196196
label: Instructions
197-
icon: i-heroicons-list-bullet-20-solid
197+
icon: i-lucide-list
198198
---
199199
- **Cook the Rice:**
200200
Prepare 2 cups of short-grain rice according to package instructions.
@@ -238,7 +238,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
238238
::div
239239
---
240240
label: 'Ingredients'
241-
icon: 'i-heroicons-fire'
241+
icon: 'i-lucide-flame'
242242
---
243243
- 2 1/4 teaspoons (1 packet) active dry yeast
244244
- 1 teaspoon sugar
@@ -252,7 +252,7 @@ Asian kitchens are a treasure trove of ingredients, each with its own story. Soy
252252
::div
253253
---
254254
label: 'Instructions'
255-
icon: 'i-heroicons-list-bullet-20-solid'
255+
icon: 'i-lucide-list'
256256
---
257257
- **Activate the Yeast:**
258258
In a small bowl, combine the active dry yeast, sugar, and warm water. Let it sit for about 5-10 minutes until it becomes frothy.

content/3.blog/7.nuxt-ui.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ That's it! You can now use all the components and composables in your Nuxt app
6969

7070
Nuxt UI will automatically install the [@nuxtjs/tailwindcss](https://tailwindcss.nuxtjs.org/), [@nuxtjs/color-mode](https://color-mode.nuxtjs.org/) and [nuxt-icon](https://github.com/nuxt-modules/icon) modules for you.
7171

72-
::callout{icon="i-heroicons-exclamation-triangle"}
72+
::warning
7373
You should remove them from your `modules` and `dependencies` if you've previously installed them.
7474
::
7575

@@ -107,13 +107,13 @@ You can read more on how to set it up on the [@nuxtjs/tailwindcss](https://tailw
107107

108108
### Many options
109109

110-
| Key | Default | Description |
111-
|-----------------------|-----------------|-------------------------------------------------------------------------------------------------------------|
112-
| `prefix` | `u` | Define the prefix of the imported components. |
113-
| `global` | `false` | Expose components globally. |
114-
| `icons` | `['heroicons']` | Icon collections to load. |
115-
| `safelistColors` | `['primary']` | Force safelisting of colors to need be purged. |
116-
| `disableGlobalStyles` | `false` | Disable [global CSS styles](https://github.com/nuxt/ui/blob/dev/src/runtime/ui.css) injected by the module. |
110+
| Key | Default | Description |
111+
|-----------------------|---------------|-------------------------------------------------------------------------------------------------------------|
112+
| `prefix` | `u` | Define the prefix of the imported components. |
113+
| `global` | `false` | Expose components globally. |
114+
| `icons` | `['lucide']` | Icon collections to load. |
115+
| `safelistColors` | `['primary']` | Force safelisting of colors to need be purged. |
116+
| `disableGlobalStyles` | `false` | Disable [global CSS styles](https://github.com/nuxt/ui/blob/dev/src/runtime/ui.css) injected by the module. |
117117

118118
Configure options in your `nuxt.config.ts` as such:
119119

@@ -178,7 +178,7 @@ Each component has a `ui` prop that allows you to customize everything specifica
178178
</template>
179179
```
180180

181-
::callout{icon="i-heroicons-light-bulb"}
181+
::note
182182
You can find the default classes for each component under the `Config` section.
183183
::
184184

@@ -196,7 +196,7 @@ Some components have an `icon` prop that allows you to add an icon to the compon
196196

197197
```vue
198198
<template>
199-
<UButton icon="i-heroicons-magnifying-glass" />
199+
<UButton icon="i-lucide-search" />
200200
</template>
201201
```
202202

nuxt.schema.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,42 @@ export default defineNuxtSchema({
1717
title: 'Search Bar',
1818
description: 'Icon to display in the search bar.',
1919
icon: 'i-mdi-magnify',
20-
default: 'i-heroicons-magnifying-glass-20-solid'
20+
default: 'i-lucide-search'
2121
}),
2222
dark: field({
2323
type: 'icon',
2424
title: 'Dark mode',
2525
description: 'Icon of color mode button for dark mode.',
2626
icon: 'i-mdi-moon-waning-crescent',
27-
default: 'i-heroicons-moon-20-solid'
27+
default: 'i-lucide-moon'
2828
}),
2929
light: field({
3030
type: 'icon',
3131
title: 'Light mode',
3232
description: 'Icon of color mode button for light mode.',
3333
icon: 'i-mdi-white-balance-sunny',
34-
default: 'i-heroicons-sun-20-solid'
34+
default: 'i-lucide-sun'
3535
}),
3636
external: field({
3737
type: 'icon',
3838
title: 'External Link',
3939
description: 'Icon for external link.',
4040
icon: 'i-mdi-arrow-top-right',
41-
default: 'i-heroicons-arrow-up-right-20-solid'
41+
default: 'i-lucide-external-link'
4242
}),
4343
chevron: field({
4444
type: 'icon',
4545
title: 'Chevron',
4646
description: 'Icon for chevron.',
4747
icon: 'i-mdi-chevron-down',
48-
default: 'i-heroicons-chevron-down-20-solid'
48+
default: 'i-lucide-chevron-down'
4949
}),
5050
hash: field({
5151
type: 'icon',
5252
title: 'Hash',
5353
description: 'Icon for hash anchors.',
5454
icon: 'i-ph-hash',
55-
default: 'i-heroicons-hashtag-20-solid'
55+
default: 'i-lucide-hash'
5656
})
5757
}
5858
}),

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"@iconify-json/lucide": "^1.2.25",
1616
"@iconify-json/simple-icons": "^1.2.22",
17-
"@nuxt/content": "^3.0.1",
17+
"@nuxt/content": "^3.1.0",
1818
"@nuxt/image": "^1.9.0",
1919
"@nuxt/ui-pro": "^3.0.0-alpha.12",
2020
"@vueuse/nuxt": "^12.5.0",

0 commit comments

Comments
 (0)