Back to list
jkuri

font-management

by jkuri

Figma-like SVG canvas editor built with React and WebGL.

0🍴 0📅 Jan 25, 2026

SKILL.md


name: Font Management description: Automates font synchronization, CSS generation, and TypeScript configuration for the application.

Font Management Skill

This skill manages the fonts used in the application. It ensures that font files are properly copied to the public directory, CSS imports are generated, and a TypeScript configuration file is created for usage in the application logic.

Usage

To synchronize fonts, run the synchronization script:

node .agent/skills/fonts/scripts/sync-fonts.cjs

What it does

  1. Scans Dependencies: Reads package.json to find all dependencies starting with @fontsource/.
  2. Copies Files: Copies relevant font files (WOFF format, Latin/Latin-Ext subsets, non-italic) from node_modules to public/fonts.
  3. Generates CSS: Creates or updates src/fonts.css with @import statements for the utilized fonts.
  4. Generates TypeScript Config: Creates src/lib/fonts.ts which exports a FONT_FILES object mapping font families and weights to their file paths.

Configuration

The script currently filters for:

  • Format: .woff
  • Subsets: latin, latin-ext (files matching *latin*)
  • Style: Normal (excludes *italic*)

Adding a New Font

  1. Install the font package:

    npm install @fontsource/font-name
    
  2. Run the sync script:

    node .agent/skills/fonts/scripts/sync-fonts.cjs
    
  3. The font is now available in src/fonts.css and src/lib/fonts.ts.

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon