--dim-color and --danger-color were referenced across drawers and RemoteUpdates but never defined; --dim-color silently inherited (defeating its purpose) and --danger-color fell back to literal #f88 salmon (the 'ugly red' WifiOff icon next to UNREACHABLE hosts). Added both as aliases in :root: --dim-color = var(--fg-3), --danger-color = var(--alert). --fg-2/3/4 alphas in light mode were tuned identical to dark (0.78/0.55/0.35), but ink-on-cream needs more punch than matrix-on-black at the same alpha — the deploy preview code block (.code-block .comment / .key) and every dim caption rendered too faint. Bumped to 0.88/0.70/0.50. .maze-net-box.inactive applies opacity 0.42 + grayscale(0.7) for the 'no traffic' signal. On cream that fades the LAN out of visibility entirely. Override in light mode keeps the dotted border as the dim-state cue and bumps opacity to 0.85 so the header text stays legible.
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])