scrollfx

scrollfx · Components · Set of drawings, 14 sheets

Components,
drawn to scale.

Pen plotters were made to draw engineering drawings, so each component here is a sheet of one, plotted live: the component in the middle, its props called out round it, its variants as details in the margin, and its parts in the corner. Click a detail and the pen draws it again. Each is installed on its own with the shadcn CLI.

Legend of symbols

  • Pen 1, inkAxes, outlines, hatching: the ink is your text colour.
  • Pen 2, accentThe first series, the mark that matters: the accent prop.
  • CalloutA prop, and the part of the drawing it shapes.
  • Callout to a surfaceA dot where the prop shapes an area, not an edge.
  • DimensionA size a prop sets, measured off the drawing.
  • HatchingShade without colour: series told apart by angle and density.
  • DetailA variant, drawn small: detail B on sheet 03. Click one to draw it on the sheet.

Contents · drawing list

SheetTitleDetails
01Line chartchart-lineA B C
02Area chartchart-areaA B
03Bar chartchart-barA B C D
04Pie chartchart-pieA B
05Radar chartchart-radarA B
06Scatter chartchart-scatterA B
07SparklinesparklineA B
08Ink highlightink-highlightA B C D E F G
09Ink dividerink-dividerA B C D E
10Ink frameink-frameA B C D
11Ink progressink-progressA B C
12Ink stampink-stampA B C
13Ink signatureink-signatureA B C
14Ink arrowink-arrowA B C
Install any sheetnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/<drawing no.>.json
TitleComponentsscrollfx
Dwg no.
set
Sheet
00/14
Scale
As shown
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 01Open sheet
Visitors a month, January to December
monthvisitors
Jan1240
Feb1510
Mar1460
Apr1980
May2350
Jun2210
Jul2740
Aug3120
Sep2980
Oct3540
Nov3890
Dec4320
  1. 1data · 12 rows
  2. 2accent · the line
  3. 3curve · smooth
  4. 4zero · axis from 0
  5. 5index · month
  6. height · 240

Schedule of props

MarkPropTypeDefaultDescription
P1dataDatum[]SAMPLEOne object per point along the x axis.
P2indexstring'month'The key in each object that labels its point on the x axis.
P3configChartConfig—The series to draw, by key: a label and, if you like, a colour. Defaults to every number in the first object.
P4curveCurve'smooth'How the pen joins the points.
P5markersboolean—A marker on every point: circles for the first series, then squares, triangles, diamonds, crosses.
P6heightnumber240The plot's height in pixels; it takes the full width.
P7formatIntl.NumberFormatOptions—How numbers on the axis are written (Intl.NumberFormat options).
P8zerobooleantrueStart the y axis at zero, or fit it to the data.
P9legendboolean—Show the key. By default, when there is more than one series.
P10accentstringACCENTThe first series' colour.
P11labelstring'Line chart'What the chart shows, for screen readers (it captions the data table).
P12triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P13durationnumber1800With `view`, how long the chart takes, in ms.
P14classNamestring''—

Notes

  1. 1.
    A line chart a pen plots as you scroll: gridlines, then each series left to right, the first in the accent, then a marker on every point. One series or several; smooth, straight or stepped.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Single series. One series, a smooth monotone curve that never overshoots its points.
  2. 5.
    Usage, as drawn:
    import { ChartLine } from '@/components/scrollfx/chart-line';
    
    export function Single() {
      return <ChartLine label="Visitors a month, January to December" />;
    }
    
View source · on sheet 01

Parts list

ItemPart, as installed
1components/scrollfx/chart-line.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewSingle series
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/chart-line.json
Title

Line chart

scrollfx · Charts
Dwg no.
chart-line
Sheet
01/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 02Open sheet
Events a day, millions, January to December
monthevents
Jan1.2
Feb1.5
Mar1.9
Apr1.7
May1.6
Jun2.2
Jul2.8
Aug2.7
Sep3.4
Oct3.6
Nov4.2
Dec4.6
  1. 1accent · the curve
  2. 2curve · smooth
  3. 3data · 12 rows
  4. 4index · month
  5. height · 240

Schedule of props

MarkPropTypeDefaultDescription
P1dataDatum[]SAMPLEOne object per point along the x axis.
P2indexstring'month'The key in each object that labels its point on the x axis.
P3configChartConfig—The series to draw, by key: a label and, if you like, a colour. Defaults to every number in the first object.
P4stackedbooleanfalseStack the series one on another, rather than each from zero.
P5curveCurve'smooth'How the pen joins the points.
P6heightnumber240The plot's height in pixels; it takes the full width.
P7formatIntl.NumberFormatOptions—How numbers on the axis are written (Intl.NumberFormat options).
P8legendboolean—Show the key. By default, when there is more than one series.
P9accentstringACCENTThe first series' colour.
P10labelstring'Area chart'What the chart shows, for screen readers (it captions the data table).
P11triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P12durationnumber1800With `view`, how long the chart takes, in ms.
P13classNamestring''—

Notes

  1. 1.
    An area chart hatched in stroke by stroke under its curve, then the curve drawn over it in the accent. One series, or several stacked, each with its own hatch.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Single series. The area under the curve is hatched upright, left to right, then the curve is drawn over it in the accent.
  2. 5.
    Usage, as drawn:
    import { ChartArea } from '@/components/scrollfx/chart-area';
    
    export function Single() {
      return <ChartArea format={{ maximumFractionDigits: 0, minimumFractionDigits: 0 }} label="Events a day, millions, January to December" />;
    }
    
View source · on sheet 02

Parts list

ItemPart, as installed
1components/scrollfx/chart-area.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewSingle series
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/chart-area.json
Title

Area chart

scrollfx · Charts
Dwg no.
chart-area
Sheet
02/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 03Open sheet
Orders a month, January to June
monthorders
Jan186
Feb305
Mar237
Apr173
May209
Jun264
  1. 1accent · the outlines
  2. 2data · 6 rows
  3. 3orientation · vertical
  4. 4index · month
  5. height · 240

Schedule of props

MarkPropTypeDefaultDescription
P1dataDatum[]SAMPLEOne object per bar (or group of bars).
P2indexstring'month'The key in each object that labels its bar.
P3configChartConfig—The series to draw, by key: a label and, if you like, a colour. Defaults to every number in the first object.
P4orientation'vertical' | 'horizontal''vertical'Upright bars (columns), or bars across with the labels down the left.
P5stackedbooleanfalseWith several series: stack them in one bar, rather than group them side by side.
P6heightnumber—The plot's height in pixels. Across, it defaults to a row per bar.
P7formatIntl.NumberFormatOptions—How numbers on the axis are written (Intl.NumberFormat options).
P8legendboolean—Show the key. By default, when there is more than one series.
P9accentstringACCENTThe first series' colour.
P10labelstring'Bar chart'What the chart shows, for screen readers (it captions the data table).
P11triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P12durationnumber1800With `view`, how long the chart takes, in ms.
P13classNamestring''—

Notes

  1. 1.
    Hatched bars, outlined by the pen as you scroll. Vertical or horizontal, one series, grouped side by side, or stacked.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Vertical. Columns hatched one after another, then outlined in the accent.
  2. 5.
    Usage, as drawn:
    import { ChartBar } from '@/components/scrollfx/chart-bar';
    
    export function Vertical() {
      return <ChartBar label="Orders a month, January to June" />;
    }
    
View source · on sheet 03

Parts list

ItemPart, as installed
1components/scrollfx/chart-bar.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewVertical
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/chart-bar.json
Title

Bar chart

scrollfx · Charts
Dwg no.
chart-bar
Sheet
03/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 04Open sheet
Visitors by browser
NameValueShare
Chrome27530%
Safari20022%
Firefox18720%
Edge17319%
Other9010%
  1. 1accent · first wedge
  2. 2labels · shares
  3. 3data · 5 rows
  4. 4legend

Schedule of props

MarkPropTypeDefaultDescription
P1dataDatum[]SAMPLEOne object per wedge.
P2nameKeystring'name'The key in each object that names its wedge.
P3valueKeystring'value'The key in each object that holds its value.
P4configChartConfigdata === SAMPLE ? SAMPLE_CONFIG : undefinedLabels (and colours, if you like) for the wedges, by name.
P5variant'pie' | 'donut''pie'A full pie, or a donut with the total in the middle.
P6labelsbooleantrueEach wedge's share, written beside it.
P7totalLabelstring'Total'Under the total in a donut.
P8formatIntl.NumberFormatOptions—How the total is written (Intl.NumberFormat options).
P9legendbooleantrueShow the key.
P10accentstringACCENTThe first wedge's colour.
P11labelstring'Pie chart'What the chart shows, for screen readers (it captions the data table).
P12triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P13durationnumber1800With `view`, how long the chart takes, in ms.
P14classNamestring''—

Notes

  1. 1.
    A pie or donut whose wedges are shaded by hatching of different angles and densities, the way a plotter shades without colour, then outlined.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Pie. Each wedge is shaded by hatching of its own angle and density, the first in the accent, then the pen outlines them.
  2. 5.
    Usage, as drawn:
    import { ChartPie } from '@/components/scrollfx/chart-pie';
    
    export function Pie() {
      return <ChartPie label="Visitors by browser" />;
    }
    
View source · on sheet 04

Parts list

ItemPart, as installed
1components/scrollfx/chart-pie.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewPie
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/chart-pie.json
Title

Pie chart

scrollfx · Charts
Dwg no.
chart-pie
Sheet
04/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 05Open sheet
Scores by skill, out of 100
skillscore
Speed86
Range64
Control92
Stamina71
Accuracy58
Recovery77
  1. 1max · 100
  2. 2accent · the shape
  3. 3grid · polygon
  4. 4data · 6 spokes

Schedule of props

MarkPropTypeDefaultDescription
P1dataDatum[]SAMPLEOne object per spoke.
P2indexstring'skill'The key in each object that names its spoke.
P3configChartConfig—The series to draw, by key: a label and, if you like, a colour. Defaults to every number in the first object.
P4maxnumber—The value at the outer ring. Defaults to a round number above the largest value.
P5grid'polygon' | 'circle''polygon'Rings, as polygons (like a web) or circles.
P6legendboolean—Show the key. By default, when there is more than one series.
P7accentstringACCENTThe first series' colour.
P8labelstring'Radar chart'What the chart shows, for screen readers (it captions the data table).
P9triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P10durationnumber1800With `view`, how long the chart takes, in ms.
P11classNamestring''—

Notes

  1. 1.
    A radar chart: rings and spokes, then each series' shape hatched in and outlined, the first in the accent.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Single series. The web first, then the shape hatched in and outlined in the accent, a dot on every reading.
  2. 5.
    Usage, as drawn:
    import { ChartRadar } from '@/components/scrollfx/chart-radar';
    
    export function Single() {
      return <ChartRadar label="Scores by skill, out of 100" />;
    }
    
View source · on sheet 05

Parts list

ItemPart, as installed
1components/scrollfx/chart-radar.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewSingle series
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/chart-radar.json
Title

Radar chart

scrollfx · Charts
Dwg no.
chart-radar
Sheet
05/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 06Open sheet
Hours saved against seats, by plan
SeatsHours savedplan
1624Team
4139Solo
2528Solo
2136Team
4649Solo
3038Solo
2649Team
5159Solo
3548Solo
3161Team
5669Solo
4058Solo
3673Team
836Solo
4568Solo
4156Team
1317Solo
5049Solo
4669Team
1827Solo
5559Solo
5181Team
2337Solo
727Solo
5693Team
2847Solo
1237Solo
61105Team
3357Solo
1718Solo
6689Team
3838Solo
2228Solo
1835Team
4348Solo
2738Solo
  1. 1yLabel
  2. 2group · plan
  3. 3xLabel
  4. height · 260

Schedule of props

MarkPropTypeDefaultDescription
P1dataDatum[]SAMPLEOne object per point.
P2xstring'seats'The key holding each point's x value.
P3ystring'hours'The key holding each point's y value.
P4groupstringdata === SAMPLE ? 'plan' : undefinedThe key that puts each point in a group (a series). Leave it out for one group.
P5configChartConfigdata === SAMPLE ? SAMPLE_CONFIG : undefinedLabels (and colours, if you like) for the groups, by group name.
P6xLabelstringdata === SAMPLE ? 'Seats' : undefinedWhat the x axis measures, written under it.
P7yLabelstringdata === SAMPLE ? 'Hours saved' : undefinedWhat the y axis measures, written above it.
P8trendbooleanfalseA least-squares line through each group, drawn last.
P9heightnumber260The plot's height in pixels; it takes the full width.
P10formatIntl.NumberFormatOptions—How numbers on the axes are written (Intl.NumberFormat options).
P11legendboolean—Show the key. By default, when there is more than one group.
P12accentstringACCENTThe first group's colour.
P13labelstring'Scatter chart'What the chart shows, for screen readers (it captions the data table).
P14triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P15durationnumber1800With `view`, how long the chart takes, in ms.
P16classNamestring''—

Notes

  1. 1.
    Points plotted left to right as small marks, one shape per series, with an optional fitted trend line drawn last.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Groups. group splits the points into series, each its own mark: accent circles, then ink squares.
  2. 5.
    Usage, as drawn:
    import { ChartScatter } from '@/components/scrollfx/chart-scatter';
    
    export function Groups() {
      return <ChartScatter label="Hours saved against seats, by plan" />;
    }
    
View source · on sheet 06

Parts list

ItemPart, as installed
1components/scrollfx/chart-scatter.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewGroups
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/chart-scatter.json
Title

Scatter chart

scrollfx · Charts
Dwg no.
chart-scatter
Sheet
06/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 07Open sheet

Revenue

$48.2k

+12% on last month

Active users

3,904

+4% on last month

Churn

1.8%

−0.3% on last month

  1. 1variant · area
  2. 2color · line, dot

Schedule of props

MarkPropTypeDefaultDescription
P1datanumber[]SAMPLEThe values, left to right.
P2variant'line' | 'area''line'A line alone, or a line over a hatched area.
P3curveCurve'smooth'How the pen joins the points.
P4dotbooleantrueA dot on the last value.
P5colorstringACCENTThe line's colour; the hatching is in the ink.
P6labelstring—What it shows, for screen readers. Defaults to the first and last values.
P7triggerChartTrigger'scroll'`scroll`: inked as it rises, done at mid-screen. `view`: played once as it comes into view.
P8durationnumber1200With `view`, how long the line takes, in ms.
P9classNamestring'h-8 w-28'—

Notes

  1. 1.
    A tiny inline line for tables and stat cards, drawn as it reaches the middle of the screen, with an optional hatched area and an end dot.
  2. 2.
    Labels, ticks, the legend and a data table for screen readers are in the server HTML. The strokes are made in the browser at the chart’s measured size, so the hatching keeps its spacing at any width.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, In stat cards. variant="area" hatches under the line; size it with className.
  2. 5.
    Usage, as drawn:
    import { Sparkline } from '@/components/scrollfx/sparkline';
    
    export function StatCards() {
      const stats = [
        { label: 'Revenue', value: '$48.2k', change: '+12%', data: [21, 24, 22, 27, 26, 31, 30, 34, 37, 36, 41, 45] },
        { label: 'Active users', value: '3,904', change: '+4%', data: [310, 330, 325, 340, 338, 352, 349, 361, 358, 372, 380, 390] },
        { label: 'Churn', value: '1.8%', change: '−0.3%', data: [2.6, 2.5, 2.6, 2.3, 2.4, 2.2, 2.1, 2.2, 2.0, 1.9, 1.9, 1.8] },
      ];
      return (
        <div className="@container">
          <div className="grid gap-4 @2xl:grid-cols-3">
            {stats.map((s) => (
              <div key={s.label} className="rounded-[3px] border bg-card p-5">
                <p className="font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground">{s.label}</p>
                <div className="mt-3 flex items-end justify-between gap-3">
                  <p className="font-serif text-3xl tracking-[-0.02em] tabular-nums">{s.value}</p>
                  <Sparkline data={s.data} variant="area" className="h-10 w-24" label={`${s.label}, last 12 months`} />
                </div>
                <p className="mt-2 text-xs text-muted-foreground">{s.change} on last month</p>
              </div>
            ))}
          </div>
        </div>
      );
    }
    
View source · on sheet 07

Parts list

ItemPart, as installed
1components/scrollfx/sparkline.tsxThe component
2lib/chart.tsScales, ticks, curves, hatching and the pens the charts share
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewIn stat cards
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/sparkline.json
Title

Sparkline

scrollfx · Charts
Dwg no.
sparkline
Sheet
07/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 08Open sheet

Most sections sit still. This one is marked up as you read, the way a proof comes back from an editor.

  1. 1children · the words
  2. 2variant · underline

Schedule of props

MarkPropTypeDefaultDescription
P1children*ReactNode——
P2variantInkHighlightVariant'underline'—
P3accentstring'#e0482a'The pen's colour.
P4strokeWidthnumber1.8—
P5seednumber1Shapes the marks; the same seed draws the same marks.
P6triggerInkTrigger'scroll'`scroll`: drawn as the words rise, done at mid-screen. `view`: played once as they come into view.
P7durationnumber900With `view`, how long each line's mark takes, in ms.
P8asElementType—The element the words sit in: `mark` by default, `s` for a strike.
P9classNamestring''—

* required

Notes

  1. 1.
    A mark a pen makes on words in running text: underline, double underline, circle, box, strike or hatch fill. Inline in a paragraph, one mark per line when the words wrap.
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Underline. One stroke under the words, pressing in from the left and lifting at the end.
  2. 5.
    Usage, as drawn:
    import { InkHighlight } from '@/components/scrollfx/ink-highlight';
    
    const P = 'max-w-2xl text-pretty font-serif text-[clamp(1.6rem,3vw,2.3rem)] leading-[1.3] tracking-[-0.015em]';
    
    export function UnderlineExample() {
      return (
        <p className={P}>
          Most sections sit still. This one is <InkHighlight>marked up as you read</InkHighlight>, the way a proof comes back from an editor.
        </p>
      );
    }
    
View source · on sheet 08

Parts list

ItemPart, as installed
1components/scrollfx/ink-highlight.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewUnderline
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-highlight.json
Title

Ink highlight

scrollfx · Ink
Dwg no.
ink-highlight
Sheet
08/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 09Open sheet

Events arrive from forty regions and land on one screen in under a second, already joined.

Every chart opens into the rows behind it. Nothing is summarised away.

  1. 1variant · straight
  2. 2color · ink

Schedule of props

MarkPropTypeDefaultDescription
P1variantInkDividerVariant'straight'—
P2labelstring'Section'The words in the middle, for `with-label`.
P3colorstring'currentColor'The ink's colour.
P4accentstring'#e0482a'The accent pen's colour (the sketchy second pass, the label's dots).
P5strokeWidthnumber1.1—
P6seednumber1—
P7triggerInkTrigger'scroll'`scroll`: drawn as it rises, done at mid-screen. `view`: played once as it comes into view.
P8durationnumber1200With `view`, the drawing's length in ms.
P9classNamestring''—

Notes

  1. 1.
    A rule a pen draws across the page: straight, wavy, sketchy (ink then accent), dotted, or two rules drawn outward from a label.
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Straight. One rule, as a hand draws it with a ruler: almost straight.
  2. 5.
    Usage, as drawn:
    import { InkDivider } from '@/components/scrollfx/ink-divider';
    
    function Between({ children }: { children: React.ReactNode }) {
      return (
        <div className="max-w-2xl text-[15px] leading-relaxed text-muted-foreground">
          <p>Events arrive from forty regions and land on one screen in under a second, already joined.</p>
          <div className="my-8 text-foreground">{children}</div>
          <p>Every chart opens into the rows behind it. Nothing is summarised away.</p>
        </div>
      );
    }
    
    export function StraightExample() {
      return (
        <Between><InkDivider /></Between>
      );
    }
    
View source · on sheet 09

Parts list

ItemPart, as installed
1components/scrollfx/ink-divider.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewStraight
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-divider.json
Title

Ink divider

scrollfx · Ink
Dwg no.
ink-divider
Sheet
09/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 10Open sheet

Studio

For teams that ship weekly.

Unlimited projects, shared plates, and a seat for everyone who reviews.

  1. 1variant · rect
  2. 2accent · second pass
  3. 3children · any

Schedule of props

MarkPropTypeDefaultDescription
P1children*ReactNode——
P2variantInkFrameVariant'rect'—
P3colorstring'currentColor'The ink's colour.
P4accentstring'#e0482a'The accent pen's colour (the second pass, the inner frame).
P5strokeWidthnumber1.1—
P6seednumber1—
P7triggerInkTrigger'scroll'`scroll`: drawn as it rises, done at mid-screen. `view`: played once as it comes into view.
P8durationnumber1400With `view`, the drawing's length in ms.
P9classNamestring''—

* required

Notes

  1. 1.
    A border a pen draws round any children: rect or rounded (twice round, ink then accent), double, or crop marks at the corners.
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Rect. The pen goes round twice, ink then accent, never quite on the same line.
  2. 5.
    Usage, as drawn:
    import { InkFrame } from '@/components/scrollfx/ink-frame';
    
    function Card({ eyebrow, title, body }: { eyebrow: string; title: string; body: string }) {
      return (
        <>
          <p className="font-mono text-[11px] uppercase tracking-[0.22em] text-muted-foreground">{eyebrow}</p>
          <h3 className="mt-4 font-serif text-3xl leading-tight tracking-[-0.02em]">{title}</h3>
          <p className="mt-3 text-pretty text-[15px] leading-relaxed text-muted-foreground">{body}</p>
        </>
      );
    }
    
    export function RectExample() {
      return (
        <InkFrame className="max-w-md p-8">
          <Card eyebrow="Studio" title="For teams that ship weekly." body="Unlimited projects, shared plates, and a seat for everyone who reviews." />
        </InkFrame>
      );
    }
    
View source · on sheet 10

Parts list

ItemPart, as installed
1components/scrollfx/ink-frame.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewRect
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-frame.json
Title

Ink frame

scrollfx · Ink
Dwg no.
ink-frame
Sheet
10/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 11Open sheet
Storage used64%
Monthly events28%
  1. 1label
  2. 2value · 64
  3. 3showValue

Schedule of props

MarkPropTypeDefaultDescription
P1value*number——
P2maxnumber100—
P3variantInkProgressVariant'bar'—
P4labelstring—What the value is of, shown with it and read out with it.
P5showValuebooleantrueShow the value as a figure.
P6display'percent' | 'value''percent'Show the figure as a percentage of max (the default), or as the value itself.
P7prefixstring—Set before and after the figure; after a percentage, `%` unless you pass one.
P8suffixstring——
P9decimalsnumber——
P10sizenumber128The ring's or gauge's width and height, in px.
P11colorstring'currentColor'The ink's colour.
P12accentstring'#e0482a'The accent pen's colour: the fill, the band.
P13strokeWidthnumber1.1—
P14seednumber—Shapes the strokes; by default taken from the label.
P15triggerInkTrigger'scroll'`scroll`: drawn as it rises, done at mid-screen. `view`: played once as it comes into view.
P16durationnumber1600With `view`, the drawing's length in ms.
P17classNamestring''—

* required

Notes

  1. 1.
    A value plotted as it is reached: a bar hatched in to the value, a ring with an accent band, or a ticked gauge with a needle. role="progressbar".
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Bar. An outline and a scale, then the fill hatched in from the left, stopping at the value.
  2. 5.
    Usage, as drawn:
    import { InkProgress } from '@/components/scrollfx/ink-progress';
    
    export function BarExample() {
      return (
        <div className="max-w-xl space-y-10">
          <InkProgress value={64} label="Storage used" />
          <InkProgress value={28} label="Monthly events" seed={5} />
        </div>
      );
    }
    
View source · on sheet 11

Parts list

ItemPart, as installed
1components/scrollfx/ink-progress.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewBar
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-progress.json
Title

Ink progress

scrollfx · Ink
Dwg no.
ink-progress
Sheet
11/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 12Open sheet
Approved — Quality checked · Batch 07 · 2026 ·
  1. 1rim · round the band
  2. 2children · the word
  3. 3rotate · −8°
  4. size · 148

Schedule of props

MarkPropTypeDefaultDescription
P1children*ReactNode—The words in the middle: keep them short.
P2variantInkStampVariant'circle'—
P3rimstring—A line of text round the rim, for `circle` and `seal`. It is spaced to go once round.
P4sizenumber148The width and height of `circle` and `seal`, in px.
P5rotatenumber-8How far the stamp is turned, in degrees.
P6accentstring'#e0482a'The stamp's ink.
P7strokeWidthnumber1.4—
P8seednumber——
P9triggerInkTrigger'scroll'`scroll`: drawn as it rises, done at mid-screen. `view`: played once as it comes into view.
P10durationnumber1400With `view`, the drawing's length in ms.
P11classNamestring''—

* required

Notes

  1. 1.
    A short word or two inside a plotted stamp: a circle with text round its rim, a rectangle ruled twice, or a scalloped seal, set a little askew.
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Circle. Two rings round the rim and one inside, with a line of text set round the band between them.
  2. 5.
    Usage, as drawn:
    import { InkStamp } from '@/components/scrollfx/ink-stamp';
    
    export function CircleExample() {
      return (
        <InkStamp rim="Quality checked · Batch 07 · 2026 ·">Approved</InkStamp>
      );
    }
    
View source · on sheet 12

Parts list

ItemPart, as installed
1components/scrollfx/ink-stamp.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewCircle
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-stamp.json
Title

Ink stamp

scrollfx · Ink
Dwg no.
ink-stamp
Sheet
12/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 13Open sheet
“We stopped animating our pages. Now the pen does it, and only when someone is reading.”

Ada Marlow · Founder, Okkara

  1. 1name · Hershey script
  2. 2flourish

Schedule of props

MarkPropTypeDefaultDescription
P1namestring'Ada Marlow'The name to write. Letters outside ASCII lose their accents; others are left out.
P2sizenumber56The size of the writing: px to the em.
P3slantnumber0.2How far the writing leans: x moved right per unit up.
P4flourishbooleantrueUnderline the name with a flourish in the accent pen.
P5pathsstring[]—Your own signature instead: SVG path data, one string per stroke, in the order they were written, inside `viewBox`. Each stroke takes one beat.
P6viewBoxstring—The box `paths` are drawn in, as an SVG viewBox ("0 0 w h").
P7colorstring'currentColor'The ink's colour.
P8accentstring'#e0482a'The flourish's colour.
P9strokeWidthnumber1.7—
P10seednumber1Shapes the flourish.
P11triggerInkTrigger'scroll'`scroll`: written as it rises, done at mid-screen. `view`: written once as it comes into view.
P12durationnumber2600With `view`, how long the writing takes, in ms.
P13classNamestring''—

Notes

  1. 1.
    A name written stroke by stroke at one steady speed in Hershey's single-stroke script, underlined with a flourish; or your own signature as SVG paths.
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Name. A name in Hershey’s script, written in order at one steady speed, then underlined with a flourish.
  2. 5.
    Usage, as drawn:
    import { InkSignature } from '@/components/scrollfx/ink-signature';
    
    export function NameExample() {
      return (
        <figure className="max-w-md">
          <blockquote className="font-serif text-2xl leading-snug tracking-[-0.015em]">“We stopped animating our pages. Now the pen does it, and only when someone is reading.”</blockquote>
          <figcaption className="mt-6">
            <InkSignature name="Ada Marlow" />
            <p className="mt-2 font-mono text-[11px] uppercase tracking-[0.2em] text-muted-foreground">Ada Marlow · Founder, Okkara</p>
          </figcaption>
        </figure>
      );
    }
    
View source · on sheet 13

Parts list

ItemPart, as installed
1components/scrollfx/ink-signature.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewName
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-signature.json
Title

Ink signature

scrollfx · Ink
Dwg no.
ink-signature
Sheet
13/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT
Sh. 14Open sheet
start here
Get started
  1. 1from
  2. 2bend · 0.3
  3. width · 160
  4. height · 96

Schedule of props

MarkPropTypeDefaultDescription
P1variantInkArrowVariant'curved'—
P2widthnumber160The box the arrow is drawn in, in px.
P3heightnumber96—
P4from[number, number][0.06, 0.3]Where the arrow starts, as a share of the box (0 to 1 across, 0 to 1 down).
P5to[number, number][0.92, 0.74]Where its head is, likewise.
P6bendnumber0.3How far a curved or looped arrow bends to one side, as a share of its length; negative bends it the other way.
P7headnumber12The length of the head's barbs, in px.
P8accentstring'#e0482a'The pen's colour: the accent, unless you pass `currentColor` for ink.
P9strokeWidthnumber1.6—
P10seednumber1—
P11triggerInkTrigger'scroll'`scroll`: drawn as it rises, done at mid-screen. `view`: played once as it comes into view.
P12durationnumber1100With `view`, how long the arrow takes, in ms.
P13classNamestring''—

Notes

  1. 1.
    A hand-drawn arrow pointing at something: nearly straight, curved, or looped, with a head made in one stroke.
  2. 2.
    The words and content it marks stay in the server HTML. The marks are measured to them in the browser, and made again when the layout changes.
  3. 3.
    Tied to the scroll by default: the last stroke lands as the drawing reaches the middle of the screen. With trigger="view" it plays once as it comes into view instead. Reduced motion shows it drawn.
  1. 4.
    Detail A, Curved. A curve bending to one side, from a note to what it is about.
  2. 5.
    Usage, as drawn:
    import { InkArrow } from '@/components/scrollfx/ink-arrow';
    
    const Note = ({ children }: { children: React.ReactNode }) => <span className="font-serif text-xl italic tracking-[-0.01em] text-muted-foreground">{children}</span>;
    
    const Button = ({ children }: { children: React.ReactNode }) => (
      <span className="inline-flex h-11 items-center rounded-full bg-foreground px-6 text-[15px] font-medium text-background">{children}</span>
    );
    
    export function CurvedExample() {
      return (
        <div className="flex items-end gap-2">
          <div className="pb-20"><Note>start here</Note></div>
          <InkArrow className="mb-2" />
          <Button>Get started</Button>
        </div>
      );
    }
    
View source · on sheet 14

Parts list

ItemPart, as installed
1components/scrollfx/ink-arrow.tsxThe component
2lib/ink.tsThe pen hook the ink pieces share, and Hershey’s script
3lib/plotter.tsStroke geometry: hatching, sketched lines, scroll windows
4svg-scroll-draw ^2.29.0Dependency, from npm
ViewCurved
Pens1ink2vermilion
Installnpx shadcn@latest add
https://scrollfx-ui.vercel.app/r/ink-arrow.json
Title

Ink arrow

scrollfx · Ink
Dwg no.
ink-arrow
Sheet
14/14
Scale
1:1
Rev
2.29.0
Drawn by
svg-scroll-draw
Licence
MIT