Timeline: 2-3 hours
Effort: Medium (repetitive)
Impact: High (entire app feels premium)
Apply premium components to all dashboard pages to create a cohesive, professional experience.
# File: src/app/admin/dashboard/page.tsx
# Changes:
1. Import: import { StatCard, PremiumButton, PremiumCard } from '@/components/premium'
2. Replace stat cards with StatCard component
3. Replace buttons with PremiumButton
4. Replace cards with PremiumCard
5. Apply Indigo color scheme
6. Update typography (text-premium-h1, text-premium-h2, etc.)
7. Improve spacing (space-premium-lg)# File: src/app/contract-analyzer/page.tsx
# Changes:
1. Import premium components
2. Update file upload card with PremiumCard
3. Replace result cards with PremiumCard
4. Replace buttons with PremiumButton
5. Apply Indigo color scheme
6. Update typography
7. Improve spacing# File: src/app/pricing/page.tsx
# Changes:
1. Import premium components
2. Update pricing cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography
6. Improve spacing# File: src/app/cases/page.tsx
# Changes:
1. Import premium components
2. Update case cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography
6. Improve spacing# File: src/app/drafts/page.tsx
# Changes:
1. Import premium components
2. Update draft cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography
6. Improve spacing# File: src/app/summarizer/page.tsx
# Changes:
1. Import premium components
2. Update summary cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography
6. Improve spacing# File: src/app/case-tracker/page.tsx
# Changes:
1. Import premium components
2. Update tracker cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography
6. Improve spacing# File: src/app/crm/page.tsx
# Changes:
1. Import premium components
2. Update client cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography
6. Improve spacing# File: src/app/news/page.tsx
# Changes:
1. Import premium components
2. Update news cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography# File: src/app/acts/page.tsx
# Changes:
1. Import premium components
2. Update act cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography# File: src/app/notices/page.tsx
# Changes:
1. Import premium components
2. Update notice cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typography# File: src/app/research/page.tsx
# Changes:
1. Import premium components
2. Update research cards with PremiumCard
3. Replace buttons with PremiumButton
4. Apply Indigo color scheme
5. Update typographyEvery page follows the same pattern:
import { StatCard, PremiumButton, PremiumCard, SkeletonLoader } from '@/components/premium'// Before
<div className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-2xl p-4 sm:p-5">
<p className="text-sm text-gray-500 dark:text-gray-400">Total Queries</p>
<p className="text-2xl font-bold text-gray-900 dark:text-white">1,247</p>
</div>
// After
<StatCard
label="Total Queries"
value={1247}
icon={<BarChart3 className="h-5 w-5" />}
color="indigo"
trend={{ value: 12, isPositive: true }}
/>// Before
<button className="inline-flex items-center gap-2 px-4 sm:px-5 py-2.5 bg-gray-900 dark:bg-white hover:bg-gray-800 dark:hover:bg-gray-100 text-white dark:text-gray-900 font-medium rounded-xl transition-colors text-sm sm:text-base">
<Plus className="h-4 w-4" />
Add New
</button>
// After
<PremiumButton size="lg">
<Plus className="h-4 w-4" />
Add New
</PremiumButton>// Before
<div className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-2xl p-4 sm:p-5">
<h3 className="font-semibold text-gray-900 dark:text-white">Title</h3>
{/* Content */}
</div>
// After
<PremiumCard title="Title" hoverable>
{/* Content */}
</PremiumCard>// Before
<h1 className="text-xl sm:text-2xl font-bold text-gray-900 dark:text-white">Title</h1>
// After
<h1 className="text-premium-h1 text-slate-900 dark:text-white">Title</h1>// Before
<div className="space-y-6 sm:space-y-8">
// After
<div className="space-y-8">-
Use Find & Replace in VS Code
- Find:
bg-gray-900 dark:bg-white - Replace:
(use PremiumButton instead)
- Find:
-
Copy-Paste Pattern from dashboard.tsx
- Already has all the patterns
- Just adapt to each page
-
Test as You Go
- After each page, run
npm run dev - Check it looks good
- Move to next page
- After each page, run
-
Batch Similar Pages
- Do all "card" pages together
- Do all "list" pages together
- Do all "form" pages together
After updating each page:
# 1. Run dev server
npm run dev
# 2. Navigate to page
# http://localhost:3000/page-name
# 3. Check:
- [ ] Page loads without errors
- [ ] Dark mode works
- [ ] Mobile responsive
- [ ] Hover states work
- [ ] No console errors
# 4. If all good, move to next pageAdmin Dashboard ⏳ TODO
Contract Analyzer ⏳ TODO
Pricing Page ⏳ TODO
Cases Page ⏳ TODO
Drafts Page ⏳ TODO
Summarizer Page ⏳ TODO
Case Tracker Page ⏳ TODO
CRM Page ⏳ TODO
News Page ⏳ TODO
Acts Page ⏳ TODO
Notices Page ⏳ TODO
Research Page ⏳ TODO
─────────────────────────────
Total: 12 pages
Time: 2-3 hours
- All pages load
- Dark mode works
- Mobile responsive
- No console errors
- Build passes
git add .
git commit -m "Apply premium components to all pages"
git push origin main
# Vercel auto-deploys- Check https://lawaiv2.ragspro.com
- Test all pages
- Verify features work
- Check performance
-
Keep Components Consistent
- Use same color scheme everywhere
- Use same spacing everywhere
- Use same typography everywhere
-
Don't Over-Engineer
- Keep it simple
- Use existing patterns
- Don't add new features
-
Test Frequently
- After each page
- Check dark mode
- Check mobile
- Check console
-
Commit Often
- After each page
- Makes it easy to revert
- Easier to track changes
✅ All pages use premium components
✅ Consistent Indigo color scheme
✅ Proper typography hierarchy
✅ 24-32px spacing between sections
✅ Hover elevation effects
✅ Dark mode support
✅ Mobile responsive
✅ No console errors
✅ Build passing
✅ All features working
- Quick Reference:
PREMIUM_COMPONENTS_QUICK_REFERENCE.md - Implementation Guide:
PREMIUM_COMPONENTS_IMPLEMENTATION.md - Visual Guide:
COMPONENT_LIBRARY_VISUAL_GUIDE.md - Example:
src/app/dashboard/page.tsx
Phase 2 is straightforward:
- Apply same pattern to 12 pages
- Takes 2-3 hours
- Transforms entire app
- High impact on user experience
Let's make LAW.AI look premium! 🚀
Last Updated: February 20, 2026