Introducing a new way to review your PRs.

Read the announcement

remix-design / remixicon

Open source neutral style icon system

View on GitHub

5 documents · Updated Nov 16, 2026

docs / font-distribution-assets

Font Distribution Assets

Overview

The fonts/ tree is the published Remix Icon distribution surface for icon-font and SVG-sprite consumers. It is generated release output rather than application code: the headers in fonts/remixicon.css, fonts/remixicon.less, fonts/remixicon.scss, fonts/remixicon.module.less, fonts/remixicon.svg, and fonts/remixicon.symbol.svg identify the release as Remix Icon v4.9.1 dated 2026-01-29.

Consumers that want the icon font usually start with fonts/remixicon.css. Its @font-face block declares the remixicon font family and loads sibling files by relative URL: fonts/remixicon.eot, fonts/remixicon.woff2, fonts/remixicon.woff, fonts/remixicon.ttf, and fonts/remixicon.svg, each with the same ?t=1769685282643 cache-busting query. The stylesheet then makes any class beginning with ri- or containing ri- render with the icon font, enables font smoothing, defines sizing helpers such as .ri-lg, .ri-xl, .ri-2x, and .ri-fw, and maps every icon class to a Unicode codepoint with :before rules. For example, fonts/remixicon.css maps .ri-24-hours-fill:before to "\ea01" and ends with newer classes such as .ri-connector-line:before mapped to "\f69d".

The preprocessor entrypoints mirror the same class-to-codepoint distribution for different build systems. fonts/remixicon.less keeps the CSS entrypoint behavior, including font-display: swap and size helper classes, but wraps the generated icon selector block in :global { ... } so the icon class names survive CSS-module processing. fonts/remixicon.module.less is the more CSS-module-specific Less variant: it declares @font-face, the base [class^="ri-"] selector, and a :global { ... } icon mapping block, but does not carry the .ri-lg/.ri-fw helper block present in fonts/remixicon.css and fonts/remixicon.less. fonts/remixicon.scss and fonts/remixicon.styl declare the same sibling font URLs and icon classes, set a base font-size: 16px, and omit the CSS/Less helper block; fonts/remixicon.scss also publishes Sass variables such as $ri-24-hours-fill: "\ea01" through $ri-connector-line: "\f69d" after the class rules for consumers that compose pseudo-elements themselves.

The binary font files are the payloads loaded by the stylesheet entrypoints. fonts/remixicon.woff2 and fonts/remixicon.woff are the primary web-font formats, fonts/remixicon.ttf supports TrueType consumers, and fonts/remixicon.eot exists for legacy Internet Explorer paths referenced by the first two src: values in fonts/remixicon.css. fonts/remixicon.svg is both the legacy SVG font referenced from stylesheet @font-face blocks and a readable glyph inventory: it defines <font id="remixicon" horiz-adv-x="1200">, a font-face with units-per-em="1200", ascent="1020", and descent="180", then one <glyph> per icon with glyph-name, unicode, and font-coordinate d path data.

SVG-symbol consumers use fonts/remixicon.symbol.svg instead of the icon font. That file is a hidden zero-sized <svg> sprite with one <symbol viewBox="0 0 24 24" id="ri-..."> per icon; callers inject or reference the sprite and render icons with <use> IDs such as ri-24-hours-fill. The same source shapes are also exposed as metadata in fonts/remixicon.glyph.json, a single JSON object keyed by icon name where each value contains a 24x24 path array, the HTML Unicode entity such as &#xEA01;, and the scaled glyph path used by the SVG font.

Path-routing guidance for fonts/**: changes to fonts/remixicon.css, fonts/remixicon.less, fonts/remixicon.module.less, fonts/remixicon.scss, or fonts/remixicon.styl affect package entrypoints and build-system integration; changes to fonts/remixicon.eot, fonts/remixicon.woff2, fonts/remixicon.woff, fonts/remixicon.ttf, or fonts/remixicon.svg affect browser font loading and rendered glyphs; changes to fonts/remixicon.symbol.svg affect SVG-sprite users; changes to fonts/remixicon.glyph.json affect metadata/codegen consumers and should be checked against the rendered assets.

Coupling

Risks

  • fonts/remixicon.css, fonts/remixicon.less, fonts/remixicon.module.less, fonts/remixicon.scss, and fonts/remixicon.styl are duplicated generated entrypoints. If one stylesheet is patched by hand without regenerating the others, different consumers can see different codepoints or missing classes for the same icon name.
  • fonts/remixicon.css and fonts/remixicon.less include font-display: swap, size helpers, and no forced font-size in the base .ri-* selector, while fonts/remixicon.scss, fonts/remixicon.module.less, and fonts/remixicon.styl set font-size: 16px and omit those helpers. If a release process assumes these files are textually equivalent, it can accidentally change sizing behavior for Sass/Stylus or CSS-module consumers.
  • The history for fonts/ is dominated by whole-release updates (Update to v4.9.1, Update to v4.9.0, etc.) with targeted fixes such as f458327 Delete invalid files, c268fdf Updated moon-clear-line icon, and 89385ca v1.2.2 fixed spelling error of umbrella icon. That pattern means small manual fixes under fonts/** are easy to overwrite on the next generated release unless the upstream generation source is also corrected.