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

    354
  • Chrome Button

    Chrome Button

    184
  • Frame Button

    Frame Button

    133
  • Shader Metal

    Shader Metal

    88
  • Highlight Button

    Highlight Button

    81
  • ASCII Fluid

    ASCII Fluid

    76
  • Brutal Button

    Brutal Button

    64
  • Motion Button

    Motion Button

    61

More in Shaders

View all
  • Glass Fold

    Glass Fold

    279
  • Phosphor 30

    Phosphor 30

    293
  • Shader Animation

    Shader Animation

    3.7K
  • Wave

    Wave

    693
  • Black Hole

    Black Hole

    27
  • Shader Background

    Shader Background

    2K
  • Shader Lines

    Shader Lines

    2.3K
  • Liquid Glass Logo Reveal

    Liquid Glass Logo Reveal

    632