mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 18:15:56 -04:00
Replace all `text-[Npx]` arbitrary size utilities with their nearest semantic Tailwind equivalents (`text-sm`, `text-base`, `text-xs`, `text-3xl`, etc.) across every component so text participates properly in the system font-scale pipeline.
Introduce a `ScaledIcon` component backed by a `useScaledSize` hook that multiplies a base icon size by the current font-scale factor, then replace every bare Tabler icon with `ScaledIcon` so icons grow and shrink in proportion with the surrounding text.
- Add `maxFontSizeMultiplier={1.0}` to badge and label text that must not reflow at large accessibility sizes (the "Admin" pill, type/rating chips, provider name labels, and the TMDB attribution line).
94 lines
2.4 KiB
JSON
94 lines
2.4 KiB
JSON
{
|
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": [
|
|
"**",
|
|
"!node_modules",
|
|
"!dist",
|
|
"!build",
|
|
"!packages/db/drizzle",
|
|
"!packages/tmdb/src/schema.d.ts",
|
|
"!**/routeTree.gen.ts",
|
|
"!apps/native/.expo/types/**/*.ts",
|
|
"!apps/native/expo-env.d.ts",
|
|
"!apps/native/uniwind-types.d.ts",
|
|
"!docs"
|
|
]
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"cssModules": true,
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"domains": {
|
|
"react": "recommended"
|
|
},
|
|
"rules": {
|
|
"recommended": true,
|
|
"suspicious": {
|
|
"noUnknownAtRules": "off"
|
|
},
|
|
"nursery": {
|
|
"useSortedClasses": {
|
|
"level": "error",
|
|
"options": {
|
|
"attributes": [
|
|
"class",
|
|
"classList",
|
|
"className",
|
|
"headerClassName",
|
|
"contentContainerClassName",
|
|
"columnWrapperClassName",
|
|
"endFillColorClassName",
|
|
"imageClassName",
|
|
"tintColorClassName",
|
|
"ios_backgroundColorClassName",
|
|
"thumbColorClassName",
|
|
"trackColorOnClassName",
|
|
"trackColorOffClassName",
|
|
"selectionColorClassName",
|
|
"cursorColorClassName",
|
|
"underlineColorAndroidClassName",
|
|
"placeholderTextColorClassName",
|
|
"selectionHandleColorClassName",
|
|
"colorsClassName",
|
|
"progressBackgroundColorClassName",
|
|
"titleColorClassName",
|
|
"underlayColorClassName",
|
|
"colorClassName",
|
|
"backdropColorClassName",
|
|
"backgroundColorClassName",
|
|
"statusBarBackgroundColorClassName",
|
|
"drawerBackgroundColorClassName",
|
|
"ListFooterComponentClassName",
|
|
"ListHeaderComponentClassName"
|
|
],
|
|
"functions": ["cn", "clsx", "cva", "useResolveClassNames"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"assist": {
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
}
|
|
}
|