Files
doona/apps/lite/package.json
Zakk 9963c848c0 fix(lite): make dark mode readable
Several lite surfaces kept their light colours or fell below 4.5:1 in dark
mode: secondary text in segmented choices (4.27:1), input borders
(1.93:1), white text on red buttons (3.76:1), added lines in the config
diff (3.78:1), and CodeMirror's black cursor, search panel and match
highlights. The site theme now sets light-dark() values for these in
modeTokens.css; light mode renders pixel-identical in 208 of 209 shots
(one 28-pixel antialiasing difference).

check-ui rejects raw colour literals outside src/themes, and
scripts/dark-mode.cjs checks cursor, search, input contrast, first paint
and route switches in dark and system modes.
2026-10-26 23:57:00 +11:00

46 lines
1.9 KiB
JSON

{
"name": "doona-lite",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"typecheck": "tsc --noEmit",
"check-ui": "node tools/check-ui.mjs",
"test:e2e": "node scripts/mock-e2e.cjs && node scripts/round7-e2e.cjs && node scripts/round8-e2e.cjs && node scripts/layout-rhythm.cjs && node scripts/page-cache.cjs && node scripts/loading-layout.cjs && node scripts/nodes-e2e.cjs && node scripts/perf-switch.cjs && node scripts/mode-switch.cjs && node scripts/perf-click.cjs && node scripts/login-e2e.cjs && node scripts/mobile-sheet.cjs && node scripts/features-routing.cjs && node scripts/settings-restart.cjs && node scripts/features-nodes.cjs && node scripts/dark-mode.cjs",
"test:syntax": "node scripts/syntax-scan.cjs",
"test:motion": "node scripts/motion.cjs && node scripts/motion-replay.cjs && node scripts/motion-editors.cjs && node scripts/stability.cjs && node scripts/scroll-stability.cjs",
"test:roundtrip": "../../node_modules/.bin/vitest run --config vitest.config.ts",
"check:size": "node tools/size.mjs"
},
"dependencies": {
"@astryxdesign/core": "0.6.8",
"@astryxdesign/theme-neutral": "0.6.8",
"@codemirror/autocomplete": "6.20.3",
"@codemirror/commands": "6.11.1",
"@codemirror/language": "6.12.4",
"@codemirror/lint": "6.9.7",
"@codemirror/search": "6.7.2",
"@codemirror/state": "6.7.6",
"@codemirror/view": "6.43.13",
"@fontsource-variable/figtree": "5.3.0",
"@lezer/highlight": "1.2.5",
"@stylexjs/stylex": "0.19.1",
"qrcode.react": "4.2.0",
"react": "19.3.0",
"react-dom": "19.3.0"
},
"devDependencies": {
"@astryxdesign/build": "0.6.8",
"@astryxdesign/cli": "0.6.8",
"@stylexjs/unplugin": "0.19.1",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@vitejs/plugin-react": "^5.2.0",
"typescript": "^5.8.0",
"vite": "^8.3.4"
}
}