Scaffold Web Application Foundation
ink_create_baseScaffold a complete web app foundation with semantic HTML, OKLCH color tokens, fluid typography, and bilingual RTL/LTR layout. Generates index.html, styles.css, and main.js ready to write to disk.
Instructions
PURPOSE: Scaffold a complete, production-grade semantic web application foundation featuring OKLCH color token architecture, fluid typography scales, modern CSS logical properties, and bilingual Arabic RTL/LTR layout balance.
BEHAVIOR: Generates complete in-memory application files (index.html, styles.css, main.js) within the structured result envelope. Operates purely in-memory with zero direct filesystem side effects; callers receive the code ready to be written to disk. Requires no external credentials or elevated permissions.
USAGE GUIDELINES:
When to use: Call at the start of a web project to establish root HTML semantics, CSS custom property foundations, viewport meta tags, and font configurations.
When NOT to use: Do NOT use to craft isolated UI widgets (use ink_craft_component instead) or to synthesize standalone color variables without project markup (use ink_generate_palette_tokens instead).
Alternatives: Use ink_craft_component for individual components; use ink_generate_palette_tokens for standalone CSS color tokens.
RETURNS: ResultEnvelope containing structured 'files' dictionary (index.html, styles.css, main.js), OKLCH tokensOverview, contrast verification analysis, and typography scales.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ink_create_base"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Primary language mode: 'ar' optimizes Arabic optical hierarchy, 'en' optimizes Latin, 'bilingual' isolates bidi text with <bdi> chips | bilingual |
| direction | No | Document writing direction: 'rtl' sets dir='rtl' for Arabic, 'ltr' for English, 'auto' configures bidirectional CSS logical properties | auto |
| arabicFont | No | Curated Arabic font family loaded from Google Fonts; pairs with Latin typography with matching optical x-height | ibm-plex |
| designStyle | No | Aesthetic foundation archetype governing OKLCH color harmonies, typography ratios, and border radius | editorial |
| projectName | No | Name of the web application or project folder (used in document title and manifest metadata) | ink-craft-app |
| includePwaMeta | No | When true, injects mobile viewport constraints, theme-color meta tags, and color-scheme dark/light preferences | |
| includeThreeJs | No | When true, mounts a responsive WebGL Three.js canvas in the hero section and includes CDN script tags |
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 |