# Paper Shaders ![mesh-gradient-shader](./docs/public/images/git-readme-picture.webp) ### Getting started ``` // 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 ``` ### Documentation [React documentation and interactive examples →](https://shaders.paper.design/) ### React example ```jsx import {MeshGradient, DotOrbit} from '@paper-design/shaders-react'; // these settings can be configured in code or designed in Paper ``` ### Goals: - Give designers a visual way to use common shaders in their designs - What you make is directly exportable as lightweight code that works in any codebase ### What it is: - Zero-dependency HTML canvas shaders that can be installed from npm or designed in Paper - To be used in websites to add texture as backgrounds or masked with shapes and text - Animated (or not, your choice) and highly customizable ### Values: - Very lightweight, maximum performance - Visual quality - Abstractions that are easy to play with - Wide browser and device support ### Framework support: - Vanilla JS ([@paper-design/shaders](https://www.npmjs.com/package/@paper-design/shaders)) - React JS ([@paper-design/shaders-react](https://www.npmjs.com/package/@paper-design/shaders-react)) - Vue and others: intent to accept community PRs in the future ## Release notes [View changelog →](./CHANGELOG.md) ## Building and publishing 1. Bump the version numbers as desired manually 2. Use `bun run build` on the top level of the monorepo to build each package 3. Use `bun 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. ## License and use ## License 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)