[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"github-stars":3,"guide-nav":5,"doc-\u002Fdocs\u002Fguide":129},{"stars":4},6044,[6,11,15,19,23,27,31,35,39,43,47,51,55,59,63,67,72,76,80,84,88,93,97,101,105,109,113,117,121,125],{"path":7,"title":8,"description":9,"category":10},"\u002Fdocs\u002Fguide","Getting started","Shaders is a library of GPU effect components for Vue, React, Svelte, Solid, JavaScript and Framer, with a design editor for building with them.","code",{"path":12,"title":13,"description":14,"category":10},"\u002Fdocs\u002Fguide\u002Fquickstart","Quickstart","Install Shaders, render your first effect, and drive a prop from state.",{"path":16,"title":17,"description":18,"category":10},"\u002Fdocs\u002Fguide\u002Fcomposing-effects","Composing effects","Stack components as layers and nest them to control which layers an effect touches.",{"path":20,"title":21,"description":22,"category":10},"\u002Fdocs\u002Fguide\u002Fblending-masking","Blending and masking","Control how a layer mixes with the layers below it, and reveal one layer through another.",{"path":24,"title":25,"description":26,"category":10},"\u002Fdocs\u002Fguide\u002Fprops-reactivity","Props and reactivity","Bind props to your framework's state so effects update when it changes, and animate props with an animation library.",{"path":28,"title":29,"description":30,"category":10},"\u002Fdocs\u002Fguide\u002Fdynamic-props","Dynamic props","Drive any numeric or position prop from time, the cursor, or another layer, without writing animation code.",{"path":32,"title":33,"description":34,"category":10},"\u002Fdocs\u002Fguide\u002Flayout-positioning","Layout and positioning","Size and place a shader in your page with CSS, as a background, a fill, or an inline block.",{"path":36,"title":37,"description":38,"category":10},"\u002Fdocs\u002Fguide\u002Fsizing-and-units","Sizing and units","Size and place layers in CSS units (px, %, vw, rem, and canvas units) that stay correct as the canvas and window resize.",{"path":40,"title":41,"description":42,"category":10},"\u002Fdocs\u002Fguide\u002Ftransforms","Transforms","Position, size, and rotate any layer inside the canvas with a bounding box, in any CSS unit.",{"path":44,"title":45,"description":46,"category":10},"\u002Fdocs\u002Fguide\u002Fshape-effects","Shape effects","Pick the 2D, 3D or custom SVG shape that Glass, Neon, Emboss and other shape effects draw inside.",{"path":48,"title":49,"description":50,"category":10},"\u002Fdocs\u002Fguide\u002Fcolor-space","Color space","Match colors to your design tool with the output color space, and keep bright layers from clipping with tone mapping.",{"path":52,"title":53,"description":54,"category":10},"\u002Fdocs\u002Fguide\u002Fhooks-events","Hooks and events","Run code when an effect is ready to show, and show a fallback when the GPU can't run it.",{"path":56,"title":57,"description":58,"category":10},"\u002Fdocs\u002Fguide\u002Fperformance","Performance","Learn what makes an effect expensive on the GPU and how to keep it inside the frame budget.",{"path":60,"title":61,"description":62,"category":10},"\u002Fdocs\u002Fguide\u002Fcustom-shaders","Custom components","Write your own component in TypeScript, use it like any component in the library, and write WGSL by hand when you need to.",{"path":64,"title":65,"description":66,"category":10},"\u002Fdocs\u002Fguide\u002Ftelemetry","Telemetry","The `\u003CShader>` component occasionally sends an anonymous performance report to help us improve the engine over time.",{"path":68,"title":69,"description":70,"category":71},"\u002Fdocs\u002Fguide\u002Fmcp","Shaders MCP","Connect your AI coding agent to Shaders so it can find, install and edit effects in your codebase.","workflows",{"path":73,"title":74,"description":75,"category":71},"\u002Fdocs\u002Fguide\u002Fcli","Shaders CLI","Install your own shaders and Pro shaders into your codebase as component files, and keep them in sync with the design editor.",{"path":77,"title":78,"description":79,"category":71},"\u002Fdocs\u002Fguide\u002Fagent-skill","Agent skill","Give your coding agent a skill that teaches it to build with Shaders components, the CLI and Pro shaders.",{"path":81,"title":82,"description":83,"category":10},"\u002Fdocs\u002Fguide\u002Fvideo-rendering","Rendering to video","Turn a shader effect into a video file, from the design editor or from a frame-by-frame pipeline such as Remotion, Hyperframes or Puppeteer.",{"path":85,"title":86,"description":87,"category":10},"\u002Fdocs\u002Fguide\u002Fssr","Server rendering","Render Shaders in Next.js, Nuxt, SvelteKit, SolidStart and other SSR apps by keeping each shader on the client.",{"path":89,"title":90,"description":91,"category":92},"\u002Fdocs\u002Fguide\u002Fquick-tour-of-the-design-editor","Quick tour of the design editor","A short walkthrough of the full Shaders workflow, from designing on the infinite canvas to exporting code.","editor",{"path":94,"title":95,"description":96,"category":92},"\u002Fdocs\u002Fguide\u002Fintro-to-the-interface","Intro to the interface","A tour of the design editor interface: the canvas, layers, the Properties panel, and the ways to share and export.",{"path":98,"title":99,"description":100,"category":92},"\u002Fdocs\u002Fguide\u002Fcomposing-your-first-shader-effect","Composing your first shader effect","Building a first shader effect in the design editor by stacking and nesting components as layers.",{"path":102,"title":103,"description":104,"category":92},"\u002Fdocs\u002Fguide\u002Fmasking-and-blending","Masking and blending","How blend modes and masks combine components in the design editor.",{"path":106,"title":107,"description":108,"category":92},"\u002Fdocs\u002Fguide\u002Fdynamic-prop-mapping","Dynamic prop mapping","Turning static props into dynamic ones in the design editor: mapping one layer's output into another's prop, following the cursor, or animating automatically.",{"path":110,"title":111,"description":112,"category":92},"\u002Fdocs\u002Fguide\u002Fcustom-media-and-transformations","Custom media and transformations","Uploading images, videos, and SVG files to the media gallery, adding them to a composition, and placing them with transformations.",{"path":114,"title":115,"description":116,"category":92},"\u002Fdocs\u002Fguide\u002Finstalling-a-shader-via-mcp","Installing a shader via MCP","Installing a shader from the design editor into a hero section with the Shaders MCP.",{"path":118,"title":119,"description":120,"category":92},"\u002Fdocs\u002Fguide\u002Fexploring-shape-effects","Exploring shape effects","Applying shape effects such as liquid glass, liquid metal, and glowing edges to built-in shapes and your own SVG.",{"path":122,"title":123,"description":124,"category":92},"\u002Fdocs\u002Fguide\u002Fglass-component-spotlight","Component spotlight: Glass","A short look at the Glass component and the liquid-glass look it creates.",{"path":126,"title":127,"description":128,"category":92},"\u002Fdocs\u002Fguide\u002Fdigital-looks-component-spotlight","Component spotlight: Digital looks","A look at the digital stylization components for glitchy, futuristic, or technical effects.",{"id":130,"title":8,"body":131,"category":10,"description":9,"extension":630,"icon":631,"meta":632,"navigation":633,"path":7,"seo":634,"stem":635,"__hash__":636},"guide\u002Fdocs\u002Fguide\u002F00.index.md",{"type":132,"value":133,"toc":621},"minimark",[134,138,142,146,149,154,163,203,207,218,456,469,473,476,528,532,542,546,549,553,556,588,596,600,617],[135,136,8],"h1",{"id":137},"getting-started",[139,140,141],"p",{},"Shaders is a library of GPU effect components for Vue, React, Svelte, Solid, JavaScript and Framer, with a design editor for building with them. You compose effects the way you compose UI, and they render live in the browser on WebGPU.",[143,144],"shader-demo",{":preset":145},"{\"components\":[{\"type\":\"SolidColor\",\"props\":{\"boundingBox\":{\"x\":{\"unit\":\"uv\",\"value\":0},\"y\":{\"unit\":\"uv\",\"value\":0},\"width\":{\"unit\":\"uv\",\"value\":1},\"height\":{\"unit\":\"uv\",\"value\":1},\"origin\":\"top-left\",\"rotation\":0},\"color\":\"#0f0f12\"}},{\"type\":\"Text\",\"props\":{\"center\":{\"x\":0.54,\"y\":0.77},\"fontFamily\":\"Geist\",\"fontSize\":0.39,\"fontWeight\":500,\"letterSpacing\":-0.045,\"text\":\"welcome\"}},{\"type\":\"LightEdge\",\"props\":{\"bloom\":0.52,\"center\":{\"x\":0.22,\"y\":0.36},\"intensity\":1,\"pulse\":0.34,\"scale\":1.6111,\"shape\":{\"type\":\"metaballs3D\",\"ballRadius\":0.16,\"spread\":0.2,\"blend\":0.12,\"speed\":1,\"rotX\":0,\"rotY\":0,\"rotZ\":0},\"shapeType\":\"metaballs3D\",\"softness\":1,\"spots\":4,\"spotSize\":0.43,\"thickness\":0.26}}]}",[139,147,148],{},"You don't need to know WGSL, GLSL, or graphics programming. If you can lay out a page in CSS or stack layers in Figma, you have the model you need.",[150,151,153],"h2",{"id":152},"what-you-can-make","What you can make",[139,155,156,157,162],{},"The ",[158,159,161],"a",{"href":160},"\u002Fdocs\u002Fcomponents","component library"," has nearly 200 components:",[164,165,166,174,179,185,191,197],"ul",{},[167,168,169,173],"li",{},[170,171,172],"strong",{},"Textures",": gradients, noise, and patterns for backgrounds.",[167,175,176,178],{},[170,177,45],{},": glass, neon and chrome inside a 2D or 3D shape, including your own SVG.",[167,180,181,184],{},[170,182,183],{},"Distortions",": warps, ripples, and refraction.",[167,186,187,190],{},[170,188,189],{},"Stylize",": halftone, ASCII, and dithering for images and video.",[167,192,193,196],{},[170,194,195],{},"Interactive",": effects that follow the cursor.",[167,198,199,202],{},[170,200,201],{},"Adjustments, blurs, and transitions"," for any layer.",[150,204,206],{"id":205},"building-an-effect","Building an effect",[139,208,209,210,213,214,217],{},"An effect is a ",[10,211,212],{},"\u003CShader>"," with components inside it. The children stack like layers in Figma: each one is drawn on top of the ones before it, and an effect such as ",[10,215,216],{},"\u003CGlassTiles>"," bends everything below it:",[219,220,222,300,354,406],"code-group",{":tabs":221},"[\"Vue\", \"React\", \"Svelte\", \"Solid\"]",[223,224,229],"pre",{"className":225,"code":226,"language":227,"meta":228,"style":228},"language-vue-html shiki shiki-themes github-dark","\u003CShader>\n  \u003CLinearGradient \u002F>\n  \u003CCircle color=\"#ff0088\" \u002F>\n  \u003CGlassTiles \u002F>\n\u003C\u002FShader>\n","vue-html","",[10,230,231,247,259,280,290],{"__ignoreMap":228},[232,233,236,240,244],"span",{"class":234,"line":235},"line",1,[232,237,239],{"class":238},"s95oV","\u003C",[232,241,243],{"class":242},"s4JwU","Shader",[232,245,246],{"class":238},">\n",[232,248,250,253,256],{"class":234,"line":249},2,[232,251,252],{"class":238},"  \u003C",[232,254,255],{"class":242},"LinearGradient",[232,257,258],{"class":238}," \u002F>\n",[232,260,262,264,267,271,274,278],{"class":234,"line":261},3,[232,263,252],{"class":238},[232,265,266],{"class":242},"Circle",[232,268,270],{"class":269},"svObZ"," color",[232,272,273],{"class":238},"=",[232,275,277],{"class":276},"sU2Wk","\"#ff0088\"",[232,279,258],{"class":238},[232,281,283,285,288],{"class":234,"line":282},4,[232,284,252],{"class":238},[232,286,287],{"class":242},"GlassTiles",[232,289,258],{"class":238},[232,291,293,296,298],{"class":234,"line":292},5,[232,294,295],{"class":238},"\u003C\u002F",[232,297,243],{"class":242},[232,299,246],{"class":238},[223,301,304],{"className":302,"code":226,"language":303,"meta":228,"style":228},"language-jsx shiki shiki-themes github-dark","jsx",[10,305,306,315,323,338,346],{"__ignoreMap":228},[232,307,308,310,313],{"class":234,"line":235},[232,309,239],{"class":238},[232,311,243],{"class":312},"sDLfK",[232,314,246],{"class":238},[232,316,317,319,321],{"class":234,"line":249},[232,318,252],{"class":238},[232,320,255],{"class":312},[232,322,258],{"class":238},[232,324,325,327,329,331,334,336],{"class":234,"line":261},[232,326,252],{"class":238},[232,328,266],{"class":312},[232,330,270],{"class":269},[232,332,273],{"class":333},"snl16",[232,335,277],{"class":276},[232,337,258],{"class":238},[232,339,340,342,344],{"class":234,"line":282},[232,341,252],{"class":238},[232,343,287],{"class":312},[232,345,258],{"class":238},[232,347,348,350,352],{"class":234,"line":292},[232,349,295],{"class":238},[232,351,243],{"class":312},[232,353,246],{"class":238},[223,355,358],{"className":356,"code":226,"language":357,"meta":228,"style":228},"language-tsx shiki shiki-themes github-dark","tsx",[10,359,360,368,376,390,398],{"__ignoreMap":228},[232,361,362,364,366],{"class":234,"line":235},[232,363,239],{"class":238},[232,365,243],{"class":312},[232,367,246],{"class":238},[232,369,370,372,374],{"class":234,"line":249},[232,371,252],{"class":238},[232,373,255],{"class":312},[232,375,258],{"class":238},[232,377,378,380,382,384,386,388],{"class":234,"line":261},[232,379,252],{"class":238},[232,381,266],{"class":312},[232,383,270],{"class":269},[232,385,273],{"class":333},[232,387,277],{"class":276},[232,389,258],{"class":238},[232,391,392,394,396],{"class":234,"line":282},[232,393,252],{"class":238},[232,395,287],{"class":312},[232,397,258],{"class":238},[232,399,400,402,404],{"class":234,"line":292},[232,401,295],{"class":238},[232,403,243],{"class":312},[232,405,246],{"class":238},[223,407,408],{"className":356,"code":226,"language":357,"meta":228,"style":228},[10,409,410,418,426,440,448],{"__ignoreMap":228},[232,411,412,414,416],{"class":234,"line":235},[232,413,239],{"class":238},[232,415,243],{"class":312},[232,417,246],{"class":238},[232,419,420,422,424],{"class":234,"line":249},[232,421,252],{"class":238},[232,423,255],{"class":312},[232,425,258],{"class":238},[232,427,428,430,432,434,436,438],{"class":234,"line":261},[232,429,252],{"class":238},[232,431,266],{"class":312},[232,433,270],{"class":269},[232,435,273],{"class":333},[232,437,277],{"class":276},[232,439,258],{"class":238},[232,441,442,444,446],{"class":234,"line":282},[232,443,252],{"class":238},[232,445,287],{"class":312},[232,447,258],{"class":238},[232,449,450,452,454],{"class":234,"line":292},[232,451,295],{"class":238},[232,453,243],{"class":312},[232,455,246],{"class":238},[139,457,458,459,461,462,465,466,468],{},"However many layers you add, a ",[10,460,212],{}," renders to one ",[10,463,464],{},"\u003Ccanvas>",". Props bind to your framework's state, and most update on the next frame without recompiling. ",[158,467,17],{"href":16}," covers nesting, blending and masking.",[150,470,472],{"id":471},"choosing-how-to-work","Choosing how to work",[139,474,475],{},"Every route ends in the same components in your codebase.",[164,477,478,484,498,507,516],{},[167,479,480,483],{},[170,481,482],{},"Design editor:"," build an effect visually with sliders, color pickers and live preview, then export it as code for your framework.",[167,485,486,489,490,493,494,497],{},[170,487,488],{},"Code:"," install the ",[10,491,492],{},"shaders"," package and write components directly. Start with the ",[158,495,496],{"href":12},"quickstart",".",[167,499,500,503,504,506],{},[170,501,502],{},"AI agent:"," connect Claude Code, Cursor, or another agent through the ",[158,505,69],{"href":68}," to have it install and edit effects for you.",[167,508,509,512,513,515],{},[170,510,511],{},"CLI:"," the ",[158,514,74],{"href":73}," installs shaders into your project and keeps them in sync with the editor.",[167,517,518,512,521,527],{},[170,519,520],{},"Framer:",[158,522,526],{"href":523,"rel":524},"https:\u002F\u002Fshaders.com\u002Fframer",[525],"nofollow","Shaders plugin for Framer"," puts your effects and the Pro shader library on the Framer canvas, with no npm or code.",[150,529,531],{"id":530},"writing-your-own-components","Writing your own components",[139,533,534,536,537,541],{},[158,535,61],{"href":60}," are defined in TypeScript and work like any built-in. Build them from ",[158,538,540],{"href":539},"\u002Fdocs\u002Fprimitives","primitives"," (small pieces such as noise, lights and warps) or write the pixel math in WGSL. Primitives are experimental and may change between releases.",[150,543,545],{"id":544},"browser-support","Browser support",[139,547,548],{},"Shaders runs on WebGPU, the emerging web standard for GPU graphics. On a device without WebGPU, the canvas stays transparent: whatever sits behind it shows through, and the rest of your page works as normal.",[150,550,552],{"id":551},"what-is-shaders-pro","What is Shaders Pro",[139,554,555],{},"The engine and every component are open source under the MIT license. The design editor is free to use, including projects and code export, but isn't open source. Shaders Pro adds:",[164,557,558,567,576,582],{},[167,559,560,566],{},[170,561,562],{},[158,563,565],{"href":564},"\u002Fpro#browse","Shader library",": pro-grade, finished effects you open in the editor or install into your project, then adjust. Collections group shaders that share a style.",[167,568,569,575],{},[170,570,571],{},[158,572,574],{"href":573},"\u002Fpro#sections","Sections",": complete website sections (heroes, feature rows, pricing, footers) with the shader already wired into the layout.",[167,577,578,581],{},[170,579,580],{},"Unlimited version history"," in the design editor.",[167,583,584,587],{},[170,585,586],{},"Library access in the CLI and MCP",": both tools are free, and Pro lets you install library shaders and sections through them.",[139,589,590,591,595],{},"See ",[158,592,594],{"href":593},"\u002Fpro#pricing","pricing"," for plans.",[150,597,599],{"id":598},"next-steps","Next steps",[164,601,602,607,612],{},[167,603,604,606],{},[158,605,13],{"href":12},": install the package and render your first effect.",[167,608,609,611],{},[158,610,17],{"href":16},": how layers stack, nest, and blend.",[167,613,614,616],{},[158,615,57],{"href":56},": what's cheap, what's expensive, and how to stay at 60fps.",[618,619,620],"style",{},"html pre.shiki code .s95oV, html code.shiki .s95oV{--shiki-default:#E1E4E8}html pre.shiki code .s4JwU, html code.shiki .s4JwU{--shiki-default:#85E89D}html pre.shiki code .svObZ, html code.shiki .svObZ{--shiki-default:#B392F0}html pre.shiki code .sU2Wk, html code.shiki .sU2Wk{--shiki-default:#9ECBFF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .sDLfK, html code.shiki .sDLfK{--shiki-default:#79B8FF}html pre.shiki code .snl16, html code.shiki .snl16{--shiki-default:#F97583}",{"title":228,"searchDepth":249,"depth":249,"links":622},[623,624,625,626,627,628,629],{"id":152,"depth":249,"text":153},{"id":205,"depth":249,"text":206},{"id":471,"depth":249,"text":472},{"id":530,"depth":249,"text":531},{"id":544,"depth":249,"text":545},{"id":551,"depth":249,"text":552},{"id":598,"depth":249,"text":599},"md","hand-wave",{},true,{"title":8,"description":9},"docs\u002Fguide\u002F00.index","eDVIfZGqr7pU7d8ZOowfj_hX7sEMTiUL5-uUgYKkyiA"]