Component packs › Livery › Theme Export

Theme Export

Change a colour and the exported code updates line by line with a highlight; switch between CSS variables, Tailwind and JSON and copy.

Theme Export is an export tokens from Livery, a component pack with 8 components: Theme switcher components where every change repaints the page, not just the control. Price: $2 for the whole pack.

Built with: live code output, changed-line highlight, copy with tick.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Theme Export props

PropTypeDefaultDescription
accentstring
darkboolean
autoplayboolean
onCopy(code: string) => void

Methods on the ref

Use it in React

import ThemeExport from './ThemeExport';

<ThemeExport />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Livery

Good for: Theme and dark mode.