Files
supabase/packages/common/package.json
Ivan Vasilov 97a8df0a23 feat: Handle the classic-dark theme in www and docs apps (#45214)
This PR fixes a bug where a user might choose `classic-dark` as a theme
in `studio` but then `docs` and `marketing` apps will look weird.

To test:
- Change the localStorage value of `theme` to `classic-dark`
- Open `www` and `docs` apps, they should look ok

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Added a new "classic-dark" theme option for enhanced visual
customization.

* **Improvements**
* Unified and simplified theme handling across apps for more consistent
behavior.
* Improved system-theme detection and smoother transitions when
switching themes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2026-05-05 16:18:46 +02:00

47 lines
1.2 KiB
JSON

{
"name": "common",
"version": "0.0.0",
"type": "module",
"main": "./index.tsx",
"types": "./index.tsx",
"license": "MIT",
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "rimraf node_modules .turbo tsconfig.tsbuildinfo",
"gen:types": "supabase gen types typescript --local >| ./database-types.ts",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@types/dat.gui": "^0.7.12",
"@usercentrics/cmp-browser-sdk": "^4.42.0",
"api-types": "workspace:*",
"config": "workspace:*",
"configcat-js": "^9.5.1",
"dat.gui": "^0.7.9",
"flags": "^4.0.0",
"lodash": "catalog:",
"next-themes": "catalog:",
"posthog-js": "^1.333.0",
"react-use": "^17.4.0",
"valtio": "catalog:"
},
"devDependencies": {
"@types/lodash": "4.17.5",
"@types/node": "catalog:",
"@types/react": "catalog:",
"@types/react-dom": "catalog:",
"@vitest/coverage-v8": "catalog:",
"@vitest/ui": "catalog:",
"tsconfig": "workspace:*",
"typescript": "catalog:",
"vitest": "catalog:"
},
"peerDependencies": {
"@supabase/auth-js": "catalog:",
"@supabase/supabase-js": "catalog:",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:"
}
}