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

peak-gradient

/peak-gradient

Buduje w SVG rozmytą poświatę z kolumn o tęczowym gradiencie, wznoszących się od dolnej krawędzi ekranu.

Repozytorium
design.how ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.11.2026

Ocena i bezpieczeństwo

95/ 100Klasa: dobry
Format20 / 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
7
Skrypty
5
Komentarze HTML
0
Adresy URL w SKILL.md
1
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.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 sprawdzić przed instalacją
  • 5 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: assets/template/card.tsx, assets/template/gradient.tsx, assets/template/params.ts, assets/template/runtime/use-pause.ts, scripts/check.mjs

Co robi i kiedy

Buduje w SVG rozmytą poświatę z kolumn o tęczowym gradiencie, wznoszących się od dolnej krawędzi ekranu.

Oryginalny opis (EN)

Builds an SVG glow made of a row of tall, heavily blurred columns that share one vertical rainbow gradient, arranged in a symmetric curve, tallest in the centre, fading to transparent at the top, and rising from the bottom edge with a scaleY transition. Use when someone asks for a rainbow glow, an aurora footer, a gradient that rises from the bottom of the screen, a soft blurred colour backdrop, or a hero glow behind a call to action.

Jak działa

  1. What to build
  2. Workflow
  3. FIXED
  4. VARIABLE
Sekcje z nagłówków SKILL.md, w oryginale · 44 linii, 610 słów
Podgląd SKILL.md
---
name: peak-gradient
description: Builds an SVG glow made of a row of tall, heavily blurred columns that share one vertical rainbow gradient, arranged in a symmetric curve, tallest in the centre, fading to transparent at the top, and rising from the bottom edge with a scaleY transition. Use when someone asks for a rainbow glow, an aurora footer, a gradient that rises from the bottom of the screen, a soft blurred colour backdrop, or a hero glow behind a call to action.
---

# Peak gradient

A soft rainbow glow of blurred columns that rises from the floor, tallest in the middle. See it live at https://design.how/vault/peak-gradient.

## What to build

At the bottom of a white card sits a soft glow: dark at the floor, then blue, steel, near-white, yellow, red-orange and magenta, fading to nothing at the top. Its outline is a gentle mountain, highest in the middle and lower toward both sides, and it grows up from the floor over 1.1 seconds whenever the card comes into view.

It is far simpler than it looks: nine tall rectangles in one SVG, all filled with the same vertical gradient and each blurred with a gaussian of 15 view-box units in a 1271 by 599 box. The gradient is in each rectangle's own bounding box, so every column carries the full rainbow over its own height, and the columns are 1.23 times their pitch so they overlap and the blur melts them into one surface. The last stop is transparent, so the tallest column dissolves before its edge would show.

The heights follow a power falloff, not a cosine bell: the centre is 98 percent of the box and the edges 55 percent of that, with height falling as one minus the distance from the centre to the power 1.24, which gives the flatter, pyramid-like rise. The rise is a transform alone, scaleY from 0 to 1 about the bottom edge with a gliding ease-out, so it costs nothing per frame.

## Workflow

1. Copy `assets/template/` into the project, for example to `components/peak-gradient/`. It is React and TypeScript: `params.ts`, `gradient.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 / 620, 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/peak-gradient` on the copied folder, fix every line it prints, and rerun until it prints ok.

## FIXED

- Draw BARS rectangles side by side in a 1271 by 599 view box with preserveAspectRatio none, each 1.23 columns wide.
- Set each height from the centre out as PEAK times the box height times (VALLEY + (1 - VALLEY)(1 - t^1.24)), and stand it on the bottom edge.
- Fill every bar with one vertical linearGradient in objectBoundingBox units, bottom to top through STOPS, ending transparent.
- Wrap each bar in a group with a feGaussianBlur of BLUR.
- Rise the whole field with transform-origin bottom and a scaleY(0) to scaleY(1) transition over RISE_MS, started two frames after the collapsed state paints.
- Under reduced motion, show the field risen and never transition.

## VARIABLE

| Name | Default | What it changes |
|-|-|-|
| `STOPS` | ember, blue, steel, near-white, yellow, red-orange, magenta, transparent | The rainbow every column carries, bottom to top. |
| `PALETTES` | seven rainbows | Alternative stops for the same shape. |
| `BARS` | 9 | How many columns. |
| `BLUR` | 15 | The blur in view-box units. |
| `PEAK` | 0.98 | The centre column's height as a share of the box. |
| `VALLEY` | 0.55 | The edge columns' height as a share of the centre's. |
| `RISE_MS` | 1100 | How long the rise from the floor takes. |
| `GROUND` | #ffffff | The card colour. |
Pliki w paczce (7)
  • SKILL.md 4 KB
  • assets/template/card.tsx 2 KB
  • assets/template/gradient.tsx 2 KB
  • assets/template/params.ts 2 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 peak-gradient.

Migawka bazy z 13.11.2026 · wersja paczki 8efc5ae1f1db (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

  • 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.
  • 95blur-glow
    Buduje w WebGL efekt poświaty: ostry wyraz w miękkim blasku, z rozmyciem wielu przejść i paletą kolorów, także z animacją liter.
  • 100css-border-gradient
    Nakłada subtelne obramowania z gradientem na eleganckich powierzchniach webowych: karty, panele cenowe, nawigacja, modale i przyciski, bez krzykliwej poświaty.

Uwagi i zgłoszenia

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