Docs/Fondos

Flowing Gradient

MIT

Liquid silk gradient with organic flowing color bands

Cargando shader…

Ajústalo

1
0.5
0

Instalación

Terminal
npx shadcn@latest add https://<tu-dominio>/r/shader-flowing-gradient.json

Crea components/bastard/ShaderFlowingGradient.tsx e instala shaders. Más opciones

Uso

Demo.tsx
1import ShaderFlowingGradient from '@/components/bastard/ShaderFlowingGradient';
2
3export default function Demo() {
4 return (
5 <ShaderFlowingGradient
6 colorA="#0a0015"
7 colorB="#6b17e6"
8 colorC="#ff4d6a"
9 colorD="#ff6b35"
10 colorSpace="oklch"
11 speed={1}
12 distortion={0.5}
13 seed={0}
14 />
15 );
16}

Props

PropTipoPor defectoDescripción
colorAstring"#0a0015"Color A
colorBstring"#6b17e6"Color B
colorCstring"#ff4d6a"Color C
colorDstring"#ff6b35"Color D
colorSpace'linear' | 'oklch' | 'oklab' | 'hsl' | 'hsv' | 'lch'"oklch"Color Space
speednumber1Speed
distortionnumber0.5Distortion
seednumber0Seed

Aquí aparecen las props ajustables. El componente acepta más: revisa el código fuente.

Créditos

Basado en Flowing Gradient · Shaders.com, adaptado para BSTRD UI.Licencia: MIT. Puedes usarlo, modificarlo y venderlo, conservando el aviso de copyright que va dentro del archivo.