* feat(site): Show merch from merch.lucide.dev when Carbon Ads are blocked
When an adblocker stops Carbon (failed script request, no window._carbonads
after 3s, or the ad hidden by a cosmetic filter), the ad slot shows a merch
card instead of an empty box. Doc pages and the icons overlay get a 3:4
slider with bullets (10s, crossfade); the home page shows two products.
Products come from the Fourthwall Storefront API at build time
(prebuild:merch, FOURTHWALL_STOREFRONT_TOKEN), in USD, so the token never
reaches the browser. Without a token the card links to the store.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FiGcimashQWZ7MEP1h
* refactor(site): Load merch with a VitePress data loader instead of a prebuild script
Moves the Fourthwall fetch into merch.data.ts, so the products come from
the same .data.ts pattern as the other build-time data. Drops the
prebuild:merch script and the gitignored merchData.json.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FiGcimashQWZ7MEP1h
* Dynamic load merch component
---------
Co-authored-by: Claude <noreply@anthropic.com>
* fix(site): recover stale tabs after deploys and guard category scroll spy
- Reload once when a lazy chunk from an older deploy fails to load
(vite:preloadError), and when VitePress swaps in a new hashmap.json and
loads the new deploy's page chunk into the old app. The second case
caused 'useIconStyleContext must be used with useIconStyleProvider' and
'useExternalLibs must be used with externalLibs context', because the new
chunk brings its own copy of the theme with new Symbol injection keys.
- Guard the category list scroll spy against running after unmount and
clear its pending timeout.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FfuEnhMTXSiKPJV3kb
* revert(site): drop deploy recovery in favor of Vercel skew protection
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FfuEnhMTXSiKPJV3kb
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(icons): added `steering-wheel` icon
Signed-off-by: Abdul karim mia <akmia51@gmail.com>
* Apply suggestion from @karsa-mistmere
---------
Signed-off-by: Abdul karim mia <akmia51@gmail.com>
Co-authored-by: Karsa <karsa@karsa.org>
* Added columns plus icons
- New icons to indicate adding columns
to both left and right
* Add columns plus JSON
* Adjust columns plus icons
- PR feedback for icon consistency
- To match base columns-2 icon, rename new plus icons and adjust paths to keep base layout the same
* Add rows-2 plus icons
- To more closely address icon request #2767, add rows plus icons for additional layout options
- https://github.com/lucide-icons/lucide/issues/2767
* Adjust metadata
* Update columns-2-plus-right.svg
* Update columns-2-plus-left.svg
* Update rows-2-plus-top.svg
* Update rows-2-plus-bottom.svg
---------
Co-authored-by: Eric <eric.fennis@gmail.com>
Co-authored-by: Karsa <karsa@karsa.org>
* chore(docs): upgrade to VitePress 2
- Bump vitepress to 2.0.0-alpha.21
- Drop direct @docsearch/js and @docsearch/css deps; VitePress 2 ships
DocSearch v4 and imports its styles itself
- VPNavBarSearch override: use the new VPAlgoliaSearchBox props
(algoliaOptions + openRequest) instead of dispatching synthetic
keydown events
- VPCarbonAds override: replace removed useAside composable with a
media query, matching upstream
- VPFooter override: use useLayout from vitepress/theme instead of the
removed useSidebar().hasSidebar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FhZukDbCKe1ZFByn43
* Fix types and imports
* Fix ts imports
* fix styling
* Update mediaqueries
* chore(docs): remove unused theme overrides
VitePress 2 has no VPIconAlignLeft.vue for the alias to replace (the
local nav uses the vpi-text-align-start icon class), and the Hero and
HeroMatrix overrides aren't imported anywhere.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* chore(docs): use rem media queries in MCP and waitlist styles
Matches the rest of the theme and VitePress 2, which switched its
breakpoints to rem.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(docs): don't fail the build when GitHub's release API drops
The home hero's data loader let a network error from the GitHub
releases API escape, which failed the whole docs build in CI
("fetch failed: other side closed"). Retry once, then fall back to
null and hide the version badge instead of rendering "vundefined".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Add sentry
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(docs): add custom color picker built on vue-color
Replace the native color input in the icon customizers with a dropdown
built on vue-color's ChromePicker: a saturation area, hue and alpha
sliders, and an eyedropper button where the browser supports it.
- Knobs use the same 20px size, shadow and hover/active rings as the
customizer's range slider thumbs
- The panel is teleported to the body and positioned with floating-ui,
so the sidebar's scroll container doesn't clip it
- vue-color is loaded lazily when the picker is about to open
- Keyboard: Tab moves through the panel and on to the hex field,
Shift+Tab goes back, Escape closes and returns focus to the swatch.
vue-color's sliders prevent the default of every key, so Tab is
handled by hand
- Colors are emitted as hex, with 8 digits when alpha is below 100%
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FhybXR7xuDECHDUz2n
* feat(docs): remove opacity slider from color picker
The picker now only produces opaque colors, always emitted as 6-digit
hex. The hue slider sits alone next to the eyedropper button, and the
popover no longer reserves height for the second slider.
Also binds aria-expanded as a boolean again, which fixes the vue-tsc
error from the previous commit. Vue renders false as "false".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01G9u8FhybXR7xuDECHDUz2n
---------
Co-authored-by: Claude <noreply@anthropic.com>
`lucide-solid` and `@lucide/solid` have no `"type": "module"` and point every
`types` export condition at `.d.ts` files, so TypeScript's Node16/NodeNext
resolution reads the declarations as CommonJS. ESM consumers then get the
module object instead of the component for per-icon default imports
(`import Camera from '@lucide/solid/icons/camera'`), failing with TS2604/TS2322.
Emit `.d.mts` declarations next to the existing `.d.ts` files (rollup rewrites
their relative imports to `.mjs`) and select them via a nested `import`
condition under `types`, as lucide-react already does with `.d.mts` files.
The `.d.ts` files, top-level `types` field and runtime conditions are unchanged.
* Added icons/plus-in-square.svg
* Added icons/plus-in-square.json
* Rename `plus-in-square` icon to `square-plus-corner`
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Fix `development` category typo in `square-plus-corner` metadata
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Update icon and metadata
---------
Co-authored-by: Eric <eric.fennis@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* Allow string values for `size` and `strokeWidth` in icon contexts
The global icon context types declare `size` and `strokeWidth` as `number`,
while the component props they supply defaults for accept `number | string`.
The context value is passed through to the component untouched, so a CSS
length that works on a single icon is rejected when set as a default:
setLucideProps({ size: '1em' }); // Type 'string' is not assignable to 'number'
<Moon size="1em" /> // same value, same code path, no error
* Accept a string `size` on vue icon components
@lucide/vue types the component prop as `size?: 24 | number`, so it rejects the
CSS lengths its own `strokeWidth?: number | string` accepts, and that every other
framework accepts. The value goes straight to the `width`/`height` attributes,
so a string already works at runtime.
* Allow string `size` and `strokeWidth` in the icon context
Copilot's PR comment correctly surfaced a gap in the PR - the same type
bug exists in the lucide-react-native project and wasn't fixed there.
Same narrowing as the other framework contexts: `LucideProps` accepts
`size?: string | number`, and `strokeWidth` resolves to react-native-svg's
`NumberProp` (`string | number`), but the context and `LucideProviderProps`
declared both as `number`. `Icon.ts` passes the context value straight through
— `width: width ?? size ?? contextSize` — so nothing downstream needs a number.
* Don't emit NaN stroke width for non-numeric absolute lengths
`absoluteStrokeWidth` scales the stroke by `Number(size)`, so a CSS unit such
as `1em` produced `NaN` and a size of `0` produced `Infinity` – both invalid as
a `stroke-width` attribute. Fall back to the unscaled stroke width whenever the
conversion isn't finite, so the deprecated prop degrades rather than breaking
the rendered icon.
* fix(packages/angular): allow a string `strokeWidth` in the global config
`LucideConfig` already types `size` as `string | number` but left `strokeWidth`
as `number`, while `LucideIconBase` accepts `string | number` for both and
passes the configured value straight to the shared builder. So
`provideLucideConfig({ strokeWidth: '1em' })` was rejected for no reason.
* refactor(shared): keep absolute stroke scaling inside its branch
The finite-value fallback added in b65ee945 computed the scaled width before
testing `absoluteStrokeWidth`, so the default path paid for three `Number`
conversions and a division it never used. Start from the unscaled width and
overwrite it only when scaling both applies and yields a finite result, which
also states the rule more directly.
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
* feat(icons): add folder plus corner
* fix(icons): use standard folder shape for folder-plus-corner
Align the folder outline with other folder icons and truncate the
bottom-right corner for the plus badge, matching file-*-corner icons.
* fix(icons): use standard folder shape for folder-plus-corner
Address review feedback to keep the folder shape consistent with other
folder icons by adopting the standard "cut" folder outline (as used by
folder-cog/folder-heart) with the plus glyph in the lower-right corner.
* fix(icons/folder-plus-corner): closed gaps
* Adjust svg and metadata
* Add EOF
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>
Co-authored-by: Karsa <contact@karsa.org>
* feat(site): Preselect external libraries via `?library=` URL param
Opening /icons/?library=lab now enables the Lab library on load, and
toggling the checkbox keeps the address bar in sync, so the current
selection can be shared as a link.
- Repeated params (?library=a&library=b) and comma lists are accepted;
unknown values and duplicates are dropped.
- The param is applied in onMounted rather than during setup, so the
fetch watchers already exist and hydration doesn't mismatch on the
checkbox.
- The URL is updated with replaceState, preserving history.state and
other params such as ?search=.
* fix(site): Keep `?library=` across navigation and the icon drawer
The library param was only read on the first mount and was dropped by
the icon drawer, so it stopped matching the selection:
- /icons/?library=lab -> Categories -> uncheck Lab -> Back restored
?library=lab in the URL but left nothing selected.
- Opening and closing an icon drawer on desktop kept Lab selected but
removed ?library= from the URL, so sharing or refreshing lost it.
Now the selection is reconciled with the URL on every mount and on
popstate: a valid ?library= wins, and when the URL has none but a
library is selected, the param is written back with replaceState.
The drawer's pushState calls in IconItem.vue and IconsOverview.vue
keep the param via a new setLibraryParams helper.
* Add localstorage
* Refactor code
---------
Co-authored-by: Eric Fennis <eric.fennis@gmail.com>