jay sharma

Shader Sky

Shaders

About

WebGL sky for landing heroes: clear blue with drifting clouds in light, storm gray in dark, optional window-glass film.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Shader Sky to your project and fits it to your theme.

Code

How Shader Sky is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client"

import { ShaderSky } from "@/components/ui/shader-sky"

const settings = {
  colors: ["#2478C8", "#8ECBF2", "#F7FBFF", "#C5D8EC"],
  amount: 0.5,
  scale: 0.4,
  variation: 0.7,
  speed: 0.1,
  coverage: 0.5,
  intensity: 0.9,
  interactive: false,
  lightning: false,
  glass: false,
}

// Unchanged colors are left unset so the component picks its own light/dark palette.
function sameColors(a: string[], b: string[]) {
  return a.length === b.length && a.every((c, i) => c.toLowerCase() === b[i]!.toLowerCase())
}

export default function ShaderSkyDemo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props }

  return (
    <div className="flex min-h-[520px] w-full items-center justify-center bg-background p-4">
      <div className="relative aspect-[16/9] min-h-[360px] w-full max-w-5xl overflow-hidden rounded-xl border border-border bg-background">
        <ShaderSky
          className="absolute inset-0"
          colors={sameColors(s.colors, settings.colors) ? undefined : s.colors}
          amount={s.amount}
          scale={s.scale}
          variation={s.variation}
          speed={s.speed}
          coverage={s.coverage}
          intensity={s.intensity}
          interactive={s.interactive}
          lightning={s.lightning}
          glass={s.glass}
          glassSize={7}
        />
      </div>
    </div>
  )
}

More by jay sharma

View all
  • Live Orb

    Live Orb

    203
  • Chrome Button

    Chrome Button

    181
  • Frame Button

    Frame Button

    131
  • Highlight Button

    Highlight Button

    75
  • ASCII Fluid

    ASCII Fluid

    72
  • Motion Button

    Motion Button

    59
  • Brutal Button

    Brutal Button

    54
  • Grid Button

    Grid Button

    49

More in Shaders

View all
  • Glass Fold

    Glass Fold

    202
  • Wave

    Wave

    683
  • Neural Noise

    Neural Noise

    714
  • Paper design shader Background

    Paper design shader Background

    672
  • DitheredShaderBackground

    DitheredShaderBackground

    43
  • LightSpeed

    LightSpeed

    206
  • Dotted Veil

    Dotted Veil

    57
  • Stripe like gradient-shader

    Stripe like gradient-shader

    265