wp-block-styles
БесплатноБез исполняемых скриптовНе проверенStyle WordPress blocks with theme.json: presets, block-level styles, style variations, and custom CSS. Configure typography, colors, spacing, and layouts.
от wpgaurav★ 24 звезды на GitHubОб этом скилле
WordPress Block Styles & theme.json
When to Use
Use this skill when:
- Configuring theme.json for block styling
- Creating color, typography, and spacing presets
- Adding block style variations
- Customizing specific block appearances
- Setting up global styles
theme.json Fundamentals
Basic Structure
{
"$schema": "https://schemas.wp.org/trunk/theme.json",
"version": 3,
"settings": {
// Enable/disable features, define presets
},
"styles": {
// Apply styles globally and per-block
},
"customTemplates": [],
"templateParts": [],
"patterns": []
}
Version History
| Version | WordPress | Key Features |
|---|---|---|
| 1 | 5.8+ | Initial release |
| 2 | 5.9+ | Layout settings, custom presets |
| 3 | 6.6+ | Style variations, enhanced presets |
Settings Section
Layout Settings
{
"settings": {
"layout": {
"contentSize": "840px",
"wideSize": "1200px"
},
"useRootPaddingAwareAlignments": true
}
}
Color Settings
{
"settings": {
"color": {
"custom": true,
"customGradient": true,
"customDuotone": true,
"defaultPalette": false,
"defaultGradients": false,
"defaultDuotone": false,
"palette": [
{
"slug": "primary",
"color": "#0073aa",
"name": "Primary"
},
{
"slug": "secondary",
"color": "#23282d",
"name": "Secondary"
},
{
"slug": "accent",
"color": "#d63638",
"name": "Accent"
},
{
"slug": "light-gray",
"color": "#f8f9fa",
"name": "Light Gray"
},
{
"slug": "white",
"color": "#ffffff",
"name": "White"
},
{
"slug": "black",
"color": "#000000",
"name": "Black"
}
],
"gradients": [
{
"slug": "primary-to-secondary",
"gradient": "linear-gradient(135deg, #0073aa 0%, #23282d 100%)",
"name": "Primary to Secondary"
},
{
"slug": "light-to-dark",
"gradient": "linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%)",
"name": "Light to Dark"
}
],
"duotone": [
{
"slug": "primary-white",
"colors": ["#0073aa", "#ffffff"],
"name": "Primary and White"
}
]
}
}
}
Typography Settings
{
"settings": {
"typography": {
"fluid": true,
"customFontSize": true,
"dropCap": true,
"fontStyle": true,
"fontWeight": true,
"letterSpacing": true,
"lineHeight": true,
"textDecoration": true,
"textTransform": true,
"writingMode": true,
"fontFamilies": [
{
"slug": "system",
"fontFamily": "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif",
"name": "System Font"
},
{
"slug": "serif",
"fontFamily": "Georgia, 'Times New Roman', serif",
"name": "Serif"
},
{
"slug": "heading",
"fontFamily": "'Inter', sans-serif",
"name": "Inter",
"fontFace": [
{
"fontFamily": "Inter",
"fontWeight": "400 900",
"fontStyle": "normal",
"fontStretch": "normal",
"src": ["file:./assets/fonts/inter-variable.woff2"]
}
]
}
],
"fontSizes": [
{
"slug": "small",
"size": "0.875rem",
"name": "Small"
},
{
"slug": "medium",
"size": "1rem",
"name": "Medium"
},
{
"slug": "large",
"size": "1.25rem",
"name": "Large"
},
{
"slug": "x-large",
"size": "1.5rem",
"name": "Extra Large"
},
{
"slug": "xx-large",
"size": "2rem",
"name": "2X Large"
}
]
}
}
}
Fluid Typography
{
"settings": {
"typography": {
"fluid": true,
"fontSizes": [
{
"slug": "large",
"size": "1.5rem",
"fluid": {
"min": "1.25rem",
"max": "1.75rem"
},
"name": "Large"
}
]
}
}
}
Spacing Settings
{
"settings": {
"spacing": {
"margin": true,
"padding": true,
"blockGap": true,
"units": ["px", "em", "rem", "%", "vw", "vh"],
"spacingScale": {
"operator": "*",
"increment": 1.5,
"steps": 7,
"mediumStep": 1.5,
"unit": "rem"
},
"spacingSizes": [
{
"slug": "10",
"size": "0.25rem",
"name": "1"
},
{
Установить wp-block-styles в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл wp-block-styles?
Style WordPress blocks with theme.json: presets, block-level styles, style variations, and custom CSS. Configure typography, colors, spacing, and layouts.
Как установить скилл wp-block-styles?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл wp-block-styles запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic