# wordpress-designer > Build consistent WordPress admin interfaces using official @wordpress/components and design tokens. Use when creating UI screens, dashboards, settings pages, or any interface that should feel native to WordPress admin. Covers component selection, proper token usage for colors/spacing/typography, and composition patterns to avoid visual inconsistency. - Author: Shaun Andrews - Repository: shaunandrews/wordpress-gutenberg-playground - Version: 20260108184645 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-07 - Source: https://github.com/shaunandrews/wordpress-gutenberg-playground - Web: https://mule.run/skillshub/@@shaunandrews/wordpress-gutenberg-playground~wordpress-designer:20260108184645 --- --- name: wordpress-designer description: Build consistent WordPress admin interfaces using official @wordpress/components and design tokens. Use when creating UI screens, dashboards, settings pages, or any interface that should feel native to WordPress admin. Covers component selection, proper token usage for colors/spacing/typography, and composition patterns to avoid visual inconsistency. --- # WordPress Designer Build WordPress-native interfaces using official components and design tokens from `@wordpress/components` and `@wordpress/theme`. ## Core Principles 1. **Use semantic tokens, not raw values** - Always use CSS custom properties like `--wp--preset--color--primary` instead of hex codes 2. **Compose from official components** - Prefer `Card`, `Button`, `Panel` over custom elements 3. **Follow density patterns** - Use consistent spacing with token-based gaps and padding 4. **Respect the theme system** - Interfaces should adapt to light/dark modes automatically ## Quick Reference ### Component Import Pattern ```jsx import { Button, Card, CardBody, CardHeader, CardFooter, Panel, PanelBody, PanelRow, Flex, FlexItem, FlexBlock, TextControl, SelectControl, ToggleControl, Notice, Spinner, Icon } from '@wordpress/components'; ``` ### Design Token Pattern ```css /* Use semantic tokens from @wordpress/theme */ .my-component { background: var(--wp-admin-theme-color); color: var(--wp-admin-theme-color-darker-10); padding: var(--wp-admin-padding); border-radius: var(--wp-admin-radius-sm); } ``` ## Component Selection Guide | Need | Use Component | Avoid | |------|---------------|-------| | Primary action | `