Przejdź do treści
Biblioteka skilli
Projektowanie i UX · Budowanie i kod

playamp-skins

/playamp-skins

Projektuje i buduje skórki dla odtwarzacza muzyki PlayAmp, od prostych przemalowań po gotowe odtwarzacze w formie gramofonu lub radia.

Repozytorium
PlayAmp ↗
Licencja
MIT
Ostatnia zmiana repozytorium
12.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
8
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Projektuje i buduje skórki dla odtwarzacza muzyki PlayAmp, od prostych przemalowań po gotowe odtwarzacze w formie gramofonu lub radia.

Oryginalny opis (EN)

Design and build skins for the PlayAmp music player (any look, from recolors to fully custom players like turntables, VU-meter radios, boomboxes or Walkmans). Use when asked to create, change, fix or preview a PlayAmp skin, or to turn a design idea or reference image into one.

Jak działa

  1. Pick the right level
  2. Workflow
  3. Layout essentials
  4. Recipes
  5. Examples
  6. Before you finish
Sekcje z nagłówków SKILL.md, w oryginale · 115 linii, 1 195 słów
Podgląd SKILL.md
---
name: playamp-skins
description: Design and build skins for the PlayAmp music player (any look, from recolors to fully custom players like turntables, VU-meter radios, boomboxes or Walkmans). Use when asked to create, change, fix or preview a PlayAmp skin, or to turn a design idea or reference image into one.
---

# Designing PlayAmp skins

PlayAmp is a retro macOS music player with snap-together windows: **player**, **equalizer**, **playlist** and **skins**. A skin can change everything about how they look. The player window can be redesigned completely with a JSON **layout**: any size and shape, images, fonts, and parts that move with the music.

The cassette deck and the turntable are just two examples. Anything you can draw with rectangles, ellipses, images, text, buttons and sliders works.

## Pick the right level

| Goal | Use | Effort |
|---|---|---|
| New colors on an existing design | `colors` (+ `basedOn`) | a few lines |
| Textures, printed artwork, other fonts, rounded corners | `images`, `fonts`, `shape` | + image files |
| A different player altogether (new object, new arrangement) | `layout` | a full design |

Always start from the lowest level that achieves the brief. Everything you leave out is inherited from `basedOn` (then from Classic), so skins stay short.

## Workflow

1. **Understand the brief.** Name the real-world object or mood, its materials and palette, which moving parts make it feel alive, and the window size. Players are usually 250–320 pt wide and 110–200 pt tall.
2. **Create the skin** in the user's Skins folder:
   `~/Library/Containers/com.allexcd.playamp/Data/Library/Application Support/PlayAmp/Skins/`
   - Colors-only skins can be a single `<Name>.json`.
   - Skins with images or font files must be a folder `<Name>/` containing `skin.json` and the files.
   - In the app, **Skins panel → FOLDER** opens and creates this folder, with examples in it.
3. **Write `skin.json`.** Use [reference.md](reference.md) for every allowed key, token, element type, binding, placeholder and action, and copy patterns from [examples/](examples).
4. **Make images** (if any) with code, e.g. Python with Pillow, an SVG rendered to PNG, or a Swift/AppKit script:
   - Draw at 2–3× the point size the frame will use, so they stay sharp on Retina screens.
   - Use transparent PNGs for round or irregular shapes.
   - Textures with `"mode": "tile"` must tile seamlessly.
5. **Validate**, and fix every error. Keep warnings to a minimum.
   ```bash
   PlayAmp --validate-skin "<skin.json or skin folder>"
   ```
6. **Render a preview and look at it.** Fix anything that looks off, then repeat steps 5–6.
   ```bash
   PlayAmp --render-skin "<skin.json or skin folder>" --window all --state playing --progress 0.4
   ```
   - The image is written next to the skin (`preview.png`, or `<name>-preview.png`), or to `--out <file.png>`.
   - Check `--state paused` and `--state stopped` too. Bound values like tonearms and LEDs use `idle` and `visible` there.
7. **Tell the user** to open the Skins panel (**SK** or ⌘K), press **RELOAD**, and click the new skin.

`PlayAmp` means the app's executable:
- installed app: `/Applications/PlayAmp.app/Contents/MacOS/PlayAmp`
- source checkout: `swift run PlayAmp …` or `.build/debug/PlayAmp …`

The installed app is sandboxed, so its command-line tools can only read and write inside the Skins folder above. Keep skins and outputs there, or use a source build.

## Layout essentials

```json
"layout": {
  "size": [300, 156],
  "elements": [
    { "type": "rect", "frame": [0, 0, 300, 156], "corner": 10, "fill": { "linear": ["panelTop", "panelBottom"], "angle": 90 } },
    { "type": "dragArea", "frame": [0, 0, 280, 18] },
    { "type": "button", "frame": [281, 4, 13, 12], "action": "hide", "label": "×" },
    { "type": "text", "frame": [12, 24, 120, 22], "text": "{time}", "font": "display", "fontSize": 18 },
    { "type": "button", "frame": [12, 129, 24, 16], "action": "playPause", "label": "▶" }
  ]
}
```

- **Coordinates:** `frame` is `[x, y, width, height]` in points from the parent's top-left. Group children are relative to the group.
- **Drawing order:** elements draw in order, so later ones sit on top. Draw backgrounds first and glass highlights last.
- **Paint** is a color token (`"display"`), `"#RRGGBB"` or `"#RRGGBBAA"`, `{ "linear": [...], "angle": 90 }` (0° = left→right, 90° = top→bottom), or `{ "radial": [...] }`. Prefer tokens for colors the user may want to retheme.
- **Numbers can follow playback:** `{ "bind": "progress", "from": 18, "to": 34, "idle": 0 }`. Every binding runs 0…1; `idle` applies while stopped.
- **Images:** `"@deck"`, `"@player"` and similar refer to the skin's `images` slots. Built-in layouts use these, so child skins can add textures without copying the layout.
- **Fonts:** `font` is a role (`display`, `ui`, `label`), an installed font name, or a `.ttf`/`.otf` file in the skin folder.

### Must-haves (the validator checks these)

- A `dragArea`, or the window can't be moved.
- A `playPause` (or `play`) button and a `hide` button (the close ×).
- Frames inside the layout size, and files inside the skin folder.
- Files are named relative to the skin folder. Absolute paths, `..` and symlinks that lead outside it are refused.
- Stay within the limits listed in [reference.md](reference.md) (layout size, element count, nesting, image size). Anything beyond them is ignored.

### Good practice

- Include the controls users expect: previous, next, stop, add (`⏏`), equalizer / playlist / skins toggles, position and volume sliders. Hidden hotspots (`"style": "none"`) over artwork are fine.
- Keep text readable: at least 6 pt, and strong contrast against its background.
- Keep the width near 275 pt so the 275 pt equalizer and playlist line up when docked. Wider players work, but look less tidy.
- Use `"scroll": true` for titles, since song names are long.
- Name the skin after the design, not "Test".

## Recipes

| Effect | How |
|---|---|
| Spinning record, reel, knob | `group` with `"spin": 33.33` (rpm, only while playing) |
| Tonearm or pointer that follows the song | `group` with `"pivot": [x, y]` and `"rotation": { "bind": "progress", "from": a, "to": b, "idle": rest }` |
| VU needle | `group` with `"clip": true` around the meter, and a needle group rotated by `{ "bind": "level", "from": -42, "to": 40, "idle": -42 }` |
| Tape packs that wind across | two `ellipse`s with `"radius": { "bind": "progress", "from": 22, "to": 8.5 }` (and the reverse) |
| Lamp or LED | two ellipses with `"visible": "playing"` and `"visible": "!playing"` |
| Tuning dial or needle you can drag to seek | `slider` with `"bind": "position"`, transparent `track`/`fill`, and a thin `knob` (`"knobSize": [2, 28]`) |
| Vertical fader | `slider` with `"vertical": true` |
| Artwork as buttons | `button` with `"image"` / `"pressedImage"`, or `"style": "none"` over drawn art |
| Glass or sheen | a last `rect`/`ellipse` with a white→transparent gradient |
| Reuse the animated cassette | element `{ "type": "cassette", "frame": [...] }` |

## Examples

- [examples/vu-radio/skin.json](examples/vu-radio/skin.json): a full custom layout with two VU meters, a tuning dial that seeks, a spinning knob, a vertical volume fader and an LED. No images.
- [examples/walnut/](examples/walnut): based on the built-in Turntable, adding wood textures, printed record-label art and different fonts.
- [examples/midnight-tape.json](examples/midnight-tape.json): colors and shape only, on the cassette face.
- The built-in Turntable layout is in the app source at `Sources/PlayAmpCore/BuiltInLayouts.swift`. It's a complete record player in the same JSON format.

## Before you finish

- `--validate-skin` reports 0 errors.
- You looked at previews for playing and stopped.
- Text is legible, controls are reachable, and nothing important is clipped.
- Image files are in the skin folder and referenced by relative names.
Pliki w paczce (8)
  • SKILL.md 8 KB
  • reference.md 6 KB
  • examples/midnight-tape.json 1 KB
  • examples/vu-radio/skin.json 6 KB
  • examples/walnut/label.png 51 KB
  • examples/walnut/skin.json 1 KB
  • examples/walnut/wood-dark.png 47 KB
  • examples/walnut/wood.png 52 KB

Wersje

W bazie nie ma innych skilli o nazwie playamp-skins.

Migawka bazy z 13.11.2026 · wersja paczki 3c71dab61161 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95minecraft-agent-skins
    Tworzy i poprawia skórki postaci Minecraft z portretów lub tekstur, a potem sprawdza je i instaluje w grze.
  • 100blockreel-skins
    Projektuje skin Minecrafta 64x64 z pomysłu na postać: plan palety, malowanie warstwami, walidację i podgląd z czterech stron.
  • 100wings-skins
    Stylizuje aplikację WINGS tokenami motywu --wings-*: stosuje gotowe skórki, komponuje je i rejestruje własne.
  • 100design
    Projektuje wygląd interfejsów audio z audio/ui: kierunek wizualny (retro, skeuomorfizm, minimalizm), gotowe skórki CSS i markup Panel dla @audio-ui/react oraz kompozycja materiałów, palet i typografii.
  • 90videojs-skin
    Projektuje własny wygląd i układ odtwarzacza Video.js 10, także naśladując znany serwis, w osobnym środowisku podglądu.
  • 100skin-designer
    Projektuje motyw wyglądu transkryptu Claude Code, zmienia kolory, spinner i napisy stopki.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.