unslop_extract_dna
Extracts color palettes, font stacks, spacing scales, border radii, and shadow tokens from a local CSS file or live URL, returning a reusable DesignPreset and Agent Skill markdown.
Instructions
Read-only Design DNA extractor that parses a local CSS/stylesheet file or fetches a live HTTP(S) webpage URL to extract color palettes, font stacks, spacing scales, border radii, and shadow tokens. Compiles and returns a reusable DesignPreset object and Agent Skill markdown in memory without writing files to disk.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source": "<source>"
},
"name": "unslop_extract_dna"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional human-readable identifier for the compiled design preset (defaults to 'extracted-dna'). | |
| source | Yes | Local CSS file path (relative to project root) or full HTTP(S) URL to extract design tokens from. | |
| timeoutMs | No | Optional network timeout in milliseconds per HTTP(S) stylesheet request (defaults to 8000). | |
| maxStylesheets | No | Optional maximum number of linked external stylesheets to fetch when source is an HTML URL (defaults to 5). |