mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
One family. Font stacks name Zen and fall back to the native faces, tokens name the role rather than a face, and the packages that used to supply a face now point at @hanzo/font. Self-hosted @font-face blocks are removed rather than renamed: rewriting the family in one would leave a src pointing at a file this repo no longer ships. @hanzo/font carries the binaries and declares the faces, so the local copies go with the declaration that used them. Comments naming a face we no longer use are deleted, not reworded.
18 lines
308 B
TypeScript
18 lines
308 B
TypeScript
import type CspDev from 'csp-dev';
|
|
|
|
export function googleFonts(): CspDev.DirectiveDescriptor {
|
|
|
|
return {
|
|
'connect-src': [
|
|
'fonts.gstatic.com',
|
|
],
|
|
'style-src': [
|
|
'fonts.googleapis.com',
|
|
],
|
|
'font-src': [
|
|
'fonts.gstatic.com',
|
|
'fonts.googleapis.com',
|
|
],
|
|
};
|
|
}
|