Stepkit/Background paths
Motion & effects · Adapted

Background paths

A flowing path field adapted from KokonutUI with a readable editorial layer and bounded motion.

Download ZIP
Live preview

Try it in context

Customize preview
Source delivery

Usage & source

v0.3.0
React
"use client";

import type { CSSProperties } from "react";
import { BackgroundPaths } from "./components/stepkit/BackgroundPaths";
import "./components/stepkit/styles.css";
import "./components/stepkit/adapted-showcase.css";

const themeStyle = {"--stepkit-bg":"#111217","--stepkit-surface":"#1b1c24","--stepkit-surface-muted":"#22232d","--stepkit-fg":"#f6f5fb","--stepkit-muted":"#a4a6b4","--stepkit-border":"#343641","--stepkit-border-strong":"#565866","--stepkit-code":"#20212a","--stepkit-shadow":"0 24px 70px rgba(0, 0, 0, .34)","--stepkit-accent":"#6950df","--stepkit-accent-strong":"#5137c7","--stepkit-accent-soft":"#302760","--stepkit-accent-on-soft":"#c8bcff","--stepkit-accent-text":"#ffffff","--stepkit-error":"#ff9ba9","--stepkit-placeholder":"#b8bac6","--stepkit-radius":"16px","--stepkit-space":"16px","--stepkit-control-height":"44px","--stepkit-font-sans":"Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif"} as CSSProperties;

export default function Example() {
  return (
    <div className="stepkit-theme" data-stepkit-preset="modern" style={themeStyle}>
      <BackgroundPaths
      title={"Make room for a moving idea"}
      description={"Flowing paths add depth without taking attention away from the work."}
      paused={false}
      />
    </div>
  );
}

Dependencies

[email protected]
[email protected]
Add to your project

Install

Use the registry command or download the complete source archive.

npx [email protected] add https://vstepanov.com/stepkit/r/background-paths.json
Assistant handoff

Integration prompt

Prompt
Install Stepkit Background paths 0.3.0 from the registry and preserve the included MIT notice.
npx [email protected] add https://vstepanov.com/stepkit/v0.3.0/r/background-paths.json
Install the tested runtime dependencies exactly: npm install [email protected] [email protected]
Keep the component source, shared styles, NOTICE.md, and provenance files together. Apply the theme tokens on a wrapper rather than passing theme keys as component props.

Usage:
```tsx
"use client";

import type { CSSProperties } from "react";
import { BackgroundPaths } from "./components/stepkit/BackgroundPaths";
import "./components/stepkit/styles.css";
import "./components/stepkit/adapted-showcase.css";

const themeStyle = {"--stepkit-bg":"#f7f7f8","--stepkit-surface":"#ffffff","--stepkit-surface-muted":"#f0f0f3","--stepkit-fg":"#17181c","--stepkit-muted":"#626572","--stepkit-border":"#e3e4e9","--stepkit-border-strong":"#c8cad3","--stepkit-code":"#f1f1f4","--stepkit-shadow":"0 20px 60px rgba(31, 26, 64, .10)","--stepkit-accent":"#6950df","--stepkit-accent-strong":"#5137c7","--stepkit-accent-soft":"#eeeafd","--stepkit-accent-on-soft":"#5137c7","--stepkit-accent-text":"#ffffff","--stepkit-error":"#b43145","--stepkit-placeholder":"#626572","--stepkit-radius":"16px","--stepkit-space":"16px","--stepkit-control-height":"44px","--stepkit-font-sans":"Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", sans-serif"} as CSSProperties;

export default function Example() {
  return (
    <div className="stepkit-theme" data-stepkit-preset="modern" style={themeStyle}>
      <BackgroundPaths
      title={"Make room for a moving idea"}
      description={"Flowing paths add depth without taking attention away from the work."}
      paused={false}
      />
    </div>
  );
}
```

Selected bounded settings: {"title":"Make room for a moving idea","description":"Flowing paths add depth without taking attention away from the work.","paused":false}.
Selected theme: {"mode":"light","accent":"violet","radius":"soft","density":"comfortable","preset":"modern"}.
API

Props

NameTypeDefaultDescription
titlestring"Make room for a moving idea"Accessible section heading.
descriptionstring"Flowing paths add depth without taking attention away from the work."Supporting copy.
pausedbooleanfalseFreezes path motion.
classNamestring""Additional class name.
Quality

Accessibility & limits

  • The SVG path field is decorative and paired with a labelled section.
  • Paused and reduced-motion states remove path animation.
  • The content remains readable over the complete field.

Limitations

  • The component owns its decorative SVG field; replace it with a product-specific background when needed.
Source record

Provenance

Adapted source under the MIT licence.

Upstream: KokonutUI Background Paths

Required notices: NOTICE.md, PROVENANCE-stepkit-background-paths.md, NOTICE-KOKONUTUI.md