diff --git a/docs/.vitepress/theme/components/home/HomeIconCustomizer.vue b/docs/.vitepress/theme/components/home/HomeIconCustomizer.vue index 4b80122d3..fd31cc650 100644 --- a/docs/.vitepress/theme/components/home/HomeIconCustomizer.vue +++ b/docs/.vitepress/theme/components/home/HomeIconCustomizer.vue @@ -88,8 +88,8 @@ syncRef(size, sizeCssVar) name="stroke-width" v-model="strokeWidth" :min="1" - :max="4" - :steps="0.5" + :max="3" + :steps="0.25" /> @@ -106,6 +106,7 @@ syncRef(size, sizeCssVar) v-model="size" :min="16" :max="48" + :step="4" /> diff --git a/docs/.vitepress/theme/components/home/HomePackagesSection.data.ts b/docs/.vitepress/theme/components/home/HomePackagesSection.data.ts index fe39d032c..a992b2638 100644 --- a/docs/.vitepress/theme/components/home/HomePackagesSection.data.ts +++ b/docs/.vitepress/theme/components/home/HomePackagesSection.data.ts @@ -34,7 +34,7 @@ export default { }, { name: 'lucide-react-native', - logo: '/framework-logos/react.svg', + logo: '/framework-logos/react-native.svg', label: 'Lucide documentation for React Native', }, { diff --git a/docs/.vitepress/theme/components/icons/SidebarIconCustomizer.vue b/docs/.vitepress/theme/components/icons/SidebarIconCustomizer.vue index 7a0774acc..1a262dc81 100644 --- a/docs/.vitepress/theme/components/icons/SidebarIconCustomizer.vue +++ b/docs/.vitepress/theme/components/icons/SidebarIconCustomizer.vue @@ -84,8 +84,8 @@ function resetStyle () { name="stroke-width" v-model="strokeWidth" :min="0.5" - :max="4" - :step="0.5" + :max="3" + :step="0.25" /> diff --git a/docs/.vitepress/theme/components/packages/PackageList.data.ts b/docs/.vitepress/theme/components/packages/PackageList.data.ts new file mode 100644 index 000000000..c92038bab --- /dev/null +++ b/docs/.vitepress/theme/components/packages/PackageList.data.ts @@ -0,0 +1,21 @@ +import packageData from '../../../data/packageData.json'; +import thirdPartyPackages from '../../../data/packageData.thirdParty.json'; +import fetchPackages from "../../../lib/fetchPackages"; + +export default { + async load() { + const packages = await fetchPackages(); + return { + packages: packages + .filter(p => p.name in packageData) + .map((pData) => ({ + ...pData, + ...packageData[pData.name], + documentation: `/guide/packages/${pData.name}`, + source: `https://github.com/lucide-icons/lucide/tree/main/packages/${pData.name}`, + icon: `/framework-logos/${packageData[pData.name].icon}.svg`, + })).sort((a, b) => a.order - b.order), + thirdPartyPackages, + }; + } +} diff --git a/docs/.vitepress/theme/components/packages/PackageList.vue b/docs/.vitepress/theme/components/packages/PackageList.vue new file mode 100644 index 000000000..865a79cc9 --- /dev/null +++ b/docs/.vitepress/theme/components/packages/PackageList.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/docs/.vitepress/theme/components/packages/PackageListItem.vue b/docs/.vitepress/theme/components/packages/PackageListItem.vue new file mode 100644 index 000000000..bb1681c9f --- /dev/null +++ b/docs/.vitepress/theme/components/packages/PackageListItem.vue @@ -0,0 +1,100 @@ + + + + + diff --git a/docs/icons/index.md b/docs/icons/index.md index 8d6698ca5..734b75a3b 100644 --- a/docs/icons/index.md +++ b/docs/icons/index.md @@ -18,4 +18,3 @@ const { categories, icons } = data -``` diff --git a/docs/index.md b/docs/index.md index a19db66c4..ac47a3748 100644 --- a/docs/index.md +++ b/docs/index.md @@ -38,7 +38,7 @@ features: details: Lucide is available as a package for all major package managers. icon: | - - title: Three shakable + - title: Tree shakable details: The icons are tree shakable, so you only import the icons you use. icon: | diff --git a/docs/license.md b/docs/license.md index 18562509b..a6fa41f39 100644 --- a/docs/license.md +++ b/docs/license.md @@ -1,3 +1,7 @@ +--- +aside: false +--- + # Lucide License diff --git a/docs/packages.md b/docs/packages.md new file mode 100644 index 000000000..d27922fc3 --- /dev/null +++ b/docs/packages.md @@ -0,0 +1,24 @@ +--- +layout: page +outline: 2 +outlineTitle: Packages +sidebar: true +--- + + +
+ + + +
+ + diff --git a/docs/public/framework-logos/11ty.svg b/docs/public/framework-logos/11ty.svg index 6d580c6d6..5d1e517d5 100644 --- a/docs/public/framework-logos/11ty.svg +++ b/docs/public/framework-logos/11ty.svg @@ -1,4 +1,2 @@ - - - + + diff --git a/docs/public/framework-logos/hyva.svg b/docs/public/framework-logos/hyva.svg index b12013454..129c61f21 100644 --- a/docs/public/framework-logos/hyva.svg +++ b/docs/public/framework-logos/hyva.svg @@ -1,6 +1,5 @@ - diff --git a/docs/public/framework-logos/react-native.svg b/docs/public/framework-logos/react-native.svg index aadf591d5..862337a8c 100644 --- a/docs/public/framework-logos/react-native.svg +++ b/docs/public/framework-logos/react-native.svg @@ -1,6 +1,10 @@ - - - - - + + + + + + + + +