Safelist & Caching
Generation
Section titled “Generation”During dev/build, the integration scans
astro.config.mjsfor icon classessrc/content/**/*.mdx?for:- Code block titles and languages
<FileTree>entries
It writes .starlight-icons/safelist.json in your project root.
- The UnoCSS preset reads this safelist and adds classes to
safelist.
Override path
Section titled “Override path”- Set
SPI_SAFELIST_PATHenv var to a JSON file of classes to force a safelist.