Blog Post 24 - Dark reading modePro
Article that renders in a dark theme by default with a local light/dark toggle in the header, using only semantic tokens.
About Blog Post 24
Article that renders in a dark theme by default with a local light/dark toggle in the header, using only semantic tokens.
Blog Post 24 is a pro blog post block for React, built on shadcn/ui and Tailwind CSS. It ships as 97 lines of TypeScript you own: every piece of copy is a prop with a sensible default, so you can drop it in and replace the content without touching the layout.
- article
- dark-mode
- theme
- toggle
Installation
- Add the Chocolate UI registry to your
components.json(see the installation guide). - Run the shadcn CLI:
npx shadcn@latest add @chocolate/blog-post-24Dependencies installed automatically: lucide-react.
Uses: badge, button, reveal, utils.
Usage
import BlogPost24 from "@/components/blocks/blog-post-24"
export default function Page() {
return <BlogPost24 />
}