6.2 KiB
Color System Migration Summary
Date: October 21, 2025
Source: XRPL.org Design Tokens - Figma
Migration Strategy: Clean Migration
The old 10-level color scale (100-1000) has been completely migrated to a new 5-level scale (100-500). All references in the codebase have been updated, and backward compatibility aliases have been removed for a clean implementation.
Mapping Applied:
Old System → New System
100 → 100 (lightest)
200 → 100
300 → 200
400 → 200
500 → 300 (mid-tone, default)
600 → 300
700 → 400
800 → 400
900 → 500 (darkest)
1000 → 500
Migration Approach:
- All color usages (600-1000) were found and replaced with their new equivalents (300-500)
- Backward compatibility aliases were removed from
_colors.scss - Only 100-500 design tokens remain for each color family
Color Families Updated
Primary Colors
Gray (Neutral) ⏸️ NOT UPDATED
- Status: Original values retained - design tokens not ready
- Current values: #FCFCFD, #F5F5F7, #E0E0E1, #C1C1C2, #A2A2A4, #838386, #454549, #343437, #232325, #111112
- Note: Gray/Neutral design tokens will be migrated in a future update
Green ✅
- New Design Tokens: #EAFCF1, #70EE97, #21E46B, #0DAA3E, #078139
- Variables:
$green-100through$green-500only - Migrated: 14 file references updated
- Special:
$apex-2023-green(#00FF76) retained
Lilac (Primary) ✅ replaces blue-purple
- New Design Tokens: #F2EDFF, #D9CAFF, #C0A7FF, #7649E3, #5429A1
- Variables:
$lilac-100through$lilac-500only - Legacy aliases:
$blue-purple-100through$blue-purple-500map to lilac (600-900 removed) - Migrated: 16 file references updated
- Note: This is a new color name in the design system
Secondary Colors
Red ✅ NEW
- New Design Tokens: #FDECE7, #F27A66, #F0643A, #DA4518, #A22514
- Variables:
$red-100through$red-500only - Note: This is a completely new color family added to the design system
Pink ✅ replaces magenta
- New Design Tokens: #FDF1F4, #F2B5C3, #F18DA5, #FF577F, #DC466F
- Variables:
$pink-100through$pink-500only - Legacy aliases:
$magenta-100through$magenta-500map to pink (600-900 removed) - Migrated: 7 file references updated
Blue ✅
- New Design Tokens: #EDF4FF, #93BFF1, #428CFF, #0179E7, #0A4DC0
- Variables:
$blue-100through$blue-500only - Migrated: 8 file references updated
- Special:
$accent-blue-90(#001133) retained
Yellow ✅
- New Design Tokens: #F3F1EB, #E6F1A7, #DBF15E, #E1DB26, #D4C02D
- Variables:
$yellow-100through$yellow-500only - Migrated: 11 file references updated
Colors Retained (No Design Token Replacement)
Orange
- Status: Legacy values retained
- Values: #FFEEE5, #FFCCB2, #FFAA80, #FF884B, #FF6719, #E54D00, #B23C00, #802B00, #4C1A00
- Reason: No corresponding design token in new system
Red-purple
- Status: Legacy values retained
- Values: #FBE5FF, #F2B2FF, #EA80FF, #E24CFF, #D919FF, #C000E5, #9500B2, #6B0080, #40004C
- Reason: No corresponding design token in new system
Special Event Colors
$apex-2023-green: #00FF76$token-2049-purple: #410bb9$accent-blue-90: #001133
Bootstrap & Component Colors
All Bootstrap theme variables remain functional:
$primary→$purple(now$lilac-400)$secondary→$gray-200$success→$green-500$info→$blue-500$warning→$yellow-500$danger→$magenta-500(now$pink-500)
Breaking Changes
Removed Variables:
- All color variables from 600-1000 have been removed for: Green, Blue, Lilac, Pink, Red, Yellow
$blue-purple-600through$blue-purple-900removed (use 100-500)$magenta-600through$magenta-900removed (use 100-500)
No Impact:
- All usages in the codebase have been updated
- Legacy color name aliases maintained (100-500 only):
$blue-purple-100through$blue-purple-500→ maps to$lilac-*$magenta-100through$magenta-500→ maps to$pink-*
Color Name Changes
| Old Name | New Name | Reason |
|---|---|---|
blue-purple-* |
lilac-* |
Design system rebranding |
magenta-* |
pink-* |
Design system rebranding |
| N/A | red-* |
New color family added |
Usage Recommendations
Current Best Practices
Use the new 5-level design tokens (100-500):
// Primary colors
color: $gray-300; // Gray (not yet migrated - still uses old values)
color: $green-300; // Default green
color: $lilac-400; // Primary purple
// Secondary colors
color: $red-300; // Default red
color: $pink-300; // Default pink
color: $blue-300; // Default blue
color: $yellow-300; // Default yellow
Legacy Aliases Still Available
// These legacy names work (100-500 only)
color: $blue-purple-400; // Same as $lilac-400
color: $magenta-300; // Same as $pink-300
Files Modified
styles/_colors.scss- Complete color system update
Validation Status
✅ All SCSS variables resolve correctly
✅ No linter errors
✅ Bootstrap theme colors functional
✅ All old color references (600-1000) removed from codebase
✅ Special event colors preserved
⏸️ Gray/Neutral colors - pending future update
Migration Statistics
Files Updated: 11 SCSS files
styles/_colors.scss- Color definitions cleaned upstyles/light/_light-theme.scss- 11 color references updatedstyles/_status-labels.scss- 39 color references updatedstyles/_diagrams.scss- 6 color references updatedstyles/_code-tabs.scss- 2 color references updatedstyles/_content.scss- 1 color reference updatedstyles/_buttons.scss- 7 color references updatedstyles/_pages.scss- 3 color references updatedstyles/_blog.scss- 2 color references updatedstyles/_feedback.scss- 2 color references updatedstyles/_rpc-tool.scss- 1 color reference updatedstyles/_landings.scss- 1 color reference updated
Total Color References Updated: 75+ instances