Skip to content

Commit affb833

Browse files
Kosthiclaude
andcommitted
style: apply UI/UX Pro Max optimizations
- Add spacing scale (8px base) for consistent layout - Add z-index scale for proper layering management - Add border radius scale for consistent rounding - Extend typography scale with text-5xl and text-6xl - Add cyberpunk neon color variables - Add pre-built glow effect shadows - Add spring easing function for bouncy interactions - Refine animation durations per UX guidelines (150-300ms) - Add cursor-pointer to interactive cards Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 655b334 commit affb833

File tree

1 file changed

+55
-5
lines changed

1 file changed

+55
-5
lines changed

src/styles/global.css

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
--shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
1313
--shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
1414

15-
/* Typography Scale */
15+
/* Typography Scale - 1.25 ratio (Major Third) */
1616
--text-xs: 0.75rem;
1717
--text-sm: 0.875rem;
1818
--text-base: 1rem;
@@ -21,6 +21,8 @@
2121
--text-2xl: 1.5rem;
2222
--text-3xl: 1.875rem;
2323
--text-4xl: 2.25rem;
24+
--text-5xl: 3rem;
25+
--text-6xl: 3.75rem;
2426

2527
/* Line Heights */
2628
--leading-tight: 1.25;
@@ -29,15 +31,62 @@
2931
--leading-relaxed: 1.625;
3032
--leading-loose: 1.85;
3133

32-
/* Easing Functions */
34+
/* Spacing Scale - 8px base */
35+
--space-1: 0.25rem;
36+
--space-2: 0.5rem;
37+
--space-3: 0.75rem;
38+
--space-4: 1rem;
39+
--space-5: 1.25rem;
40+
--space-6: 1.5rem;
41+
--space-8: 2rem;
42+
--space-10: 2.5rem;
43+
--space-12: 3rem;
44+
--space-16: 4rem;
45+
--space-20: 5rem;
46+
--space-24: 6rem;
47+
48+
/* Z-Index Scale - UI/UX Pro Max recommendation */
49+
--z-base: 0;
50+
--z-dropdown: 10;
51+
--z-sticky: 20;
52+
--z-fixed: 30;
53+
--z-modal-backdrop: 40;
54+
--z-modal: 50;
55+
--z-popover: 60;
56+
--z-tooltip: 70;
57+
58+
/* Easing Functions - UI/UX Pro Max recommended */
3359
--ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
3460
--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
3561
--ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
62+
--ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
3663

37-
/* Duration Variables */
64+
/* Duration Variables - 150-300ms for micro-interactions */
65+
--duration-instant: 100ms;
3866
--duration-fast: 150ms;
39-
--duration-normal: 300ms;
40-
--duration-slow: 500ms;
67+
--duration-normal: 250ms;
68+
--duration-slow: 400ms;
69+
--duration-slower: 600ms;
70+
71+
/* Border Radius Scale */
72+
--radius-sm: 6px;
73+
--radius-md: 10px;
74+
--radius-lg: 14px;
75+
--radius-xl: 18px;
76+
--radius-2xl: 24px;
77+
--radius-full: 9999px;
78+
79+
/* Cyberpunk Neon Colors */
80+
--neon-cyan: #22d3ee;
81+
--neon-purple: #a855f7;
82+
--neon-pink: #ec4899;
83+
--neon-blue: #3b82f6;
84+
--neon-green: #10b981;
85+
86+
/* Glow Effects */
87+
--glow-cyan: 0 0 20px rgba(34, 211, 238, 0.4), 0 0 40px rgba(34, 211, 238, 0.2);
88+
--glow-purple: 0 0 20px rgba(168, 85, 247, 0.4), 0 0 40px rgba(168, 85, 247, 0.2);
89+
--glow-pink: 0 0 20px rgba(236, 72, 153, 0.4), 0 0 40px rgba(236, 72, 153, 0.2);
4190

4291
/* Syntax Highlighting Colors */
4392
--syntax-keyword: #a855f7;
@@ -2833,6 +2882,7 @@
28332882
border-radius: var(--r);
28342883
border: 1px solid rgba(240, 246, 255, 0.12);
28352884
padding: 18px;
2885+
cursor: pointer;
28362886
}
28372887

28382888
.member-card::before,

0 commit comments

Comments
 (0)