A helper module for creating themes for Inkdrop.
You can install the @inkdropapp/theme-dev-helpers in your theme project:
bun i -D @inkdropapp/theme-dev-helpersIt extracts computed values of theme-related CSS variables from CSS files, and outputs to the specified path.
generate-palette [options] <theme-name>You can specify the following options:
-a, --appearance <light/dark>: Force the UI appearance ("light" or "dark")-o, --output: The file path where the extracted variables will be saved (default:./palette.json).
If your theme package name doesn't include 'dark' but it is a dark mode:
generate-palette -a darkIt provides a simple UI to preview your theme with hot-reloading.
dev-serverDependencies are managed with pnpm, and Bun is the runtime used to run the CLIs and tests.
pnpm install # install dependencies
pnpm format # format with oxfmt
pnpm lint # lint with oxlint
pnpm typecheck # type-check with tsc
pnpm test # run unit tests (bun test)