mirror of
https://github.com/penpot/penpot.git
synced 2026-10-29 22:10:34 +00:00
@penpot/plugin-styles loaded Work Sans from fonts.bunny.net via a remote @import in core/fonts.css, which every plugin built with the package fetched at runtime. That broke air-gapped deployments, leaked user IPs to a third party, and forced deployments to widen the CSP style-src and font-src directives introduced in #11374. Drop the remote import and use the system-ui stack instead of 'Work Sans' in the same package (both in core/fonts.css for code blocks and in core/generic.css for the base typography, which relied on the same webfont), so plugins no longer reach any external domain and 'self' is enough for both CSP directives. Verified by bundling the package entry point with esbuild using the same options as tools/scripts/build-css.mjs: the produced styles.css is balanced, contains system-ui, and contains no external import. Closes #12023 Signed-off-by: ump45nose <1729065730@qq.com>