color-depth
/color-depth
Buduje przyciski CSS w stylu skeuomorficznym, z warstwami, połyskiem, wewnętrznym cieniem i dziesięcioma recepturami.
- Autor
- arla6ka ↗
- Repozytorium
- design.how ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 05.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 10
- Skrypty
- 8
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 1
Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 8 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: assets/template/card.tsx, assets/template/depth-button.tsx, assets/template/glass-filter.tsx, assets/template/params.ts, assets/template/recipes.ts, assets/template/runtime/use-pause.ts, assets/template/styles.ts, scripts/check.mjs
Co robi i kiedy
Buduje przyciski CSS w stylu skeuomorficznym, z warstwami, połyskiem, wewnętrznym cieniem i dziesięcioma recepturami.
Oryginalny opis (EN)
Builds skeuomorphic CSS buttons whose depth comes only from stacked layers on one pill, a gradient body, inset shadows for the bevel and the inner glow, a brighter layer that fades in on hover and a soft bar of light along the top, in ten recipes from glossy and glowing to brushed metal, foil, inset, glass and satin. Use when someone asks for a glossy button, a 3D or tactile button, skeuomorphic UI, a glowing call to action, a glass or metal button, or button depth in CSS.
Jak działa
- What to build
- Workflow
- FIXED
- VARIABLE
Podgląd SKILL.md
--- name: color-depth description: Builds skeuomorphic CSS buttons whose depth comes only from stacked layers on one pill, a gradient body, inset shadows for the bevel and the inner glow, a brighter layer that fades in on hover and a soft bar of light along the top, in ten recipes from glossy and glowing to brushed metal, foil, inset, glass and satin. Use when someone asks for a glossy button, a 3D or tactile button, skeuomorphic UI, a glowing call to action, a glass or metal button, or button depth in CSS. --- # Colour depth Buttons that look like real objects, glossy or lit from inside, from gradients and inset shadows alone. See it live at https://design.how/vault/color-depth. ## What to build Two pills reading "Get Started" sit side by side on a pale plate, 44px tall with a 15px medium label. The first is glossy orange: a vertical gradient from amber to burnt orange, a pale inner rim, a darker inset pooling at the bottom, a soft coloured drop shadow and, along the top, a 28px bar of white fading downward, blurred one pixel, that rises and brightens on hover. The second is violet and lit from within: a dark-to-bright purple body ringed by inset glows, and on hover a second, brighter body fades in over it. Every recipe is the same element and one class. The depth is layered paint, not geometry: the body is a gradient, the bevel and the glow are stacks of inset box-shadows, ::before holds the hover state as a full second skin that only changes opacity, and ::after holds the highlight. Nothing is measured or drawn per frame, so a recipe drops onto any button. Ten recipes share the pill: glossy, glow, brushed metal with a pointer-following highlight, holographic foil that drifts, layered, inset, glass that refracts its backdrop through an SVG displacement filter, a neon-like tube, duotone and satin. The metal and foil recipes read the pointer into custom properties on the next frame after a move. ## Workflow 1. Copy `assets/template/` into the project, for example to `components/color-depth/`. It is React and TypeScript: `params.ts`, `recipes.ts`, `styles.ts`, `glass-filter.tsx`, `depth-button.tsx`, `card.tsx`, plus `runtime/`, the small helpers they import. 2. Read the FIXED steps below before touching the code. They are what makes the effect; keep them. 3. Change only the VARIABLE values in the params file, or pass them as props where the card takes them. 4. Mount the card in a box with a fixed aspect ratio of 1344 / 336, so the page never shifts when it paints. 5. Read `references/perf.md` before changing the engine or mounting several visuals on one page. 6. Run `node scripts/check.mjs components/color-depth` on the copied folder, fix every line it prints, and rerun until it prints ok. ## FIXED - Make one pill: inline-flex, 44px tall, 22px side padding, fully rounded, isolation isolate and overflow hidden, with ::before and ::after as full-size layers under the label. - Give the recipe class a gradient body and a stack of inset box-shadows for the rim, the bottom shade and the inner glow, plus one soft outer shadow. - Put the hover state in ::before as a second, brighter body at opacity 0 and fade it to 1 on hover. - For the glossy highlight, put a blurred white-to-clear bar in ::after across the top and lift and brighten it on hover. - For the glass recipe, set backdrop-filter to an SVG filter that displaces the backdrop per colour channel from a fixed gradient map. - For metal and foil, write the pointer's position into custom properties on the next animation frame and centre them on leave. - Under reduced motion, stop the foil drift and keep the pointer light centred. ## VARIABLE | Name | Default | What it changes | |-|-|-| | `SHOWCASE` | glossy and glow | The recipes the card shows. | | `RECIPES` | ten recipes | Each recipe's name, class, note and best backdrop, in recipes.ts. | | `LABEL` | "Get Started" | The pill text, in recipes.ts. | | `GROUND` | #f8f9fb | The plate colour. | | `DESIGN_WIDTH` | 528 | The card width the pills are sized at. |
Pliki w paczce (10)
- SKILL.md 4 KB
- assets/template/card.tsx 2 KB
- assets/template/depth-button.tsx 3 KB
- assets/template/glass-filter.tsx 3 KB
- assets/template/params.ts 1 KB
- assets/template/recipes.ts 2 KB
- assets/template/styles.ts 12 KB
- assets/template/runtime/use-pause.ts 2 KB
- references/perf.md 2 KB
- scripts/check.mjs 6 KB
Wersje
W bazie nie ma innych skilli o nazwie color-depth.
Migawka bazy z 13.11.2026 · wersja paczki 0bb99af8d5f2 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100skeuomorphic-ui
Tworzy skeuomorficzne interfejsy web z warstwowymi gradientami, nakładanymi cieniami, refleksyjnymi obramowaniami, mikroteksturą i tłoczonymi detalami. - 95hover-video
Buduje w React przycisk z wideo po najechaniu, który zamienia napis w pompowane litery 3D i odtwarza wideo w tył po zjechaniu kursorem. - 100liquid-glass
Buduje interfejsy w stylu Apple Liquid Glass z półprzezroczystym szkłem, dostarczając tokeny CSS, wzorce komponentów, tryb jasny i ciemny oraz specyfikacje animacji. - 95ai-lights
Buduje świecący komponent UI w React i CSS, w którym jeden element zmienia się między czterema powierzchniami narzędzi agenta. - 100materials
Projektuje wygląd powierzchni, takich jak metal, szkło, klejnoty i holo, także rzadkość przedmiotów w grach i interfejsach. - 85ux-buttons
Projektuje lub krytykuje przyciski interfejsu: dobiera typ do wagi akcji, stosuje zasady rozmiaru, etykiet i stanów oraz ocenia kształt, cienie, FAB i przyciski z samą ikoną.