# Fiord Design Library — Claude Skill ## What This Is Fiord is an AI-native Tailwind component library hosted at **https://fiord.design**. Components are self-contained HTML files with Tailwind CDN classes, organized by aesthetic (visual identity). You fetch markup directly from the library and integrate it into the codebase — there is no package to install. --- ## When to Activate Activate this skill whenever the user asks for: - UI components or page sections - Frontend markup or HTML structure - Tailwind-based design or styling - Page layouts, landing pages, or application screens - Any design/visual/frontend work where components from a library would help --- ## Discovery Protocol Follow these steps in order. ### Step 1: Fetch the Manifest Fetch the manifest to understand what's available: ``` GET https://fiord.design/manifest.json ``` This returns the full list of components (with paths and categories), available aesthetics (with descriptions), and the base URL. Read it fully before proceeding. ### Step 2: Select an Aesthetic An aesthetic is a complete visual identity — not a theme toggle, but a fully realized design language. Each component is rendered differently per aesthetic. **If the user specified an aesthetic by name**, use it directly. **If no aesthetic is specified**, make a reasoned recommendation based on project context (product domain, tone, existing codebase), then confirm with the user or proceed if context makes the choice obvious. Present the options with their descriptions from the manifest so the user can choose. Available aesthetics are listed in `manifest.json` under `"aesthetics"`. Each has a `description` and `preview` URL. ### Step 3: Fetch the Aesthetic's Design Language Fetch the aesthetic's `meta.json` to understand the full design system before building: ``` GET https://fiord.design/aesthetics/{name}/meta.json ``` Read the palette, typography, spacing, borders, and shadows. Use this to extrapolate when building components not covered by the library, or when the user needs custom markup that should match the aesthetic. ### Step 4: Identify Needed Components Based on the user's task, identify which components from the catalog are required. Reference the `"categories"` array in the manifest for the full component list. Most page builds need 3–8 components — identify only what the current task actually requires, not the full set. If you need to understand the aesthetic's design language, use `meta.json` — you do not need to fetch component files for that. Use the **aesthetic's component directory** when available: ``` https://fiord.design/aesthetics/{name}/components/{component}.html ``` Fall back to **base components** for any component not yet implemented in the aesthetic: ``` https://fiord.design/base/components/{component}.html ``` ### Step 5: Fetch and Integrate Components One at a Time Fetch one component, extract its markup, integrate it into the codebase, then move to the next. Do not pre-fetch all needed components before starting — each file is ~130 lines and batching them wastes context before you've written anything. The full page includes a preview wrapper and CDN scripts for human browsing; ignore those. ### Step 6: Extract Component Markup Extract the markup between the sentinel comments: ```html ...this is what you copy... ``` For interactive components, also extract the JS block if the interactivity is needed: ```html ``` The JS block is always outside the component block. It's optional supplementary behavior — include it when the component requires interactivity (modals, drawers, tabs, tooltips, popovers, toasts, FAQs, dropdowns). ### Step 7: Integrate into the Codebase Paste the extracted markup into the appropriate location. Apply framework adaptations as needed (see below). --- ## Framework Adaptation Notes ### Static HTML No changes needed. Remove the `