refactor: update UserDetailPage styles and introduce avatar gradient utility
- Refactored role metadata styles in UserDetailPage for consistency with design tokens. - Replaced hardcoded avatar colors with a utility function to generate gradients based on user ID. - Improved InfoCard component styles for better hover effects and accessibility. - Removed deprecated color classes and adjusted background gradients for various components. - Updated theme token tests to reflect the removal of deferred files and ensure compliance with design standards. - Added new avatarColors utility file to manage avatar gradient definitions.
This commit is contained in:
@@ -478,9 +478,13 @@ Row 3: [Bar Chart — آمار ماهانه نمایندگان (60%)] | [لیس
|
||||
رنگ را از والد بگیر، یا `style={{ stroke: 'var(--…)' }}`.
|
||||
- الفای هگزی (`${color}30`) روی توکن بیمعنی است — `color-mix(in srgb, var(--x) 19%, transparent)`.
|
||||
|
||||
فاز باقیمانده: `pages/DoctorDetailPage.tsx`، `pages/UserDetailPage.tsx` و
|
||||
`components/schedule/ScheduleSection.tsx` هنوز جفت `slate/gray` + `dark:` دارند
|
||||
(کار میکنند ولی با brand hue هماهنگ نمیشوند) — در تست گارد بهعنوان `DEFERRED` علامت خوردهاند.
|
||||
کل `assets/admin` مهاجرت کرده است؛ تست گارد `DEFERRED` ندارد و فقط سه استثنای عمدی
|
||||
دارد: پالت برچسبها، `BrandFixed` در `uiStore`، و گرادیان تزئینی آواتار
|
||||
(`lib/avatarColors.ts`). اسکریم `bg-black/NN` هم مجاز است.
|
||||
|
||||
> نکتهٔ تاریخی: کلاسهایی مثل `text-primary-600` / `bg-primary-100` هیچوقت رنگی تولید
|
||||
> نمیکردند — بلوک `@theme` فقط `--font-sans` را تعریف میکند و مقیاس `primary-*` در
|
||||
> Tailwind وجود ندارد. ۴۳ نمونه از این کلاسهای مرده در آدیت به توکن تبدیل شدند.
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user