Compare commits

...

27 Commits

Author SHA1 Message Date
Daniel Bayley
275c2cbc69 Add candy-cane/lollipop/popsicle/dessert/popcorn icons (#1149)
* Add `lolly` icon

* Add `candy` alternate icon

* Add `ice-lolly` icon

* Rename `candy` to `candy-cane`

* Update icons/lolly.svg

Co-authored-by: Karsa <contact@karsa.org>

* Rename `lolly` to `lollipop`

* Rename `ice-lolly` to `popsicle`

* Update icons/candy-cane.svg

Co-authored-by: Karsa <contact@karsa.org>

* Refine `candy-cane` icon

* Fix `lollipop` to match `search` icon

* Update icons/candy-cane.svg

Co-authored-by: Karsa <contact@karsa.org>

* Improve `lollipop` metadata

* Add `pudding` icon

* Rename `pudding` icon to `dessert`

* Add `popcorn` icon

* Refine `popcorn` icon

* Optimise `lollipop` icon

* Optimise `candy-cane` icon

* Optimise `popsicle` icon

* Add `donut` icon

* Add `cake-slice` icon

* Improve `cake` metadata

* Improve `donut` metadata

---------

Co-authored-by: Karsa <contact@karsa.org>
2023-06-19 09:10:41 +02:00
Daniel Bayley
4bd6a273db Optimise/add arrow-*navigation icons/improve metadata (#1351)
* Optimise `arrow-*` icons

* Add `arrow-up-left-square` icon

* Add `arrow-up-right-square` (share variant) icon

* Add `arrow-down-left-square` icon

* Add `arrow-down-right-square` icon

* Improve `arrow-*` icons metadata

* Improve map icons metadata
2023-06-18 22:30:09 +02:00
Eric Fennis
34155d48e7 Site improvements (#1366)
* write cions details

* add details

* Add icons details

* update gitignore

* Add node details

* Move tags api to own composable

* remove overridden var

* remopve whitespace

* log directory existence

* Fix path name

* Fix build

* Fix tags fetching

* Move max related icons to prebuild

* Improve tags scroller

* Add categories call

* cleanup

* Add active state
2023-06-15 14:44:43 +02:00
Eric Fennis
82db590192 General improvements in documentation (#1348)
* General improvements in documentation

* fix typo

* Update lucide-angular.md

* Fix build

* remove duplicated key

---------

Co-authored-by: Karsa <contact@karsa.org>
2023-06-12 22:10:15 +02:00
Daniel Bayley
70be55b78f Improve/optimise null/void/x[-*]/linter icons/metadata (#1247)
* Improve null/void metadata

* Optimise `x`/linter icons
2023-06-12 21:39:49 +02:00
Daniel Bayley
7163aeaa6b Add activity-square icon (#1356)
* Add `activity-square` icon

* Optimise `activity` icon

* Improve `activity` metadata
2023-06-12 21:36:07 +02:00
Daniel Bayley
99cd76bb35 Fix circle-dot icons metadata (#1358) 2023-06-12 21:35:18 +02:00
Eric Fennis
f5fb1ec263 Small seo improvements 2023-06-12 21:13:22 +02:00
Daniel Bayley
6916aebee4 Add generic shapes icon (#1239)
* Add generic `shapes` icon

* Update icons/shapes.svg

Co-authored-by: Karsa <contact@karsa.org>

---------

Co-authored-by: Karsa <contact@karsa.org>
2023-06-12 21:03:39 +02:00
Jakob Guddas
65d213264f Changed binary (#1188)
* Changed `binary`

Felt to aggressive.

* feat: rounded radius to zero in file-digit
2023-06-11 20:51:26 +02:00
Daniel Bayley
ee77147aff Add circle-dot-* (GitHub issue) icons (#1066)
* Improve `circle-dot` (GitHub issue) metadata

* Add `refresh-ccw-dot` icon

* Add `circle-dot-dashed` icon

* Add `circle-dashed` icon

* Improve `circle-dot` metadata

---------

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2023-06-11 19:38:12 +02:00
Daniel Bayley
3b7b74fe86 Improve toggle/binary metadata (#1238) 2023-06-08 13:12:42 +02:00
Daniel Bayley
3a2f052ce9 Add presentation/projector icons (#1327)
* Add `projector` icon

* Add `presentation-screen` icon

* Add `presentation` (whiteboard) icon

* Consolidate `presentation` icons

* Refine `presentation` icon

* Update icons/projector.svg

Co-authored-by: Karsa <contact@karsa.org>

---------

Co-authored-by: Karsa <contact@karsa.org>
2023-06-07 10:14:32 +02:00
Eric Fennis
cf34d61971 Revert title change 2023-06-07 08:38:21 +02:00
Eric Fennis
2814a63b8f Add sitemap and OG image to site (#1347)
* Add sitemap generation

* Add og image

* Fix links

* remove comments
2023-06-07 08:25:46 +02:00
Daniel Bayley
4bcab462dc Optimise/add search[-*] icons (#1261)
* Optimise `search` icon

* Add `search-code` icon

* Add `search-x` (stop/clear) icon

* Add `search-check` (complete) icon

* Add `circle-slash` (stop/clear) icon

* Refine `search-x` icon

* Refine `search-slash` icon
2023-06-06 16:03:11 +02:00
Daniel Bayley
6c93bb97c7 Add candlestick-chart icon/bar-chart-big variants (#1320)
* Add `candlestick-chart` icon

* Add `bar-chart-big` alternate icon

* Add `bar-chart-horizontal-big` alternate icon

* Refine `bar-chart-big` icons
2023-06-06 15:59:43 +02:00
Eric Fennis
3c1993c463 Fix orbit json 2023-06-06 15:57:12 +02:00
Daniel Bayley
7a57c306c3 Optimise book icons/add book-up (git force push) alternate icon (#1205)
* Optimise `book` icons

* Add `book-up` (force `push`) alternate icon
2023-06-06 15:18:40 +02:00
Jakob Guddas
32637199f5 Added round corners to network (#1190)
* Added round corners to `network`

* Update network.svg

* Update network.svg

* Update network.svg

* Update network.svg
2023-06-06 15:11:25 +02:00
Guillermo Angeles
e490bc35b8 Add Goal icon (#1251)
* Add more music icons and another mic icon (#746)

* Revert "Add more music icons and another mic icon (#746)" (#750)

This reverts commit 57cba6ae0e.

* Add `goal` icon

* Update icons/goal.svg

Co-authored-by: Jakob Guddas <github@jguddas.de>

* Update icons/goal.svg

Co-authored-by: Karsa <contact@karsa.org>

---------

Co-authored-by: it-is-not <72697755+it-is-not@users.noreply.github.com>
Co-authored-by: Karsa <contact@karsa.org>
Co-authored-by: Guillermo Angeles <guillermo.angeles@adoptaunabuelo.com>
Co-authored-by: Guillermo Angeles <67046262+g-angeles-aua@users.noreply.github.com>
Co-authored-by: Jakob Guddas <github@jguddas.de>
2023-06-06 15:09:18 +02:00
Jakob Guddas
496058cc15 Update orbit.json (#1342) 2023-06-06 15:03:01 +02:00
Daniel Bayley
4ee46673af Add key variants (#1257)
* Add `key` alternate icon

* Update icons/key-2.svg

Co-authored-by: Karsa <contact@karsa.org>

* Refine `key` alternate icon

* Add `key` variant

* Refine `key` alternate icons

* Rename `key-2` to `key-round`

* Rename `key-3` to `key-square`

* Improve metadata

---------

Co-authored-by: Karsa <contact@karsa.org>
2023-06-04 23:16:11 +02:00
Jakob Guddas
5a46f4b87c Optimized circle-off (#1262)
* Optimized `circle-off`

* Update icons/circle-off.svg

Co-authored-by: Karsa <contact@karsa.org>

---------

Co-authored-by: Karsa <contact@karsa.org>
2023-06-04 22:20:07 +02:00
Daniel Bayley
875e8a2d06 Add versions icons (#1141)
* Add `versions` icon

* Add `versions-files` icon

* Rename `versions-files` icon to `file-stack`

* Rename `versions` icon to `square-stack`
2023-06-04 22:12:28 +02:00
Daniel Bayley
e006a171c1 Improve operator icons metadata (#1263)
* Improve operator icons metadata

* Update icons/square-slash.json

---------

Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
2023-06-04 22:10:29 +02:00
Eric Fennis
606706e8e0 Fix gh-api for strokewidths 2023-06-04 17:52:03 +02:00
263 changed files with 2732 additions and 645 deletions

1
.gitignore vendored
View File

@@ -30,6 +30,7 @@ docs/.vitepress/data/iconNodes
docs/.vitepress/data/iconMetaData.ts
docs/.vitepress/data/releaseMetaData.json
docs/.vitepress/data/releaseMetaData
docs/.vitepress/data/iconDetails
docs/.vitepress/data/relatedIcons.json
docs/.vercel
docs/.nitro

View File

@@ -0,0 +1,11 @@
import { eventHandler, setResponseHeader } from 'h3'
import iconMetaData from '../../data/iconMetaData'
export default eventHandler((event) => {
setResponseHeader(event, 'Cache-Control', 'public, max-age=86400')
setResponseHeader(event, 'Access-Control-Allow-Origin', '*')
return Object.fromEntries(
Object.entries(iconMetaData).map(([name, { categories }]) => [ name, categories ])
)
})

View File

@@ -0,0 +1,35 @@
import { eventHandler, setResponseHeader, defaultContentType } from 'h3'
import { renderToString } from 'react-dom/server'
import { createElement } from 'react'
import SvgPreview from '../../../lib/SvgPreview/index.tsx';
import createLucideIcon, { IconNode } from 'lucide-react/src/createLucideIcon'
import { parseSync } from 'svgson';
export default eventHandler((event) => {
const { params } = event.context
const [strokeWidth, svgData] = params.data.split('/');
const data = svgData.slice(0, -4);
const src = Buffer.from(data, 'base64').toString('utf8');
const Icon = createLucideIcon(
'icon',
parseSync(src.includes('<svg') ? src : `<svg>${src}</svg>`).children.map(
({ name, attributes }) => [name, attributes]
) as IconNode
);
const svg = Buffer.from(
// We can't use jsx here, is not supported here by nitro.
renderToString(createElement(Icon, { strokeWidth })).replace(
/>/,
'><style>@media screen and (prefers-color-scheme: dark) { svg { stroke: #fff } }</style>'
)
).toString('utf8');
defaultContentType(event, 'image/svg+xml')
setResponseHeader(event, 'Cache-Control', 'public,max-age=31536000')
return svg
})

View File

@@ -8,6 +8,7 @@ export default eventHandler((event) => {
const withUniqueKeys = query.withUniqueKeys === 'true'
setResponseHeader(event, 'Cache-Control', 'public, max-age=86400')
setResponseHeader(event, 'Access-Control-Allow-Origin', '*')
if (withUniqueKeys) {
return iconNodes

View File

@@ -38,6 +38,7 @@ export default eventHandler((event) => {
defaultContentType(event, 'image/svg+xml')
setResponseHeader(event, 'Cache-Control', 'public,max-age=31536000')
setResponseHeader(event, 'Access-Control-Allow-Origin', '*')
return svg

View File

@@ -3,6 +3,7 @@ import iconMetaData from '../../data/iconMetaData'
export default eventHandler((event) => {
setResponseHeader(event, 'Cache-Control', 'public, max-age=86400')
setResponseHeader(event, 'Access-Control-Allow-Origin', '*')
return Object.fromEntries(
Object.entries(iconMetaData).map(([name, { tags }]) => [ name, tags ])

View File

@@ -1,13 +1,24 @@
import { fileURLToPath, URL } from 'node:url'
import path from 'path';
import { defineConfig } from 'vitepress'
import { createWriteStream } from 'node:fs'
import { resolve } from 'node:path'
import { SitemapStream } from 'sitemap'
import sidebar from './sidebar';
import fs from 'fs';
const links = []
const title = "Lucide";
const socialTitle = "Lucide Icons";
const description = "Beautiful & consistent icon toolkit made by the community."
// https://vitepress.dev/reference/site-config
export default defineConfig({
title,
description,
cleanUrls: true,
title: "Lucide",
description: "Beautiful & consistent icon toolkit made by the community.",
outDir: '.vercel/output/static',
vite: {
resolve: {
@@ -25,17 +36,70 @@ export default defineConfig({
)
}
]
}
},
},
head: [
[
'script',
{
src: 'https://plausible.io/js/script.js',
'data-domain': 'lucide.dev',
defer: ''
}
],
[ 'script', {
src: 'https://plausible.io/js/script.js',
'data-domain': 'lucide.dev',
defer: ''
}],
[ 'meta', {
property:"og:locale",
content:"en_US"
}],
[ 'meta', {
property:"og:type",
content:"website"
}],
[ 'meta', {
property:"og:site_name",
content: title,
}],
[ 'meta', {
property:"og:title",
content: socialTitle,
}],
[ 'meta', {
property:"og:description",
content: description
}],
[ 'meta', {
property:"og:url",
content:"https://lucide.dev"
}],
[ 'meta', {
property:"og:image",
content: "https://lucide.dev/og.png"
}],
[ 'meta', {
property:"og:image:width",
content:"1200"
}],
[ 'meta', {
property:"og:image:height",
content:"630"
}],
[ 'meta', {
property:"og:image:type",
content:"image/png"
}],
[ 'meta', {
property:"twitter:card",
content:"summary_large_image"
}],
[ 'meta', {
property:"twitter:title",
content: socialTitle,
}],
[ 'meta', {
property:"twitter:description",
content: description
}],
[ 'meta', {
property:"twitter:image",
content:"https://lucide.dev/og.png"
}],
],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
@@ -44,7 +108,7 @@ export default defineConfig({
dark: '/logo.dark.svg'
},
nav: [
{ text: 'Icons', link: '/icons/index.md' },
{ text: 'Icons', link: '/icons/' },
{ text: 'Guide', link: '/guide/' },
{ text: 'Packages', link: '/packages' },
{ text: 'License', link: '/license' },
@@ -61,5 +125,33 @@ export default defineConfig({
editLink: {
pattern: 'https://github.com/lucide-icons/lucide/edit/main/docs/:path'
},
}
},
transformHtml: (_, id, { pageData }) => {
if (/[\\/]404\.html$/.test(id)) {
return
}
if (pageData.relativePath.startsWith('icons/')) {
links.push({
url: pageData.relativePath.replace(/((^|\/)index)?\.md$/, '$2'),
lastmod: pageData?.params?.changedRelease?.date
})
return
}
links.push({
url: pageData.relativePath.replace(/((^|\/)index)?\.md$/, '$2'),
lastmod: pageData.lastUpdated
})
},
buildEnd: async ({ outDir }) => {
const sitemap = new SitemapStream({
hostname: 'https://lucide.dev/'
})
const writeStream = createWriteStream(resolve(outDir, 'sitemap.xml'))
sitemap.pipe(writeStream)
links.forEach((link) => sitemap.write(link))
sitemap.end()
await new Promise((r) => writeStream.on('finish', r))
},
})

View File

@@ -8,14 +8,6 @@ const DATE_OF_FORK = '2020-06-08T16:39:52+0100';
const directory = path.join(process.cwd(), "../icons");
export function getAllNames() {
const fileNames = fs.readdirSync(directory).filter((file) => path.extname(file) === '.json');
return fileNames
.filter((fileName) => fs.existsSync(directory + '/' + path.basename(fileName, '.json') + '.svg'))
.map((fileName) => path.basename(fileName, '.json'));
}
export interface GetDataOptions {
withChildKeys?: boolean
}
@@ -49,7 +41,7 @@ export async function getData(name: string) {
}
export async function getAllData(): Promise<{ name: string, iconNode: IconNodeWithKeys}[]> {
const names = getAllNames();
const names = Object.keys(iconNodes);
return Promise.all(names.map((name) => getData(name)));
}

View File

@@ -64,7 +64,7 @@ watch(absoluteStrokeWidth, (enabled) => {
<ResetButton @click="resetStyle"></ResetButton>
</h2>
<p class="copy">
Lucide has a lot of customization options to match the icons with you UI.
Lucide has a lot of customization options to match the icons with your UI.
</p>
<div class="customizer">

View File

@@ -1,30 +1,38 @@
<script setup lang="ts">
import type { IconEntity } from '../../types'
import { computed, ref, watch } from 'vue'
import createLucideIcon from 'lucide-vue-next/src/createLucideIcon';
import IconButton from '../base/IconButton.vue';
import IconContributors from './IconContributors.vue';
import IconPreview from './IconPreview.vue';
import { x, expand } from '../../../data/iconNodes'
import { useRouter } from 'vitepress';
import IconInfo from './IconInfo.vue';
import Badge from '../base/Badge.vue';
import type { IconEntity } from '../../types'
import { computed, ref, watch } from 'vue'
import createLucideIcon from 'lucide-vue-next/src/createLucideIcon';
import IconButton from '../base/IconButton.vue';
import IconContributors from './IconContributors.vue';
import IconPreview from './IconPreview.vue';
import { x, expand } from '../../../data/iconNodes'
import { useRouter } from 'vitepress';
import IconInfo from './IconInfo.vue';
import Badge from '../base/Badge.vue';
import { computedAsync } from '@vueuse/core';
const props = defineProps<{
icon: IconEntity
}>()
const props = defineProps<{
iconName: string
}>()
const emit = defineEmits(['close'])
const isOpen = computed(() => !!props.icon)
function onClose() {
emit('close')
const icon = computedAsync<IconEntity | null>(async () => {
if (props.iconName) {
return (await import(`../../../data/iconDetails/${props.iconName}.ts`)).default as IconEntity
}
return null
}, null)
const { go } = useRouter()
const emit = defineEmits(['close'])
const isOpen = computed(() => !!icon.value)
const CloseIcon = createLucideIcon('Close', x)
const Expand = createLucideIcon('Expand', expand)
function onClose() {
emit('close')
}
const { go } = useRouter()
const CloseIcon = createLucideIcon('Close', x)
const Expand = createLucideIcon('Expand', expand)
</script>
<template>
@@ -109,9 +117,8 @@
}
.icon-info {
padding: 0 24px;
padding-left: 24px;
flex-basis: 100%;
}
.icon-tags {

View File

@@ -17,7 +17,7 @@ const { go } = useRouter()
const { page } = useData()
const tags = computed(() => {
if (!props.icon) return []
if (!props.icon || !props?.icon?.tags) return []
return props.icon.tags.join(' • ')
})
</script>
@@ -27,9 +27,11 @@ const tags = computed(() => {
<IconDetailName class="icon-name">
{{ icon.name }}
</IconDetailName>
<p class="icon-tags">
{{ tags }}
</p>
<div class="tags-scroller" v-if="tags.length">
<p class="icon-tags horizontal-scroller">
{{ tags }}
</p>
</div>
<div class="group">
<Badge
v-for="category in icon.categories"
@@ -72,9 +74,61 @@ const tags = computed(() => {
font-size: 16px;
color: var(--vp-c-text-2);
font-weight: 500;
margin-top: 0;;
margin-bottom: 16px;
line-height: 28px;
white-space: nowrap;
position: absolute;
top: 0;
left: 0;
right: 0;
margin-top: 0;
margin-bottom: 0;
}
.tags-scroller {
position: relative;
max-width: 100%;
width: 100%;
height: 28px;
padding: 8px 0 16px;
margin-bottom: 16px;
margin-top: 8px;
align-items: center;
--gradient-background: var(--tags-gradient-background, var(--vp-c-bg-elv))
}
.horizontal-scroller {
overflow-x: scroll;
/* Hide Scrollbar */
-ms-overflow-style: none;
scrollbar-width: none;
scrollbar-width: thin; /* can also be normal, or none, to not render scrollbar */
scrollbar-color: currentColor transparent; /* foreground background */
}
.horizontal-scroller::-webkit-scrollbar {
width: 0;
display: none
}
.horizontal-scroller::-webkit-scrollbar-track {
background: transparent
}
.horizontal-scroller::-webkit-scrollbar-thumb {
background: transparent;
border: none
}
.tags-scroller::after {
content: '';
position: absolute;
bottom: 0;
width: 32px;
height: 100%;
/* Background Gradient left to right */
background: linear-gradient(to right, rgba(255,255,255,0) 0%,var(--gradient-background) 100%);
right: 0;
pointer-events: none;
}
.buttons {

View File

@@ -6,6 +6,9 @@ import InputSearch from '../base/InputSearch.vue'
import useSearchInput from '../../composables/useSearchInput'
import StickyBar from './StickyBar.vue'
import IconsCategory from './IconsCategory.vue'
import { useFetch } from '@vueuse/core'
import useFetchTags from '../../composables/useFetchTags'
import useFetchCategories from '../../composables/useFetchCategories'
const props = defineProps<{
icons: IconEntity[]
@@ -22,7 +25,26 @@ function setActiveIconName(name: string) {
activeIconName.value = name
}
const searchResults = useSearch(searchQuery, props.icons, [
const { execute: fetchTags, data: tags } = useFetchTags()
const { execute: fetchCategories, data: categoriesMap } = useFetchCategories()
const mappedIcons = computed(() => {
if(tags.value == null) {
return props.icons
}
return props.icons.map((icon) => {
const iconTags = tags.value[icon.name]
const iconCategories = categoriesMap.value?.[icon.name] ?? []
return {
...icon,
tags: iconTags,
categories: iconCategories,
}
})
})
const searchResults = useSearch(searchQuery, mappedIcons, [
{ name: 'name', weight: 2 },
{ name: 'tags', weight: 1 },
])
@@ -37,7 +59,6 @@ const categories = computed(() => {
return iconCategories?.includes(name)
})
const searchedCategoryIcons = isSearching
? categoryIcons.filter(icon => searchResults.value.some((item) => item?.name === icon?.name))
: categoryIcons;
@@ -51,9 +72,14 @@ const categories = computed(() => {
.filter(({ icons }) => icons.length)
})
const activeIcon = computed(() =>
props.icons?.find((icon) => icon.name === activeIconName.value)
)
function onFocusSearchInput() {
if (tags.value == null) {
fetchTags()
}
if (categoriesMap.value == null) {
fetchCategories()
}
}
const NoResults = defineAsyncComponent(() =>
import('./NoResults.vue')
@@ -71,6 +97,7 @@ const IconDetailOverlay = defineAsyncComponent(() =>
v-model="searchQuery"
class="input-wrapper"
ref="searchInput"
@focus="onFocusSearchInput"
/>
</StickyBar>
<NoResults
@@ -87,7 +114,7 @@ const IconDetailOverlay = defineAsyncComponent(() =>
/>
<IconDetailOverlay
v-if="activeIconName != null"
:icon="activeIcon"
:iconName="activeIconName"
@close="setActiveIconName('')"
/>
</template>

View File

@@ -8,6 +8,8 @@ import useSearch from '../../composables/useSearch'
import EndOfPage from '../base/EndOfPage.vue'
import useSearchInput from '../../composables/useSearchInput'
import StickyBar from './StickyBar.vue'
import useFetchTags from '../../composables/useFetchTags'
import useFetchCategories from '../../composables/useFetchCategories'
const props = defineProps<{
icons: IconEntity[]
@@ -22,7 +24,7 @@ const isSmallScreen = useMediaQuery('(min-width: 640px)');
const pageSize = computed(() => {
if(isExtraLargeScreen.value) {
return 16 * 16;
return 16 * 20;
}
if(isLargeScreen.value) {
return 16 * 12;
@@ -38,8 +40,28 @@ const pageSize = computed(() => {
return 10 * 5;
})
const { execute: fetchTags, data: tags } = useFetchTags()
const { execute: fetchCategories, data: categories } = useFetchCategories()
const mappedIcons = computed(() => {
if(tags.value == null) {
return props.icons
}
return props.icons.map((icon) => {
const iconTags = tags.value[icon.name]
const iconCategories = categories.value?.[icon.name] ?? []
return {
...icon,
tags: iconTags,
categories: iconCategories,
}
})
})
const { searchInput, searchQuery, searchQueryThrottled } = useSearchInput()
const searchResults = useSearch(searchQueryThrottled, props.icons, [
const searchResults = useSearch(searchQueryThrottled, mappedIcons, [
{ name: 'name', weight: 3 },
{ name: 'tags', weight: 2 },
{ name: 'categories', weight: 1 },
@@ -58,12 +80,19 @@ function setActiveIconName(name: string) {
activeIconName.value = name
}
const activeIcon = computed(() => props.icons.find((icon) => icon.name === activeIconName.value))
watch(searchQueryThrottled, (searchString) => {
currentPage.value = 1
})
function onFocusSearchInput() {
if (tags.value == null) {
fetchTags()
}
if (categories.value == null) {
fetchCategories()
}
}
const NoResults = defineAsyncComponent(() =>
import('./NoResults.vue')
)
@@ -81,6 +110,7 @@ const IconDetailOverlay = defineAsyncComponent(() =>
v-model="searchQuery"
ref="searchInput"
class="input-wrapper"
@focus="onFocusSearchInput"
/>
</StickyBar>
<NoResults
@@ -97,7 +127,7 @@ const IconDetailOverlay = defineAsyncComponent(() =>
<EndOfPage @end-of-page="next" class="bottom-page"/>
<IconDetailOverlay
v-if="activeIconName != null"
:icon="activeIcon"
:iconName="activeIconName"
@close="setActiveIconName('')"
/>
</template>

View File

@@ -32,8 +32,8 @@ useEventListener(document, 'mousemove', (mouseEvent) => {
No icons found for '{{ searchQuery }}'
</h2>
<VPButton text="Clear your search and try again" theme="alt" @click="$emit('clear')"/>
or
<VPButton text="Check if someone has already requested this icon"
<span class="text-divider">or</span>
<VPButton text="Search on Github issues"
theme="alt"
:href="`https://github.com/lucide-icons/lucide/issues?q=is%3Aopen+${searchQuery}`"
target="_blank"
@@ -74,4 +74,10 @@ useEventListener(document, 'mousemove', (mouseEvent) => {
margin-bottom: 32px;
text-align: center;
}
.text-divider {
margin: 12px 0;
font-size: 16px;
color: var(--vp-c-neutral);
}
</style>

View File

@@ -1,7 +1,7 @@
<script setup lang="ts">
import { shallowRef, type Ref, watch } from 'vue'
import { shallowRef, type Ref, watch, computed } from 'vue'
import { useCssVar, syncRef } from '@vueuse/core'
import { useIconStyleContext } from '../../composables/useIconStyle'
import { STYLE_DEFAULTS, useIconStyleContext } from '../../composables/useIconStyle'
import RangeSlider from '../base/RangeSlider.vue'
import InputField from '../base/InputField.vue'
import ColorPicker from '../base/ColorPicker.vue'
@@ -19,7 +19,7 @@ const colorCssVar = useCssVar(
'--customize-color',
props.rootEl?.value ?? documentRef.value,
{
initialValue: 'default'
initialValue: `${STYLE_DEFAULTS.color}`
}
)
@@ -27,7 +27,7 @@ const strokeWidthCssVar = useCssVar(
'--customize-strokeWidth',
props.rootEl?.value ?? documentRef.value,
{
initialValue: '2'
initialValue: `${STYLE_DEFAULTS.strokeWidth}`
}
)
@@ -35,7 +35,7 @@ const sizeCssVar = useCssVar(
'--customize-size',
props.rootEl?.value ?? documentRef.value,
{
initialValue: '24'
initialValue: `${STYLE_DEFAULTS.size}`
}
)
@@ -44,9 +44,9 @@ syncRef(strokeWidth, strokeWidthCssVar, { direction: 'ltr' })
syncRef(size, sizeCssVar, { direction: 'ltr' })
function resetStyle () {
color.value = 'currentColor'
strokeWidth.value = 2
size.value = 24
color.value = STYLE_DEFAULTS.color
strokeWidth.value = STYLE_DEFAULTS.strokeWidth
size.value = STYLE_DEFAULTS.size
}
watch(absoluteStrokeWidth, (enabled) => {
@@ -54,10 +54,18 @@ watch(absoluteStrokeWidth, (enabled) => {
htmlEl.classList.toggle('absolute-stroke-width', enabled)
})
const customizingActive = computed(() => {
return color.value !== STYLE_DEFAULTS.color
|| strokeWidth.value !== STYLE_DEFAULTS.strokeWidth
|| size.value !== STYLE_DEFAULTS.size
})
</script>
<template>
<div class="customizer-card">
<div class="customizer-card" :class="{ customized: customizingActive }">
<div class="card-header">
<h2 class="card-title">
Customizer
@@ -142,6 +150,12 @@ watch(absoluteStrokeWidth, (enabled) => {
margin-bottom: 24px;
position: relative;
z-index: 0;
border: 1px solid transparent;
transition: border-color .4s ease-in-out;
}
.customizer-card.customized {
border-color: var(--vp-c-brand);
}
.color-picker {

View File

@@ -0,0 +1,12 @@
import { useFetch } from "@vueuse/core"
const useFetchCategories = () => useFetch<Record<string, string[]>>(
`${import.meta.env.DEV ? 'http://localhost:3000' : ''}/api/categories`,
{
immediate:
typeof window !== 'undefined'
&& new URLSearchParams(window.location.search).has('search'),
}
).json()
export default useFetchCategories

View File

@@ -0,0 +1,12 @@
import { useFetch } from "@vueuse/core"
const useFetchTags = () => useFetch<Record<string, string[]>>(
`${import.meta.env.DEV ? 'http://localhost:3000' : ''}/api/tags`,
{
immediate:
typeof window !== 'undefined'
&& new URLSearchParams(window.location.search).has('search'),
}
).json()
export default useFetchTags

View File

@@ -10,8 +10,16 @@ interface IconSizeContext {
size: Ref<number>
strokeWidth: Ref<number>
color: Ref<string>
absoluteStrokeWidth: Ref<boolean>
}
export const STYLE_DEFAULTS = {
size: 24,
strokeWidth: 2,
color: 'currentColor',
absoluteStrokeWidth: false,
};
export const iconStyleContext = {
size: ref(24),
strokeWidth: ref(2),

View File

@@ -1,20 +1,22 @@
import Fuse from 'fuse.js';
import { shallowRef, computed, Ref } from 'vue';
const useSearch = <T>(query: Ref<string>, collection: T[], keys: Fuse.FuseOptionKey<T>[] = []) => {
const useSearch = <T>(query: Ref<string>, collection: Ref<T[]>, keys: Fuse.FuseOptionKey<T>[] = []) => {
const index = shallowRef(
new Fuse(collection, {
new Fuse(collection.value, {
threshold: 0.2,
keys,
})
)
const results = computed(() => {
index.value.setCollection(collection.value);
if (query.value) {
return index.value.search(query.value).map((result) => result.item);
}
return collection;
return collection.value;
});
return results;

View File

@@ -11,12 +11,16 @@ const useSearchInput = () => {
|| ''
)
)
const searchQueryThrottled = refThrottled(searchQuery, 200)
const searchQueryThrottled = refThrottled(searchQuery, 400)
watch(searchQueryThrottled, (searchString) => {
const newUrl = new URL(window.location.href);
newUrl.searchParams.set('search', searchString);
if(searchString === '') {
newUrl.searchParams.delete('search');
} else {
newUrl.searchParams.set('search', searchString);
}
nextTick(() => {
window.history.replaceState({}, '', newUrl)

View File

@@ -28,7 +28,7 @@ For more details, see the [documentation](packages/lucide.md).
## React
Implementation of the lucide icon library for react applications.
Implementation of the lucide icon library for React applications.
::: code-group
@@ -47,84 +47,138 @@ npm install lucide-react
:::
For more details, see the [documentation](packages/lucide-react.md).
For React Native use the `lucide-react-native` package.
## Vue 2
## Vue
Implementation of the lucide icon library for vue applications.
Implementation of the lucide icon library for Vue applications.
```bash
yarn add lucide-vue
::: code-group
```sh [pnpm]
pnpm install lucide-vue-next
```
or
```sh
npm install lucide-vue
```
For more details, see the [documentation](packages/lucide-vue.md).
## Vue 3
Implementation of the lucide icon library for vue applications.
```bash
```sh [yarn]
yarn add lucide-vue-next
```
or
```sh
```sh [npm]
npm install lucide-vue-next
```
:::
For more details, see the [documentation](packages/lucide-vue-next.md).
For Vue 2 use the `lucide-vue` package.
## Svelte
Implementation of the lucide icon library for vue applications.
Implementation of the lucide icon library for Svelte applications.
```bash
::: code-group
```sh [pnpm]
pnpm install lucide-svelte
```
```sh [yarn]
yarn add lucide-svelte
```
or
```sh
```sh [npm]
npm install lucide-svelte
```
:::
For more details, see the [documentation](packages/lucide-svelte.md).
## Solid
Implementation of the lucide icon library for Solid applications.
::: code-group
```sh [pnpm]
pnpm install lucide-solid
```
```sh [yarn]
yarn add lucide-solid
```
```sh [npm]
npm install lucide-solid
```
:::
For more details, see the [documentation](packages/lucide-solid.md).
## Angular
```bash
Implementation of the lucide icon library for Angular applications.
::: code-group
```sh [pnpm]
pnpm install lucide-angular
```
```sh [yarn]
yarn add lucide-angular
```
or
```sh
```sh [npm]
npm install lucide-angular
```
:::
For more details, see the [documentation](packages/lucide-angular.md).
## Preact
Implementation of the lucide icon library for preact applications.
```bash
::: code-group
```sh [pnpm]
pnpm install lucide-preact
```
```sh [yarn]
yarn add lucide-preact
```
or
```sh
```sh [npm]
npm install lucide-preact
```
For more details, see the [documentation](packages/lucide-preact.md).
:::
## Static usage
Implementation of the lucide icon library for multiple usages that like to use: SVG files icons, SVG Sprite, Icon Fonts and static SVG strings export in Common JS modules (for NodeJS).
::: code-group
```sh [pnpm]
pnpm install lucide-static
```
```sh [yarn]
yarn add lucide-static
```
```sh [npm]
npm install lucide-static
```
:::
For more details, see the [documentation](packages/lucide-static.md).
## Figma
@@ -134,16 +188,6 @@ Visit [Figma community page](https://www.figma.com/community/plugin/939567362549
![Setting Page Size](https://www.figma.com/community/plugin/939567362549682242/thumbnail 'Figma Lucide Cover')
## Laravel
Implementation of Lucide icon's using `blade-icons` for Laravel based projects.
```bash
composer require mallardduck/blade-lucide-icons
```
For more details, see the [documentation](https://github.com/mallardduck/blade-lucide-icons/blob/main/README.md).
## Flutter
Implementation of Lucide icon library for Flutter applications.

View File

@@ -4,16 +4,22 @@ Implementation of the lucide icon library for Angular applications.
## Installation
```bash
::: code-group
```sh [pnpm]
pnpm install lucide-angular
```
```sh [yarn]
yarn add lucide-angular
```
or
```bash
```sh [npm]
npm install lucide-angular
```
:::
## How to use
### Step 1: Import `LucideAngularModule`
@@ -98,7 +104,9 @@ To add custom icons, you will first need to convert them to an [svgson format](h
## Loading all icons
> :warning: You may also opt to import all icons if necessary using the following format but be aware that this will significantly increase your application build size.
::: danger
You may also opt to import all icons if necessary using the following format but be aware that this will significantly increase your application build size.
:::
```js
import { icons } from 'lucide-angular';

View File

@@ -8,28 +8,34 @@ Implementation of the lucide icon library for preact applications.
## Installation
```sh
::: code-group
```sh [pnpm]
pnpm install lucide-preact
```
```sh [yarn]
yarn add lucide-preact
```
or
```sh
```sh [npm]
npm install lucide-preact
```
:::
## How to use
It's build with ESmodules so it's completely tree-shakable.
Each icon can be imported as a preact component.
It's build with ES Modules so it's completely tree-shakable.
Each icon can be imported as a Preact component, what renders a inline SVG Element. This way only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
### Example
You can pass additional props to adjust the icon.
Additional props can be passed to adjust the icon:
```js
```jsx
import { Camera } from 'lucide-preact';
// Returns PreactComponent
// Usage
const App = () => {
@@ -39,7 +45,7 @@ const App = () => {
export default App;
```
### Props
## Props
| name | type | default |
| --------------------- | --------- | ------------ |
@@ -48,29 +54,31 @@ export default App;
| `strokeWidth` | *number* | 2 |
| `absoluteStrokeWidth` | *boolean* | false |
### Custom props / svg attributes
### Applying props
You can also pass custom props that will be added in the as attributes. With that you can modify the icons look by passing svg attributes.
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component. All SVG attributes are available as props to style the SVGs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation).
```js
```jsx
// Usage
const App = () => {
return <Camera fill="red" stroke-linejoin="bevel" />;
};
```
> svg attributes in preact aren't transformed, so if want to change e.g. the `stroke-linejoin` you need to pass it in kebabcase, the way svg spec is written so. See this topic in the [preact documentation](https://preactjs.com/guide/v10/differences-to-react/#svg-inside-jsx).
> SVG attributes in Preact aren't transformed, so if you want to change for example the `stroke-linejoin` you need to pass it in kebabcase. Basically how the SVG spec want you to write it. See this topic in the [Preact documentation](https://preactjs.com/guide/v10/differences-to-react/#svg-inside-jsx).
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
It is possible to create one generic icon component to load icons. It's not recommended.
> ⚠️ Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
::: danger
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
### Icon Component Example
```js
import * as icons from 'lucide-preact';
```jsx
import { icons } from 'lucide-preact';
const Icon = ({ name, color, size }) => {
const LucideIcon = icons[name];
@@ -80,3 +88,15 @@ const Icon = ({ name, color, size }) => {
export default Icon;
```
#### Using the Icon Component
```jsx
import Icon from './Icon';
const App = () => {
return <Icon name="home" />;
};
export default App;
```

View File

@@ -6,28 +6,32 @@ Implementation of the lucide icon library for React Native applications
First, ensure that you have `react-native-svg@^12.0.0` installed. Then, install the package:
```bash
::: code-group
```sh [pnpm]
pnpm install lucide-react-native
```
```sh [yarn]
yarn add lucide-react-native
```
or
```sh
```sh [npm]
npm install lucide-react-native
```
:::
## How to use
It's build with ESmodules so it's completely tree-shakable.
Each icon can be imported as a react component.
Each icon can be imported as a React component.
### Example
You can pass additional props to adjust the icon.
Additional props can be passed to adjust the icon:
```js
```jsx
import { Camera } from 'lucide-react-native';
// Returns ReactComponent
// Usage
const App = () => {
@@ -37,7 +41,7 @@ const App = () => {
export default App;
```
### Props
## Props
| name | type | default |
| --------------------- | --------- | ------------ |
@@ -46,27 +50,29 @@ export default App;
| `strokeWidth` | *number* | 2 |
| `absoluteStrokeWidth` | *boolean* | false |
### Custom props
### Applying props
You can also pass custom props that will be added in the svg as attributes.
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component.
```js
```jsx
// Usage
const App = () => {
return <Camera fill="red" />;
};
```
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
> :warning: Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
::: warning
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
### Icon Component Example
```js
import * as icons from 'lucide-react';
```jsx
import { icons } from 'lucide-react';
const Icon = ({ name, color, size }) => {
const LucideIcon = icons[name];
@@ -76,3 +82,15 @@ const Icon = ({ name, color, size }) => {
export default Icon;
```
#### Using the Icon Component
```jsx
import Icon from './Icon';
const App = () => {
return <Icon name="home" />;
};
export default App;
```

View File

@@ -4,28 +4,34 @@ Implementation of the lucide icon library for react applications
## Installation
```bash
::: code-group
```sh [pnpm]
pnpm install lucide-react
```
```sh [yarn]
yarn add lucide-react
```
or
```sh
```sh [npm]
npm install lucide-react
```
:::
## How to use
It's build with ESmodules so it's completely tree-shakable.
Each icon can be imported as a react component.
It's build with ES Modules so it's completely tree-shakable.
Each icon can be imported as a React component, what renders a inline SVG Element. This way only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
### Example
You can pass additional props to adjust the icon.
Additional props can be passed to adjust the icon:
```js
```jsx
import { Camera } from 'lucide-react';
// Returns ReactComponent
// Usage
const App = () => {
@@ -35,7 +41,7 @@ const App = () => {
export default App;
```
### Props
## Props
| name | type | default |
| --------------------- | --------- | ------------ |
@@ -44,27 +50,29 @@ export default App;
| `strokeWidth` | *number* | 2 |
| `absoluteStrokeWidth` | *boolean* | false |
### Custom props
### Applying props
You can also pass custom props that will be added in the svg as attributes.
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component. All SVG attributes are available as props to style the SVGs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation).
```js
```jsx
// Usage
const App = () => {
return <Camera fill="red" />;
return <Camera size={48} fill="red" />;
};
```
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
It is possible to create one generic icon component to load icons. It's not recommended.
> :warning: Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
::: danger
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
### Icon Component Example
```js
import * as icons from 'lucide-react';
```jsx
import { icons } from 'lucide-react';
const Icon = ({ name, color, size }) => {
const LucideIcon = icons[name];
@@ -74,3 +82,15 @@ const Icon = ({ name, color, size }) => {
export default Icon;
```
#### Using the Icon Component
```jsx
import Icon from './Icon';
const App = () => {
return <Icon name="home" />;
};
export default App;
```

View File

@@ -4,28 +4,34 @@ Implementation of the lucide icon library for solid applications.
## Installation
```sh
::: code-group
```sh [pnpm]
pnpm install lucide-solid
```
```sh [yarn]
yarn add lucide-solid
```
or
```sh
```sh [npm]
npm install lucide-solid
```
:::
## How to use
It's build with ESmodules so it's completely tree-shakable.
Each icon can be imported as a solid component.
It's build with ES Modules so it's completely tree-shakable.
Each icon can be imported as a Solid component, what renders a inline SVG Element. This way only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
### Example
You can pass additional props to adjust the icon.
Additional props can be passed to adjust the icon:
```js
```jsx
import { Camera } from 'lucide-solid';
// Returns SolidComponent
// Usage
const App = () => {
@@ -35,7 +41,7 @@ const App = () => {
export default App;
```
### Props
## Props
| name | type | default |
| --------------------- | --------- | ------------ |
@@ -44,32 +50,37 @@ export default App;
| `strokeWidth` | *number* | 2 |
| `absoluteStrokeWidth` | *boolean* | false |
### Custom props / svg attributes
### Applying props
You can also pass custom props that will be added in the as attributes. With that you can modify the icons look by passing svg attributes.
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component. All SVG attributes are available as props to style the SVGs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation).
```js
```jsx
// Usage
const App = () => {
return <Camera fill="red" stroke-linejoin="bevel" />;
};
```
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
It is possible to create one generic icon component to load icons. It's not recommended.
> :warning: Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
::: danger
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
### Icon Component Example
```tsx
import * as icons from 'lucide-solid';
import type { LucideProps } from 'lucide-solid';
import { icons, type LucideProps } from 'lucide-solid';
import { splitProps } from 'solid-js';
import { Dynamic } from 'solid-js/web';
const Icon = (props: { name: keyof typeof icons } & LucideProps) => {
interface IconProps extends LucideProps {
name: keyof typeof icons;
}
const Icon = (props: IconProps) => {
const [local, others] = splitProps(props, ["name"]);
return <Dynamic component={icons[local.name]} {...others} />
@@ -77,3 +88,15 @@ const Icon = (props: { name: keyof typeof icons } & LucideProps) => {
export default Icon;
```
#### Using the Icon Component
```tsx
import Icon from './Icon';
const App = () => {
return <Icon name="home" />;
};
export default App;
```

View File

@@ -11,22 +11,30 @@ This package include the following lucide implementations:
This package is suitable for specific use cases, for example if you want to use icon fonts, SVG sprites, normal SVGs or Common.js SVG strings in your javascript project.
> ⚠️ While they can be useful for prototyping, it is not recommended to use the SVG sprites or icon fonts provided by this package in production web apps as all the available icons are included in the app, hence increasing loading time and data usage. We recommend to use a bundler and treeshaking to make sure only the icons you use are bundled with your app. Threeshaking is only available in these packages: [lucide](lucide), [lucide-react](lucide-react), [lucide-vue](lucide-vue), [lucide-vue-next](lucide-vue-next), [lucide-angular](lucide-angular), [lucide-preact](lucide-preact)
::: warning
While they can be useful for prototyping, it is not recommended to use the SVG sprites or icon fonts provided by this package in production web apps as all the available icons are included in the app, hence increasing loading time and data usage. We recommend to use a bundler and tree-shaking to make sure only the icons you use are bundled with your app. Tree-shaking is only available in these packages: [lucide](lucide), [lucide-react](lucide-react), [lucide-vue](lucide-vue), [lucide-vue-next](lucide-vue-next), [lucide-angular](lucide-angular), [lucide-preact](lucide-preact)
:::
## Installation
## Package Managers
```sh
::: code-group
```sh [pnpm]
pnpm install lucide-static
```
```sh [yarn]
yarn add lucide-static
```
or
```sh
```sh [npm]
npm install lucide-static
```
:::
### CDN
```html

View File

@@ -4,25 +4,33 @@ Implementation of the lucide icon library for svelte applications.
## Installation
```bash
::: code-group
```sh [pnpm]
pnpm install lucide-svelte
```
```sh [yarn]
yarn add lucide-svelte
```
or
```sh
```sh [npm]
npm install lucide-svelte
```
:::
## How to use
All the icons are Svelte components, that ouputs Svg elements. So each icon can be imported and used as a component. This also helps with the use of threeshaking so you only import the icons you use.
It's build with ES Modules so it's completely tree-shakable.
Each icon can be imported as a Svelte component, what renders a inline SVG Element. This way only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
### Example
Default usage:
```html
```svelte
<script>
import { Skull } from 'lucide-svelte';
</script>
@@ -30,9 +38,9 @@ Default usage:
<Skull />
```
You can pass additional props to adjust the icon.
Additional props can be passed to adjust the icon:
```html
```svelte
<script>
import { Camera } from 'lucide-svelte';
</script>
@@ -40,7 +48,7 @@ You can pass additional props to adjust the icon.
<Camera color="#ff3e98" />
```
### Available props
## Props
| name | type | default |
| --------------------- | --------- | ------------ |
@@ -48,14 +56,12 @@ You can pass additional props to adjust the icon.
| `color` | *string* | currentColor |
| `strokeWidth` | *number* | 2 |
| `absoluteStrokeWidth` | *boolean* | false |
| `*<SVGProps>` | *string* | - |
### Applying props
\* All SVGProps are available to style the svgs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation)
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component. All SVG attributes are available as props to style the SVGs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation).
### Example of custom props
```html
```svelte
<script>
import { Phone } from 'lucide-svelte';
</script>
@@ -65,15 +71,17 @@ You can pass additional props to adjust the icon.
This results a filled phone icon.
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
It is possible to create one generic icon component to load icons. It's not recommended.
> ⚠️ Example below importing all EsModules, caution using this example, not recommended when you bundle your application,the build size will grow strongly. Because it will import all the icons.
::: danger
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
### Icon Component Example
```html
```svelte
<script>
import * as icons from 'lucide-svelte';
export let name;
@@ -82,12 +90,13 @@ It is possible to create one generic icon component to load icons.
<svelte:component this="{icons[name]}" {...$$props} />
```
##### Then you can use it like this
#### Using the Icon Component
```html
```svelte
<script>
import LucideIcon from './LucideIcon';
</script>
<LucideIcon name="Menu" />
```

View File

@@ -2,32 +2,41 @@
Implementation of the lucide icon library for Vue 3 applications.
> ⚠️ This version of lucide is for Vue 3, For Vue 2 got to [lucide-vue](lucide-vue)
## Vue 3 or Vue 2
::: tip
This version of lucide is for Vue 3, For Vue 2 got to [lucide-vue ->](lucide-vue)
:::
## Installation
**With yarn**
::: code-group
```bash
```sh [pnpm]
pnpm install lucide-vue-next
```
```sh [yarn]
yarn add lucide-vue-next
```
**With npm**
```bash
```sh [npm]
npm install lucide-vue-next
```
:::
## How to use
It's build with ESmodules so it's completely tree-shakable.
Each icon can be imported as a vue component.
It's build with ES Modules so it's completely tree-shakable.
Each icon can be imported as a Vue component, what renders a inline SVG Element. This way only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
### Example
You can pass additional props to adjust the icon.
``` html
```vue
<template>
<Camera
color="red"
@@ -40,7 +49,7 @@ import { Camera } from 'lucide-vue-next';
</script>
```
### Props
## Props
| name | type | default |
| ----------------------- | --------- | ------------ |
@@ -50,34 +59,27 @@ import { Camera } from 'lucide-vue-next';
| `absolute-stroke-width` | *boolean* | false |
| `default-class` | *string* | lucide-icon |
### Custom props
### Applying props
You can also pass custom props that will be added in the svg as attributes.
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component. All SVG attributes are available as props to style the SVGs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation).
``` html
```vue
<template>
<Camera fill="red" />
</template>
```
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
It is possible to create one generic icon component to load icons. It's not recommended.
> ⚠️ Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
::: danger
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
``` html
<template>
<component
:is="icon"
:size="size"
:color="color"
:stroke-width="strokeWidth" :default-class="defaultClass"
/>
</template>
### Icon Component Example
```vue
<script setup>
import { computed } from 'vue';
import * as icons from "lucide-vue-next";
@@ -95,15 +97,25 @@ const props = defineProps({
const icon = computed(() => icons[props.name]);
</script>
<template>
<component
:is="icon"
:size="size"
:color="color"
:stroke-width="strokeWidth" :default-class="defaultClass"
/>
</template>
```
##### Then you can use it like this
### Using the Icon Component
``` html
All other props listed above also work on the `Icon` Component.
```vue
<template>
<div id="app">
<Icon name="Airplay" />
</div>
</template>
```
All other props listed above also work on the `Icon` Component.

View File

@@ -2,36 +2,46 @@
Implementation of the lucide icon library for Vue applications.
> ⚠️ This version of lucide is for Vue 2, For Vue 3 got to [lucide-vue-next](lucide-vue-next)
## Vue 2 or Vue 3
::: tip
This version of lucide is for Vue 2, For Vue 3 go to [lucide-vue-next ->](lucide-vue-next)
:::
## Installation
```sh
::: code-group
```sh [pnpm]
pnpm install lucide-vue
```
```sh [yarn]
yarn add lucide-vue
```
or
```sh
```sh [npm]
npm install lucide-vue
```
:::
## How to use
It's build with ESmodules so it's completely tree-shakable.
Each icon can be imported as a vue component.
It's build with ES Modules so it's completely tree-shakable.
Each icon can be imported as a Vue component, what renders a inline SVG Element. This way only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
### Example
You can pass additional props to adjust the icon.
Additional props can be passed to adjust the icon:
```html
```vue
<template>
<Camera color="red" :size="32" />
</template>
<script>
// Returns Vue component
import { Camera } from 'lucide-vue';
export default {
@@ -41,7 +51,7 @@ You can pass additional props to adjust the icon.
</script>
```
### Props
## Props
| name | type | default |
| ----------------------- | --------- | ------------ |
@@ -51,25 +61,27 @@ You can pass additional props to adjust the icon.
| `absolute-stroke-width` | *boolean* | false |
| `default-class` | *string* | lucide-icon |
### Custom props
### Applying props
You can also pass custom props that will be added in the svg as attributes.
To apply custom props to change the look of the icon, this can be done by simply pass them as props to the component. All SVG attributes are available as props to style the SVGs. See the list of SVG Presentation Attributes on [MDN](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/Presentation).
```html
```vue
<template>
<Camera fill="red" />
</template>
```
### One generic icon component
## One generic icon component
It is possible to create one generic icon component to load icons.
It is possible to create one generic icon component to load icons. It's not recommended.
> ⚠️ Example below importing all EsModules, caution using this example, not recommended when you using bundlers, your application build size will grow strongly.
::: danger
Example below importing all ES Modules, caution using this example. All icons will be imported. When using bundlers like: `Webpack`, `Rollup` or `Vite` the application build size will grow strongly and harming the performance the application.
:::
#### Icon Component Example
### Icon Component Example
```html
```vue
<template>
<component :is="icon" />
</template>
@@ -93,9 +105,9 @@ It is possible to create one generic icon component to load icons.
</script>
```
##### Then you can use it like this
#### Using the Icon Component
```html
```vue
<template>
<div id="app">
<Icon name="Airplay" />

View File

@@ -6,15 +6,21 @@ Implementation of the lucide icon library for web applications.
### Package Managers
```sh
::: code-group
```sh [pnpm]
pnpm install lucide
```
```sh [yarn]
yarn add lucide
```
```sh [npm]
npm install lucide
```
or
```sh
yarn add lucide
```
:::
### CDN
@@ -35,9 +41,9 @@ Here is a complete example with unpkg
```html
<!DOCTYPE html>
<body>
<i icon-name="volume-2" class="my-class"></i>
<i icon-name="x"></i>
<i icon-name="menu"></i>
<i data-lucide="volume-2" class="my-class"></i>
<i data-lucide="x"></i>
<i data-lucide="menu"></i>
<script src="https://unpkg.com/lucide@latest"></script>
<script>
@@ -49,11 +55,11 @@ Here is a complete example with unpkg
### With ESModules
To reduce bundle size, lucide is built to be fully tree-shakable.
The `createIcons` function will search for HTMLElements with the attribute `icon-name` and replace it with the svg from the given icon name.
The `createIcons` function will search for HTMLElements with the attribute `data-lucide` and replace it with the svg from the given icon name.
```html
<!-- Your HTML file -->
<i icon-name="menu"></i>
<i data-lucide="menu"></i>
```
```js
@@ -74,7 +80,9 @@ createIcons({
});
```
#### Additional Options
## Advanced Usage
### Additional Options
In the `createIcons` function you can pass some extra parameters to adjust the `nameAttr` or add custom attributes like for example classes.
@@ -89,11 +97,11 @@ createIcons({
'stroke-width': 1,
stroke: '#333'
},
nameAttr: 'icon-name' // attribute for the icon name.
nameAttr: 'data-lucide' // attribute for the icon name.
});
```
#### Treeshake the library, only use the icons you use
### Treeshake the library, only use the icons you use
```js
import { createIcons, Menu, ArrowRight, Globe } from 'lucide';
@@ -107,7 +115,7 @@ createIcons({
});
```
#### Custom Element binding
### Custom Element binding
```js
import { createElement, Menu } from 'lucide';

View File

@@ -41,47 +41,47 @@ const codeExample = computed(() => data.codeExamples?.map(
<div :class="$style.iconPreviews">
<IconPreview
id="previewer"
:name="$params.name"
:iconNode="$params.iconNode"
:name="params.name"
:iconNode="params.iconNode"
:class="$style.preview"
/>
<IconPreviewSmall
:name="$params.name"
:iconNode="$params.iconNode"
:name="params.name"
:iconNode="params.iconNode"
:class="$style.smallPreview"
/>
</div>
<div >
<div :class="$style.info">
<IconInfo :icon="$params" />
<IconInfo :icon="params" />
<div :class="$style.meta">
<div
v-if="$params.createdRelease?.version"
v-if="params.createdRelease?.version"
:class="$style.version"
>
<Label>Created:</Label>
<Badge
:href="`https://github.com/lucide-icons/lucide/releases/tag/v${$params.createdRelease.version}`"
:href="`https://github.com/lucide-icons/lucide/releases/tag/v${params.createdRelease.version}`"
target="_blank"
rel="noreferrer noopener"
>
v{{$params.createdRelease.version}}
v{{params.createdRelease.version}}
</Badge>
</div>
<div
v-if="$params.changedRelease?.version"
v-if="params.changedRelease?.version"
:class="$style.version"
>
<Label>Last changed:</Label>
<Badge
:href="`https://github.com/lucide-icons/lucide/releases/tag/v${$params.changedRelease.version}`"
:href="`https://github.com/lucide-icons/lucide/releases/tag/v${params.changedRelease.version}`"
target="_blank"
rel="noreferrer noopener"
>
v{{$params.changedRelease.version}}
v{{params.changedRelease.version}}
</Badge>
</div>
<IconContributors :icon="$params" :class="$style.contributors"/>
<IconContributors :icon="params" :class="$style.contributors"/>
</div>
</div>
<CodeGroup
@@ -97,7 +97,7 @@ const codeExample = computed(() => data.codeExamples?.map(
</div>
</div>
<RelatedIcons :icons="$params.relatedIcons" />
<RelatedIcons :icons="params.relatedIcons" />
<style module>
.preview {
@@ -117,6 +117,10 @@ const codeExample = computed(() => data.codeExamples?.map(
margin-top: 24px;
}
.info {
--tags-gradient-background: var(--vp-c-bg);
}
.version, .contributors {
display: flex;
flex-wrap: wrap;

View File

@@ -1,18 +1,18 @@
import { getAllData } from "../.vitepress/lib/icons";
import relatedIcons from '../.vitepress/data/relatedIcons.json'
import iconNodes from '../.vitepress/data/iconNodes'
import * as iconDetails from '../.vitepress/data/iconDetails'
import { IconEntity } from "../.vitepress/theme/types";
export default {
paths: async () => {
const icons = await getAllData()
return icons.map((iconEntity) => {
return (Object.values(iconDetails) as unknown as IconEntity[]).map((iconEntity) => {
const params = {
...iconEntity,
relatedIcons: relatedIcons[iconEntity.name].map((name: string) => ({
name,
iconNode: iconNodes[name],
})),
}))
}
return {

View File

@@ -1,9 +1,9 @@
import { getAllData } from '../.vitepress/lib/icons'
import iconNodes from '../.vitepress/data/iconNodes'
export default {
async load() {
return {
icons: await getAllData(),
icons: Object.entries(iconNodes).map(([name, iconNode]) => ({ name, iconNode })),
}
}
}

View File

@@ -3,6 +3,10 @@ layout: page
outline: 2
outlineTitle: Categories
sidebar: true
head:
- - link
- rel: canonical
content: https://lucide.dev/icons/
---
<script setup>

View File

@@ -2,6 +2,11 @@
# https://vitepress.dev/reference/default-theme-home-page
layout: home
head:
- - link
- rel: canonical
content: https://lucide.dev/
hero:
name: |
Beautiful &
@@ -13,10 +18,10 @@ hero:
actions:
- theme: brand
text: View all icons
link: icons/index
link: icons/
- theme: alt
text: Get Started
link: guide/index
link: guide/
- theme: alt
text: GitHub
link: https://github.com/lucide-icons/lucide

View File

@@ -13,10 +13,11 @@
"prebuild:metaJson": "node ../scripts/writeIconMetaIndex.mjs",
"prebuild:releaseJson": "node ../scripts/writeReleaseMetadata.mjs",
"prebuild:relatedIcons": "node ../scripts/writeIconRelatedIcons.mjs",
"prebuild:iconDetails": "node ../scripts/writeIconDetails.mjs",
"postbuild:vercelJson": "node ../scripts/writeVercelOutput.mjs",
"dev": "npx nitropack dev",
"build:api": "npx nitropack build",
"prebuild": "pnpm build:iconNodes && pnpm build:metaJson && pnpm build:releaseJson && pnpm build:relatedIcons && pnpm build:iconDetails",
"prebuild": "pnpm prebuild:iconNodes && pnpm prebuild:metaJson && pnpm prebuild:releaseJson && pnpm prebuild:relatedIcons && pnpm prebuild:iconDetails",
"build": "pnpm run \"/^prebuild:.*/\" && pnpm build:api && pnpm build:docs && pnpm postbuild:vercelJson",
"preview": "node .output/server/index.mjs"
},
@@ -46,7 +47,9 @@
"shiki": "^0.14.2",
"shiki-processor": "^0.1.3",
"simple-git": "^3.18.0",
"sitemap": "^7.1.1",
"svg-pathdata": "^6.0.3",
"svgson": "^5.2.1",
"vue": "^3.2.47"
}
}

BIN
docs/public/og.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

View File

@@ -23,6 +23,17 @@
"source": "/docs/:path*",
"destination": "/guide/:path*",
"permanent": true
},
{
"source": "/",
"has": [
{
"type": "query",
"key": "search"
}
],
"destination": "/icons",
"permanent": false
}
]
}

View File

@@ -0,0 +1,43 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"pulse",
"action",
"motion",
"movement",
"exercise",
"fitness",
"healthcare",
"heart rate monitor",
"vital signs",
"vitals",
"emergency room",
"er",
"intensive care",
"hospital",
"defibrillator",
"earthquake",
"siesmic",
"magnitude",
"richter scale",
"aftershock",
"tremor",
"shockwave",
"audio",
"waveform",
"synthesizer",
"synthesiser",
"music"
],
"categories": [
"medical",
"account",
"social",
"science",
"multimedia",
"shapes"
]
}

14
icons/activity-square.svg Normal file
View File

@@ -0,0 +1,14 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="M17 12h-2l-2 5-2-10-2 5H7" />
</svg>

After

Width:  |  Height:  |  Size: 302 B

View File

@@ -5,13 +5,38 @@
],
"tags": [
"pulse",
"health",
"action",
"motion"
"motion",
"movement",
"exercise",
"fitness",
"healthcare",
"heart rate monitor",
"vital signs",
"vitals",
"emergency room",
"er",
"intensive care",
"hospital",
"defibrillator",
"earthquake",
"siesmic",
"magnitude",
"richter scale",
"aftershock",
"tremor",
"shockwave",
"audio",
"waveform",
"synthesizer",
"synthesiser",
"music"
],
"categories": [
"medical",
"account",
"social"
"social",
"science",
"multimedia"
]
}

View File

@@ -9,5 +9,5 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="22 12 18 12 15 21 9 3 6 12 2 12" />
<path d="M22 12h-4l-3 9L9 3l-3 9H2" />
</svg>

Before

Width:  |  Height:  |  Size: 264 B

After

Width:  |  Height:  |  Size: 249 B

View File

@@ -10,10 +10,12 @@
"warning",
"alert",
"danger",
"exclamation mark"
"exclamation mark",
"linter"
],
"categories": [
"notifications",
"shapes"
"shapes",
"development"
]
}

View File

@@ -10,6 +10,6 @@
stroke-linejoin="round"
>
<path d="m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" />
<line x1="12" x2="12" y1="9" y2="13" />
<line x1="12" x2="12.01" y1="17" y2="17" />
<path d="M12 9v4" />
<path d="M12 17h.01" />
</svg>

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 346 B

View File

@@ -5,11 +5,17 @@
"karsa-mistmere"
],
"tags": [
"key",
"backwards",
"reverse",
"slow",
"direction",
"south",
"download"
],
"categories": [
"arrows",
"navigation",
"gaming",
"files"
]
}

View File

@@ -6,9 +6,14 @@
"danielbayley"
],
"tags": [
"key"
"backwards",
"reverse",
"direction",
"south"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -5,10 +5,16 @@
"karsa-mistmere"
],
"tags": [
"key",
"back"
"previous",
"back",
"direction",
"west",
"turn",
"corner"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -7,10 +7,15 @@
"danielbayley"
],
"tags": [
"key",
"back"
"previous",
"back",
"direction",
"west",
"indicate turn"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -5,10 +5,16 @@
"karsa-mistmere"
],
"tags": [
"key",
"forward"
"next",
"forward",
"direction",
"east",
"turn",
"corner"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -7,10 +7,15 @@
"danielbayley"
],
"tags": [
"key",
"forward"
"next",
"forward",
"direction",
"east",
"indicate turn"
],
"categories": [
"arrows"
"arrows",
"navigation",
"gaming"
]
}

View File

@@ -5,16 +5,23 @@
"karsa-mistmere"
],
"tags": [
"keyboard",
"key",
"forward",
"caps lock",
"capitals",
"keyboard",
"button",
"mac",
"button"
"forward",
"direction",
"north",
"faster",
"speed",
"boost"
],
"categories": [
"arrows",
"development"
"navigation",
"text",
"development",
"gaming"
]
}

View File

@@ -6,15 +6,21 @@
"danielbayley"
],
"tags": [
"keyboard",
"key",
"forward",
"shift",
"keyboard",
"button",
"mac",
"button"
"capitalize",
"capitalise",
"forward",
"direction",
"north"
],
"categories": [
"arrows",
"development"
"navigation",
"text",
"development",
"gaming"
]
}

View File

@@ -4,7 +4,6 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"filter",
"sort",
"ascending",

View File

@@ -4,7 +4,6 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"filter",
"sort",
"descending",

View File

@@ -4,7 +4,6 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"filter",
"sort",
"ascending",

View File

@@ -5,10 +5,17 @@
"ericfennis"
],
"tags": [
"direction"
"backwards",
"reverse",
"direction",
"south",
"sign",
"button"
],
"categories": [
"arrows",
"shapes"
"navigation",
"shapes",
"gaming"
]
}

View File

@@ -10,6 +10,6 @@
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<polyline points="8 12 12 16 16 12" />
<line x1="12" x2="12" y1="8" y2="16" />
<path d="M12 8v8" />
<path d="m8 12 4 4 4-4" />
</svg>

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 296 B

View File

@@ -5,7 +5,10 @@
"ericfennis"
],
"tags": [
"backwards",
"reverse",
"direction",
"south",
"download",
"expand",
"fold",
@@ -13,6 +16,7 @@
],
"categories": [
"arrows",
"navigation",
"files"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="12" x2="12" y1="21" y2="7" />
<polyline points="6 15 12 21 18 15" />
<path d="M19 3H5" />
<path d="M12 21V7" />
<path d="m6 15 6 6 6-6" />
</svg>

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 284 B

View File

@@ -4,9 +4,14 @@
"danielbayley"
],
"tags": [
"direction"
"outwards",
"direction",
"south-west",
"diagonal"
],
"categories": [
"arrows"
"arrows",
"navigation",
"maps"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="8,22 2,22 2,16 " />
<line x1="2" y1="22" x2="12" y2="12" />
<path d="M2,12C2,6.5,6.5,2,12,2s10,4.5,10,10s-4.5,10-10,10" />
<path d="M2 12a10 10 0 1 1 10 10" />
<path d="m2 22 10-10" />
<path d="M8 22H2v-6" />
</svg>

Before

Width:  |  Height:  |  Size: 355 B

After

Width:  |  Height:  |  Size: 300 B

View File

@@ -0,0 +1,21 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"direction",
"south-west",
"diagonal",
"sign",
"turn",
"keyboard",
"button"
],
"categories": [
"arrows",
"navigation",
"shapes",
"gaming"
]
}

View File

@@ -0,0 +1,15 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m16 8-8 8" />
<path d="M16 16H8V8" />
</svg>

After

Width:  |  Height:  |  Size: 312 B

View File

@@ -5,9 +5,12 @@
"ericfennis"
],
"tags": [
"direction"
"direction",
"south-west",
"diagonal"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="17" x2="7" y1="7" y2="17" />
<polyline points="17 17 7 17 7 7" />
<path d="M17 7 7 17" />
<path d="M17 17H7V7" />
</svg>

Before

Width:  |  Height:  |  Size: 288 B

After

Width:  |  Height:  |  Size: 260 B

View File

@@ -4,7 +4,6 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"filter",
"sort",
"ascending"

View File

@@ -4,9 +4,14 @@
"danielbayley"
],
"tags": [
"direction"
"outwards",
"direction",
"south-east",
"diagonal"
],
"categories": [
"arrows"
"arrows",
"navigation",
"maps"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<polyline points="22,16 22,22 16,22 " />
<line x1="22" y1="22" x2="12" y2="12" />
<path d="M12,22C6.5,22,2,17.5,2,12S6.5,2,12,2s10,4.5,10,10" />
<path d="M12 22a10 10 0 1 1 10-10" />
<path d="M22 22 12 12" />
<path d="M22 16v6h-6" />
</svg>

Before

Width:  |  Height:  |  Size: 359 B

After

Width:  |  Height:  |  Size: 303 B

View File

@@ -0,0 +1,21 @@
{
"$schema": "../icon.schema.json",
"contributors": [
"danielbayley"
],
"tags": [
"direction",
"south-east",
"diagonal",
"sign",
"turn",
"keyboard",
"button"
],
"categories": [
"arrows",
"navigation",
"shapes",
"gaming"
]
}

View File

@@ -0,0 +1,15 @@
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m8 8 8 8" />
<path d="M16 8v8H8" />
</svg>

After

Width:  |  Height:  |  Size: 310 B

View File

@@ -5,9 +5,12 @@
"ericfennis"
],
"tags": [
"direction"
"direction",
"south-east",
"diagonal"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="7" x2="17" y1="7" y2="17" />
<polyline points="17 7 17 17 7 17" />
<path d="m7 7 10 10" />
<path d="M17 7v10H7" />
</svg>

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 260 B

View File

@@ -6,10 +6,18 @@
"ericfennis"
],
"tags": [
"direction"
"backwards",
"reverse",
"direction",
"south",
"sign",
"keyboard",
"button"
],
"categories": [
"arrows",
"shapes"
"navigation",
"shapes",
"gaming"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<polyline points="8 12 12 16 16 12" />
<line x1="12" x2="12" y1="8" y2="16" />
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="M12 8v8" />
<path d="m8 12 4 4 4-4" />
</svg>

Before

Width:  |  Height:  |  Size: 351 B

After

Width:  |  Height:  |  Size: 313 B

View File

@@ -6,10 +6,15 @@
],
"tags": [
"direction",
"south",
"waypoint",
"location",
"step",
"into"
],
"categories": [
"arrows"
"arrows",
"navigation",
"maps"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="12" x2="12" y1="2" y2="16" />
<polyline points="19,9 12,16 5,9" />
<path d="M12 2v14" />
<path d="m19 9-7 7-7-7" />
<circle cx="12" cy="21" r="1" />
</svg>

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 296 B

View File

@@ -5,8 +5,11 @@
"ericfennis"
],
"tags": [
"behind",
"direction",
"south",
"download",
"save",
"git",
"version control",
"pull",
@@ -16,6 +19,7 @@
],
"categories": [
"arrows",
"navigation",
"files",
"development"
]

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="12" x2="12" y1="17" y2="3" />
<polyline points="6 11 12 17 18 11" />
<path d="M12 17V3" />
<path d="m6 11 6 6 6-6" />
<path d="M19 21H5" />
</svg>

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 285 B

View File

@@ -5,10 +5,13 @@
],
"tags": [
"bidirectional",
"direction",
"two-way",
"2-way",
"swap",
"switch",
"network",
"traffic",
"flow",
"mobile data",
"internet",
"sort",
@@ -16,6 +19,7 @@
"move"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -5,9 +5,7 @@
"csandman",
"karsa-mistmere"
],
"aliases": ["sort-desc"],
"tags": [
"arrow",
"filter",
"sort",
"descending"
@@ -16,5 +14,8 @@
"text",
"layout",
"arrows"
],
"aliases": [
"sort-desc"
]
}
}

View File

@@ -4,11 +4,11 @@
"karsa-mistmere"
],
"tags": [
"arrow",
"filter",
"sort",
"descending",
"alphabetical"
"alphabetical",
"reverse"
],
"categories": [
"text",

View File

@@ -5,9 +5,13 @@
"ericfennis"
],
"tags": [
"direction"
"backwards",
"reverse",
"direction",
"south"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="12" x2="12" y1="5" y2="19" />
<polyline points="19 12 12 19 5 12" />
<path d="M12 5v14" />
<path d="m19 12-7 7-7-7" />
</svg>

Before

Width:  |  Height:  |  Size: 291 B

After

Width:  |  Height:  |  Size: 262 B

View File

@@ -5,10 +5,19 @@
"ericfennis"
],
"tags": [
"direction"
"previous",
"back",
"direction",
"west",
"sign",
"turn",
"button",
"<-"
],
"categories": [
"arrows",
"shapes"
"navigation",
"shapes",
"gaming"
]
}

View File

@@ -10,6 +10,6 @@
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<polyline points="12 8 8 12 12 16" />
<line x1="16" x2="8" y1="12" y2="12" />
<path d="M16 12H8" />
<path d="m12 8-4 4 4 4" />
</svg>

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 297 B

View File

@@ -5,12 +5,17 @@
"ericfennis"
],
"tags": [
"previous",
"back",
"direction",
"west",
"expand",
"fold",
"horizontal"
"horizontal",
"<-|"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="3" x2="17" y1="12" y2="12" />
<polyline points="9 6 3 12 9 18" />
<path d="m9 6-6 6 6 6" />
<path d="M3 12h14" />
<path d="M21 19V5" />
</svg>

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 284 B

View File

@@ -7,14 +7,18 @@
],
"tags": [
"bidirectional",
"direction",
"two-way",
"2-way",
"swap",
"switch",
"transaction",
"reorder",
"move"
"move",
"<-",
"->"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -6,10 +6,18 @@
"ericfennis"
],
"tags": [
"direction"
"previous",
"back",
"direction",
"west",
"sign",
"keyboard",
"button",
"<-"
],
"categories": [
"arrows",
"navigation",
"shapes"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<rect width="18" height="18" x="3" y="3" rx="2" ry="2" />
<polyline points="12 8 8 12 12 16" />
<line x1="16" x2="8" y1="12" y2="12" />
<rect width="18" height="18" x="3" y="3" rx="2" />
<path d="m12 8-4 4 4 4" />
<path d="M16 12H8" />
</svg>

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 314 B

View File

@@ -5,12 +5,17 @@
"ericfennis"
],
"tags": [
"previous",
"back",
"direction",
"west",
"collapse",
"fold",
"horizontal"
"horizontal",
"|<-"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="7" x2="21" y1="12" y2="12" />
<polyline points="13 6 7 12 13 18" />
<path d="M3 19V5" />
<path d="m13 6-6 6 6 6" />
<path d="M7 12h14" />
</svg>

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 284 B

View File

@@ -5,9 +5,14 @@
"ericfennis"
],
"tags": [
"direction"
"previous",
"back",
"direction",
"west",
"<-"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,6 +9,6 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="19" x2="5" y1="12" y2="12" />
<polyline points="12 19 5 12 12 5" />
<path d="m12 19-7-7 7-7" />
<path d="M19 12H5" />
</svg>

Before

Width:  |  Height:  |  Size: 290 B

After

Width:  |  Height:  |  Size: 262 B

View File

@@ -5,10 +5,19 @@
"ericfennis"
],
"tags": [
"direction"
"next",
"forward",
"direction",
"east",
"sign",
"turn",
"button",
"->"
],
"categories": [
"arrows",
"shapes"
"navigation",
"shapes",
"gaming"
]
}

View File

@@ -10,6 +10,6 @@
stroke-linejoin="round"
>
<circle cx="12" cy="12" r="10" />
<polyline points="12 16 16 12 12 8" />
<line x1="8" x2="16" y1="12" y2="12" />
<path d="M8 12h8" />
<path d="m12 16 4-4-4-4" />
</svg>

Before

Width:  |  Height:  |  Size: 327 B

After

Width:  |  Height:  |  Size: 297 B

View File

@@ -5,13 +5,18 @@
"ericfennis"
],
"tags": [
"next",
"forward",
"direction",
"east",
"export",
"expand",
"fold",
"horizontal"
"horizontal",
"|->"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

View File

@@ -9,7 +9,7 @@
stroke-linecap="round"
stroke-linejoin="round"
>
<line x1="21" x2="7" y1="12" y2="12" />
<polyline points="15 18 21 12 15 6" />
<path d="M3 5v14" />
<path d="M21 12H7" />
<path d="m15 18 6-6-6-6" />
</svg>

Before

Width:  |  Height:  |  Size: 314 B

After

Width:  |  Height:  |  Size: 285 B

View File

@@ -5,14 +5,18 @@
],
"tags": [
"bidirectional",
"direction",
"two-way",
"2-way",
"swap",
"switch",
"transaction",
"reorder",
"move"
"move",
"<-",
"->"
],
"categories": [
"arrows"
"arrows",
"navigation"
]
}

Some files were not shown because too many files have changed in this diff Show More