Copy the handoff tokens.css into web/src/styles/tokens.css verbatim except the Google Fonts @import, replaced by @font-face rules for self-hosted Bagel Fat One (400) and Figtree (400/600/700) woff2 files, committed with their OFL licence texts. Base styles set the page background, text colour, Figtree body and the accent focus outline. npm test now runs lint:colors, which fails on any hex colour literal in web/src outside tokens.css. npm run build ends with check:dist-fonts, which fails if dist references fonts.googleapis.com or fonts.gstatic.com. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
925 B
JSON
34 lines
925 B
JSON
{
|
|
"name": "mealquest-web",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "tsc --noEmit && vite build && npm run check:dist-fonts",
|
|
"preview": "vite preview",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "npm run lint:colors && vitest run",
|
|
"lint:colors": "node scripts/lint-colors.mjs",
|
|
"check:dist-fonts": "node scripts/check-dist-fonts.mjs"
|
|
},
|
|
"dependencies": {
|
|
"@tanstack/react-query": "^5.104.1",
|
|
"react": "^19.3.0",
|
|
"react-dom": "^19.3.0",
|
|
"react-router": "^7.18.4"
|
|
},
|
|
"devDependencies": {
|
|
"@testing-library/dom": "^10.4.2",
|
|
"@testing-library/jest-dom": "^7.0.1",
|
|
"@testing-library/react": "^16.3.3",
|
|
"@types/react": "^19.3.0",
|
|
"@types/react-dom": "^19.3.0",
|
|
"@vitejs/plugin-react": "^6.1.1",
|
|
"jsdom": "^30.1.1",
|
|
"typescript": "^7.0.2",
|
|
"vite": "^8.3.2",
|
|
"vitest": "^5.0.3"
|
|
}
|
|
}
|