@withicons/core-plus
v0.5.0
Published
7 newer with icons styles (clay, bento, suite, dock, liquid, chrome, brutal) for 750 icons: standalone SVGs and IconNode data. Companion of @withicons/core.
Maintainers
Readme
@withicons/core-plus
7 newer styles (clay, bento, suite, dock, liquid, chrome, brutal) of with icons for all 750 icons:
standalone SVG files and IconNode data, laid out like @withicons/core,
which holds the older styles and the shared API (toSvg, resolve, search, metadata, palettes; its styles.json
says which package holds each style). The newest styles have packages of their own because jsDelivr serves at most 150 MB per package.
npm i @withicons/core @withicons/core-plusimport { toSvg } from '@withicons/core'
import { Home } from '@withicons/core-plus/nodes/clay'
toSvg(Home, 'clay', { size: 32, idSuffix: 'a' }) // gradients: give each inline copy its own idSuffix
import url from '@withicons/core-plus/svg/clay/home.svg'CDN: https://cdn.jsdelivr.net/npm/@withicons/core-plus@latest/dist/svg/clay/home.svg
| path | contents |
|---|---|
| dist/svg/<style>/<name>.svg | standalone SVG (CSS variables flattened to their defaults) |
| dist/nodes/<style>.js (.cjs) | IconNode data: one tree-shakable named export per icon plus nodes / default |
Every framework package (@withicons/react, vue, svelte, angular, solid) and @withicons/web, @withicons/static
hold every style, these included.
glass, clay, bento, suite, dock, liquid, chrome, soft3d, utsav, rangoli, halloween, christmas, lunar, valentine draw real SVG gradients: a <defs> of linearGradient / radialGradient whose stop
colours are the same CSS variables, so palettes and --with-* overrides recolour them too. Every inline copy gets its own
gradient ids (components, <with-icon>, with-icons.js), so one page can show the same icon many times in different
colours. When you inline SVG strings yourself, pass idSuffix (toSvg in @withicons/core, svg / loadSvg in
@withicons/web, render in @withicons/dynamic) with a different value per copy. Files and <img> need nothing.
MIT licensed. withicons.com · GitHub · Powered by Evergrow.
