-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Icons 4.0 changes
The icons build pipeline has been refactored in @blueprintjs/icons v4.0. We now use fantasticon in place of most of our custom build scripts. This allows us to keep supporting the icon font without maintaining the font files themselves (they are automatically generated from the SVG sources).
This change in tooling comes with small breaking changes, listed in order of likelihood for impacting your code base:
-
Icon variables and mixin names have been changed to remove the
pt-prefix, swapping forbp-instead. -
Icon codepoints are no longer exported as Less variables. They are still accessible in Sass and TypeScript. In Sass, they are only provided as a map, not individual variables:
@import "~@blueprintjs/icons/lib/scss/variables"; // Sass example... map-get($blueprint-icons-codepoints, "arrow-right");
import { IconCodepoints } from "@blueprintjs/icons"; // TypeScript example... IconCodepoints["arrow-right"];
-
Sass variables for the icon font names have changed, they are now
$blueprint-icons-16and$blueprint-icons-20. -
The
$icon-classesvariable now lives in the@blueprintjs/corepackage, not@blueprintjs/icons.
- FAQ
- 6.x Changelog
- 5.x Changelog
- 5.0 pre-release changelog
- 4.x Changelog
- v4.0 & v5.0 major version semantic swap
- v6.0 changes
- Spacing System Migration: 10px to 4px
- react-day-picker v8 migration
- HotkeysTarget & useHotkeys migration
- PanelStack2 migration
- Table 6.0 changes