Skip to content

Commit 5424389

Browse files
committed
refactor: unify syntax for lucide icons
1 parent a02d0e4 commit 5424389

15 files changed

Lines changed: 34 additions & 34 deletions

app/components/PackageProvenanceSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ defineProps<{
1818
<div class="space-y-1">
1919
<p class="flex items-start gap-2 text-sm text-fg m-0">
2020
<span
21-
class="i-lucide-shield-check w-4 h-4 shrink-0 text-emerald-500 mt-0.5"
21+
class="i-lucide:shield-check w-4 h-4 shrink-0 text-emerald-500 mt-0.5"
2222
aria-hidden="true"
2323
/>
2424
<i18n-t keypath="package.provenance_section.built_and_signed_on" tag="span">

app/components/ProvenanceBadge.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const title = computed(() =>
3535
class="inline-flex items-center justify-center gap-1 text-xs font-mono text-fg-muted hover:text-fg transition-colors duration-200 min-w-6 min-h-6"
3636
:title="title"
3737
>
38-
<span class="i-lucide-shield-check shrink-0" :class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'" />
38+
<span class="i-lucide:shield-check shrink-0" :class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'" />
3939
<span v-if="!compact" class="sr-only sm:not-sr-only">{{
4040
$t('badges.provenance.verified')
4141
}}</span>
@@ -45,7 +45,7 @@ const title = computed(() =>
4545
class="inline-flex items-center gap-1 text-xs font-mono text-fg-muted"
4646
:title="title"
4747
>
48-
<span class="i-lucide-shield-check shrink-0" :class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'" />
48+
<span class="i-lucide:shield-check shrink-0" :class="compact ? 'w-3.5 h-3.5' : 'w-4 h-4'" />
4949
<span v-if="!compact" class="sr-only sm:not-sr-only">{{
5050
$t('badges.provenance.verified')
5151
}}</span>

app/components/Readme.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ function handleClick(event: MouseEvent) {
313313
}
314314
.readme :deep(blockquote[data-callout='note']::after) {
315315
background-color: #3b82f6;
316-
-webkit-mask: icon('i-lucide-info') no-repeat;
317-
mask: icon('i-lucide-info') no-repeat;
316+
-webkit-mask: icon('i-lucide:info') no-repeat;
317+
mask: icon('i-lucide:info') no-repeat;
318318
}
319319
320320
/* Tip - green */
@@ -328,8 +328,8 @@ function handleClick(event: MouseEvent) {
328328
}
329329
.readme :deep(blockquote[data-callout='tip']::after) {
330330
background-color: #22c55e;
331-
-webkit-mask: icon('i-lucide-lightbulb') no-repeat;
332-
mask: icon('i-lucide-lightbulb') no-repeat;
331+
-webkit-mask: icon('i-lucide:lightbulb') no-repeat;
332+
mask: icon('i-lucide:lightbulb') no-repeat;
333333
}
334334
335335
/* Important - purple */
@@ -343,8 +343,8 @@ function handleClick(event: MouseEvent) {
343343
}
344344
.readme :deep(blockquote[data-callout='important']::after) {
345345
background-color: var(--syntax-fn);
346-
-webkit-mask: icon('i-lucide-pin') no-repeat;
347-
mask: icon('i-lucide-pin') no-repeat;
346+
-webkit-mask: icon('i-lucide:pin') no-repeat;
347+
mask: icon('i-lucide:pin') no-repeat;
348348
}
349349
350350
/* Warning - yellow/orange */
@@ -358,8 +358,8 @@ function handleClick(event: MouseEvent) {
358358
}
359359
.readme :deep(blockquote[data-callout='warning']::after) {
360360
background-color: #eab308;
361-
-webkit-mask: icon('i-lucide-triangle-alert') no-repeat;
362-
mask: icon('i-lucide-triangle-alert') no-repeat;
361+
-webkit-mask: icon('i-lucide:triangle-alert') no-repeat;
362+
mask: icon('i-lucide:triangle-alert') no-repeat;
363363
}
364364
365365
/* Caution - red */
@@ -373,8 +373,8 @@ function handleClick(event: MouseEvent) {
373373
}
374374
.readme :deep(blockquote[data-callout='caution']::after) {
375375
background-color: #ef4444;
376-
-webkit-mask: icon('i-lucide-circle-alert') no-repeat;
377-
mask: icon('i-lucide-circle-alert') no-repeat;
376+
-webkit-mask: icon('i-lucide:circle-alert') no-repeat;
377+
mask: icon('i-lucide:circle-alert') no-repeat;
378378
}
379379
380380
/* Table wrapper for horizontal scroll on mobile */

app/pages/package/[[org]]/[name].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ const showSkeleton = shallowRef(false)
735735
size="small"
736736
to="#provenance"
737737
:aria-label="$t('package.provenance_section.view_more_details')"
738-
classicon="i-lucide-shield-check"
738+
classicon="i-lucide:shield-check"
739739
/>
740740
</TooltipApp>
741741
</template>
@@ -818,8 +818,8 @@ const showSkeleton = shallowRef(false)
818818
:aria-pressed="likesData?.userHasLiked"
819819
:classicon="
820820
likesData?.userHasLiked
821-
? 'i-lucide-heart-minus text-red-500'
822-
: 'i-lucide-heart-plus'
821+
? 'i-lucide:heart-minus text-red-500'
822+
: 'i-lucide:heart-plus'
823823
"
824824
>
825825
<span
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
title: Getting Started
2-
icon: i-lucide-rocket
2+
icon: i-lucide:rocket

docs/content/1.getting-started/1.introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Introduction
33
description: Learn what npmx.dev is and why you should use it
44
navigation:
5-
icon: i-lucide-house
5+
icon: i-lucide:house
66
---
77

88
npmx.dev provides a better way to browse the npm registry.

docs/content/1.getting-started/2.quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Quick Start
33
description: Start using npmx.dev in seconds
44
navigation:
5-
icon: i-lucide-zap
5+
icon: i-lucide:zap
66
---
77

88
npmx.dev works in your browser with no installation required.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
title: Guide
2-
icon: i-lucide-book-open
2+
icon: i-lucide:book-open

docs/content/2.guide/1.features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Features
33
description: Explore all the features npmx.dev offers
44
navigation:
5-
icon: i-lucide-sparkles
5+
icon: i-lucide:sparkles
66
---
77

88
npmx.dev provides a comprehensive set of features for browsing npm packages.
@@ -85,7 +85,7 @@ Quick access to online development environments detected from package READMEs:
8585
| ------------------------------------------------------------------------------ | -------------------------------------------- |
8686
| :icon{name="i-simple-icons-stackblitz"} [StackBlitz](https://stackblitz.com) | Browser-based IDE with instant environments |
8787
| :icon{name="i-simple-icons-codesandbox"} [CodeSandbox](https://codesandbox.io) | Online code editor and prototyping tool |
88-
| :icon{name="i-lucide-pen-tool"} [CodePen](https://codepen.io) | Social development environment for front-end |
88+
| :icon{name="i-lucide:pen-tool"} [CodePen](https://codepen.io) | Social development environment for front-end |
8989
| :icon{name="i-simple-icons-jsfiddle"} [JSFiddle](https://jsfiddle.net) | Online editor for web snippets |
9090
| :icon{name="i-simple-icons-replit"} [Replit](https://replit.com) | Collaborative browser-based IDE |
9191

docs/content/2.guide/2.keyboard-shortcuts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Keyboard Shortcuts
33
description: Navigate npmx.dev efficiently with keyboard shortcuts
44
navigation:
5-
icon: i-lucide-keyboard
5+
icon: i-lucide:keyboard
66
---
77

88
npmx.dev supports keyboard navigation for faster browsing.

0 commit comments

Comments
 (0)