@rometheme/rtmicon-data
v1.0.0
Published
Path data for RTMIcon (regular & thin sets), extracted from IcoMoon SVG font source.
Readme
@rometheme/rtmicon-data
Raw SVG path data for RTMIcon — two icon sets, regular (555 icons) and thin (470 icons). This package is pure data with zero runtime dependencies; it powers @rometheme/rtmicon-react and @rometheme/rtmicon-vue, but can also be used directly to build a binding for any other framework.
Install
npm install @rometheme/rtmicon-dataWhat's inside
Each icon is exported as a named d (SVG path) string, plus a lookup map keyed by the icon's original kebab-case name:
import { accordion, REGULAR_BY_NAME, REGULAR_VIEWBOX, REGULAR_TRANSFORM } from '@rometheme/rtmicon-data';
accordion; // "M835.936 588.288h-647.872c-32.8 0-59.488-26.688-59.488-59.488..."
REGULAR_BY_NAME['accordion']; // same string, looked up by name
REGULAR_VIEWBOX; // "0 0 1024 1024"
REGULAR_TRANSFORM; // "matrix(1,0,0,-1,0,960)"The same exports exist for the thin set, prefixed THIN_* (e.g. THIN_BY_NAME, THIN_VIEWBOX, THIN_TRANSFORM).
You can also import both sets namespaced:
import { regular, thin } from '@rometheme/rtmicon-data';
regular.accordion;
thin.alarmClock;Tree-shaking
Every icon is a separate named export and the package is marked "sideEffects": false, so bundlers (webpack, Rollup, esbuild, Vite) only include the icons you actually import.
License
MIT
