254
An owl on a branch that follows your cursor and tilts its head at you. Wide awake under the moon in dark mode, heavy-lidded and snoozing in light mode.
akaowl·dark mode·theme
Run this in any project set up for the shadcn CLI. It copies the Night Owl source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/night-owl.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { NightOwl } from "@/components/night-owl";
export default function Page() {
return <NightOwl />;
}A free React illustration in the Characters collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Night Owl source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| name | string | "Ollie" |
| hue | NightOwlHue | "violet" |
| mode | NightOwlMode | "auto" |
| awakeTitle | string | "Working late?" |
| awakeDescription | string | "The night shift is better with company." |
| sleepyTitle | string | — |
| sleepyDescription | string | "Owls nap through the day. Switch to dark mode to wake him." |
| onHoot | () => void | — |
| className | string | — |