Skip to content

Dither sky

Night hero with drifting clouds in a dithered shader.

Usage

Usage
import { HeroDitherSky } from '@/components/blocks/hero-section-10'


<HeroDitherSky />


<HeroDitherSky
  brand="Glasshouse"
  eyebrow="Now in beta"
  headline={['Write slowly,', 'think clearly']}
  primaryAction={{ label: 'Try it free', href: '/signup' }}
  secondaryAction={{ label: 'Read the story', href: '/about' }}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/hero-section-10

Source

Props

Dither sky props
PropTypeDefaultDescription
brand / brandHrefstring= Nimbus / #Brand name and link next to the pixel-moon mark.
navLinks{ label: string; href: string }[]= Features, Journal, Pricing, ChangelogLinks in the centre of the nav. Collapses to a burger below md.
cta{ label: string; href: string }= Open NimbusWhite pill on the right of the nav.
eyebrowstring= undefinedOptional small line above the headline, with a twinkling pixel star. Hidden when unset.
headlinestring[]= ['Think above', 'the noise']One entry per headline line.
descriptionstring= A calm place to write, plan and focus…Supporting copy under the headline.
primaryAction{ label: string; href: string }= Start writing freeWhite pill with an arrow.
secondaryAction{ label: string; href: string }= Take the tourOutlined pill next to the primary action.
colors{ dark?: string; light?: string; highlight?: string; accent?: string }= { dark: '#0B1224', light: '#9AA3BD', highlight: '#EDEFF5', accent: '#2B7FFF' }Dither palette: dark sky cells, mid-tone cloud cells near the copy, bright cloud cells in open sky and a blue tint mixed into the dark cells in the cloud shadows.
pixelSizenumber= 3Size of one dither dot in CSS pixels, scaled by the device pixel ratio.
contrastnumber= 1.8Tone contrast applied before dithering. Higher gives more solid clouds.
brightnessnumber= 0Tone offset applied before dithering, from -1 to 1.
speednumber= 1Multiplier for how fast the clouds drift. 0 freezes them.
classNamestring= —Additional classes for the section.
styleCSSProperties= —Override the --pp-* theme and type variables inline.