<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Bombadaa</title>
    <description>The latest articles on DEV Community by Bombadaa (@bombadaa).</description>
    <link>https://dev.to/bombadaa</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261172%2Fe59cb753-82b1-4de2-bfa7-f9e0bbfc7624.png</url>
      <title>DEV Community: Bombadaa</title>
      <link>https://dev.to/bombadaa</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/bombadaa"/>
    <language>en</language>
    <item>
      <title>I packed 33 WebGL shaders into one custom element (and a Mac wallpaper app)</title>
      <dc:creator>Bombadaa</dc:creator>
      <pubDate>Mon, 23 Nov 2026 18:21:17 +0000</pubDate>
      <link>https://dev.to/bombadaa/i-packed-33-webgl-shaders-into-one-custom-element-and-a-mac-wallpaper-app-430o</link>
      <guid>https://dev.to/bombadaa/i-packed-33-webgl-shaders-into-one-custom-element-and-a-mac-wallpaper-app-430o</guid>
      <description>&lt;p&gt;I'm a designer, and for the last two months I've been building Sula, a Mac app that renders the wallpaper and screen saver live with GPU shaders. Along the way the shaders got a small web runtime of their own, so I turned that into a free browser tool: &lt;a href="https://sula.ink/designer?utm_source=devto" rel="noopener noreferrer"&gt;Sula Designer&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;You pick one of 33 shaders, tune colors and motion, and copy the result as a live background for Webflow, Framer, plain HTML, React, Vue or Svelte. No account needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you paste
&lt;/h2&gt;

&lt;p&gt;For plain HTML it's one script tag and a custom element. The look sits inside as JSON:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;src&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://sula.ink/embed/v1/sula.js"&lt;/span&gt; &lt;span class="na"&gt;defer&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;sula-shader&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;script&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"application/json"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;the&lt;/span&gt; &lt;span class="n"&gt;look&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="nt"&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/sula-shader&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In React, Vue and Svelte you install the npm package &lt;a href="https://www.npmjs.com/package/@studio-treo/sula" rel="noopener noreferrer"&gt;@studio-treo/sula&lt;/a&gt; (MIT) and drop &lt;code&gt;&amp;lt;sula-shader look={JSON.stringify(look)} /&amp;gt;&lt;/code&gt; into a section.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things I cared about
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Size.&lt;/strong&gt; The 33 shader modules together are about 97 KB gzipped, less than one photo. Each look is a few lines of JSON.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pausing.&lt;/strong&gt; The element watches itself with an IntersectionObserver, so a background that scrolls out of view stops drawing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reduced motion.&lt;/strong&gt; With &lt;code&gt;prefers-reduced-motion: reduce&lt;/code&gt; it can hold still instead of animating.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;WebGL2&lt;/strong&gt;, with no framework dependency, so the same element works in a no-code embed and in a React app.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where it came from
&lt;/h2&gt;

&lt;p&gt;On the Mac the same shaders run as your desktop wallpaper and screen saver, with a Liquid Glass clock on the screen saver that bends the picture behind it. That app launches on December 8, and there's a &lt;a href="https://sula.ink/waitlist?utm_source=devto" rel="noopener noreferrer"&gt;waitlist&lt;/a&gt; if you want it early.&lt;/p&gt;

&lt;p&gt;If you try the embed in your stack and something breaks, tell me in the comments. I'd also like to see what you build with it.&lt;/p&gt;

</description>
      <category>webgl</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
