Skip to content
Back to skills

Playground

ASecurity

Live CSS playground for tweaking element styles in real-time in the browser. Use when the user says 'open css playground', 'let me tweak styles', 'live edit CSS', 'try different styles', 'experiment with styles', or wants to visually iterate on CSS before committing to source code.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmentjavascriptjava

Works with

  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add harshkedia177/design-mode --skill playground --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Playground?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Playground
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/harshkedia177-playground/badge)](https://www.skillsdirectory.com/skills/harshkedia177-playground)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: playground
description: "Live CSS playground for tweaking element styles in real-time in the browser. Use when the user says 'open css playground', 'let me tweak styles', 'live edit CSS', 'try different styles', 'experiment with styles', or wants to visually iterate on CSS before committing to source code."
allowed-tools:
  - Read
  - Edit
  - Grep
  - Glob
  - ToolSearch
  - mcp__design-mode__apply_style
  - mcp__design-mode__read_element
  - mcp__design-mode__screenshot
  - mcp__design-mode__eval_js
  - mcp__plugin_design-mode_design-mode__apply_style
  - mcp__plugin_design-mode_design-mode__read_element
  - mcp__plugin_design-mode_design-mode__screenshot
  - mcp__plugin_design-mode_design-mode__eval_js
  - mcp__Claude_Preview__preview_eval
  - mcp__Claude_Preview__preview_screenshot
  - mcp__Claude_in_Chrome__javascript_tool
  - mcp__Control_Chrome__execute_javascript
---

# CSS Playground — Live Style Tweaking

Apply temporary CSS changes to elements in the browser for visual iteration. Changes are applied via inline styles and can be committed to source code when the user is satisfied.

## Apply Temporary Styles

Use `mcp__design-mode__apply_style` with:
- `selector`: CSS selector of the element
- `styles`: object of CSS property-value pairs (camelCase keys), e.g. `{"fontSize": "20px", "color": "red"}`

The tool automatically stores original styles for revert.

## Take Before/After Screenshots

1. Take a screenshot before: `mcp__design-mode__screenshot`
2. Apply the style change
3. Take another screenshot after
4. Ask the user if they want to keep, adjust, or revert

## Revert Styles

Use `mcp__design-mode__apply_style` with `revert: true` and the same selector.

## Commit to Source

When the user says "commit this" or "save these styles":

1. Use `mcp__design-mode__read_element` to get the element's source file info
2. Locate the source file following `../references/source-lookup.md`
3. Apply the style changes to the actual source file using Edit, following `../references/commit-to-source.md` to match the project's styling approach

## Common Style Tweaks

Interpret natural language into CSS:
- "make it bigger" → increase font-size or dimensions
- "more spacing" → increase padding, margin, or gap
- "bolder" → font-weight: 700
- "center it" → appropriate flex/grid/text-align centering
- "red" / "blue" / any color → change color or background
- "rounded" → increase border-radius
- "shadow" → add box-shadow

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.