Import & Configure Web Fonts and Assets
ink_import_custom_assetsConfigure Google Font imports, preconnect tags, optical line-height variables, and accessible font fallbacks for Arabic and Latin projects. Generate ready-to-use HTML and CSS rules in memory.
Instructions
PURPOSE: Dynamically configure and generate Google Fonts preconnect tags, CSS @import rules, optical line-height variables, and accessible font fallbacks for multilingual Arabic and Latin projects.
BEHAVIOR: Generates HTML link tags, CSS @import rules, and stylesheet font-family declarations purely in-memory. Does not download font binaries or write files to disk directly. Formulates tailored optical line-height variables (1.7-1.85 for Arabic, 1.5-1.6 for Latin) to eliminate clipping.
USAGE GUIDELINES:
When to use: Call when setting up web fonts, adding Arabic typographic scales, or loading bespoke font families into a project.
When NOT to use: Do NOT use to synthesize fluid clamp font-size scales (use ink_generate_palette_tokens instead) or to scaffold an entire project (use ink_create_base instead).
Alternatives: Use ink_generate_palette_tokens for fluid typography size scales; use ink_create_base for full HTML document scaffolding.
RETURNS: ResultEnvelope containing 'htmlLinkTags', 'cssImportRule', 'cssVariables' with font-family definitions, and an accessible 'fallbackStack'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weights | No | Array of numeric font weights to import (e.g. [400, 600, 700]) | |
| displayFont | No | Optional display/headline font family name (e.g. 'Amiri', 'Playfair Display', 'Clash Display') | |
| primaryFont | No | Primary font family name to import (e.g. 'IBM Plex Sans Arabic', 'Inter', 'Outfit') | IBM Plex Sans Arabic |
| includeArabic | No | When true, loads Arabic character subsets, sets optical line heights (1.7-1.85), and adds bidi fallbacks |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Domain-specific typed payload returned by the tool | |
| status | Yes | Execution outcome status | |
| summary | Yes | Concise, human-readable executive summary of the tool outcome | |
| evidence | No | Audit trail, source references, and generated artifact locations | |
| warnings | Yes | Operational cautions, craft advice, or non-blocking warnings | |
| nextActions | No | Actionable sequential recommendations or subsequent tool suggestions |