Skip to content
pixi-silk
GitHub repository
Examples

Showcase

Five design sheets rebuilt pixel for pixel, three dashboard scenes and four light scenes, all drawn with pixi-silk. Open any of them in Studio.

Updated pixi-silk 1.0.1View as Markdown

Whole screens built with pixi-silk. They are site code, not library code, so copy the parts you need. Each demo opens in Studio with its source.

Design sheets, rebuilt 1:1#

Each pair shows the reference image and a still frame of the live render. Open a sheet to drag a compare slider over it. The widget viewer and the experiments listed at the end of this page open any single widget full screen.

Sheet 1: Health cards

Open the live sheet

Ten Health cards: area charts with dots and a dashed forecast, bars, candles, ranges and signal bars.

Health cards reference design next to its smooth, anti-aliased pixi-silk rebuild in PixiJS v8

Sheet 2: Watch complications

Open the live sheet

Twenty complications: heart-rate zones, network, calendar, golden hour, clock with stadium ticks, mood, sleep, Tesla.

Watch complications reference design next to its smooth, anti-aliased pixi-silk rebuild in PixiJS v8

Sheet 3: Fitness & home

Open the live sheet

Calendar week, hike map, sound levels, motion detection, elevation, water, run pace, boarding pass and wind.

Fitness & home reference design next to its smooth, anti-aliased pixi-silk rebuild in PixiJS v8

Sheet 4: Live Activities

Open the live sheet

Black cards with continuous corners and measured soft shadows on a light sheet: flight, delivery, ISS flyover, cadence, race.

Live Activities reference design next to its smooth, anti-aliased pixi-silk rebuild in PixiJS v8

Sheet 5: Watch widgets

Open the live sheet

Cycling, 2FA codes, now playing, crosshair, garage door, AirPods compass, barometer and moon phases.

Watch widgets reference design next to its smooth, anti-aliased pixi-silk rebuild in PixiJS v8

Dashboards#

Switch the theme.

A weather board in two tones. It uses hairlines, discs and one monospace face. The needle, the compass and the sunrise arrow move on their own layer, so the rest is drawn once.

Hover a tile.Open in Studio

Each tile is a small container with its own drawing. Lift any one of them into your app as it is.

Open in Studio

The heatmap is about 700 cells in one SilkGraphics. It redraws at half the frame rate.

Light scenes#

These use pixi-silk/glow and pixi-silk/glass. Glass and glow explains the pieces.

Drag to move the light. Change the spread and the frost.
Open in Studio

A red disc under a large blur, and a yellow shape whose blur fades out towards a crisp horizon. The fade is a progressive blur, covered in shadows and effects.

Open in Studio

The beam is a pinched path drawn three times with less blur each time. The wave is a white stroke with red, orange and blue copies a few pixels off. The bolt is one shape cut into strips, each moved sideways.

Change how high the light rises and how fast it drifts.

API reference: SilkGraphics

Go deeper

Experiments on this page

Full-screen scenes. Each one also opens in Studio with its source.