Zero-dependency canvas shaders that can be installed from npm or designed in Paper
3,439
stars
382
commits
TypeScript
primary language
Sep 4, 2026
updated

// React
npm i @paper-design/shaders-react
// vanilla
npm i @paper-design/shaders
// Please pin your dependency – we will ship breaking changes under 0.0.x versioning
React documentation and interactive examples →
import {MeshGradient, DotOrbit} from '@paper-design/shaders-react';
<MeshGradient
colors={['#5100ff', '#00ff80', '#ffcc00', '#ea00ff']}
distortion={1}
swirl={0.8}
speed={0.2}
style={{width: 200, height: 200}}
/>
<DotOrbit
colors={['#d2822d', '#0c3b7e', '#b31a57', '#37a066']}
colorBack={'#000000'}
scale={0.3}
style={{width: 200, height: 200}}
/>
// these settings can be configured in code or designed in Paper
bun run build on the top level of the monorepo to build each packagebun run publish-all to publish all (or bun run publish-all-test to do a dry run). You can do this even if you just bumped one package version. The others will fail to publish and continue.Paper Shaders is licensed under Apache 2.0.
You can use Paper Shaders in commercial websites, apps, games, videos, prototypes, internal tools, and other end products without visible attribution.
If you redistribute Paper Shaders code as part of another shader library, plugin, or tool, please preserve the included LICENSE and NOTICE files. Visible credit such as “Powered by Paper Shaders” is also appreciated and helps us continue investing in this library.
Copyright Lost Coast Labs, Inc. (http://paper.design)
TypeScript
99.0%
JavaScript
1.0%
Zero-dependency canvas shaders that can be installed from npm or designed in Paper
3,439
stars
382
commits
TypeScript
primary language
Sep 4, 2026
updated

// React
npm i @paper-design/shaders-react
// vanilla
npm i @paper-design/shaders
// Please pin your dependency – we will ship breaking changes under 0.0.x versioning
React documentation and interactive examples →
import {MeshGradient, DotOrbit} from '@paper-design/shaders-react';
<MeshGradient
colors={['#5100ff', '#00ff80', '#ffcc00', '#ea00ff']}
distortion={1}
swirl={0.8}
speed={0.2}
style={{width: 200, height: 200}}
/>
<DotOrbit
colors={['#d2822d', '#0c3b7e', '#b31a57', '#37a066']}
colorBack={'#000000'}
scale={0.3}
style={{width: 200, height: 200}}
/>
// these settings can be configured in code or designed in Paper
bun run build on the top level of the monorepo to build each packagebun run publish-all to publish all (or bun run publish-all-test to do a dry run). You can do this even if you just bumped one package version. The others will fail to publish and continue.Paper Shaders is licensed under Apache 2.0.
You can use Paper Shaders in commercial websites, apps, games, videos, prototypes, internal tools, and other end products without visible attribution.
If you redistribute Paper Shaders code as part of another shader library, plugin, or tool, please preserve the included LICENSE and NOTICE files. Visible credit such as “Powered by Paper Shaders” is also appreciated and helps us continue investing in this library.
Copyright Lost Coast Labs, Inc. (http://paper.design)
TypeScript
99.0%
JavaScript
1.0%