Skip to content

Commit b731309

Browse files
dahliaclaude
andcommitted
Fix gradient text descender clipping
Add leading-snug to section titles and pb-1 to gradient-text to prevent descenders (g, y, p) from being cut off by bg-clip-text. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent abf6d65 commit b731309

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

uno.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export default defineConfig({
4747
'btn': 'px-6 py-3 rounded-xl font-semibold transition-all duration-300 cursor-pointer',
4848
'btn-primary': 'btn bg-gradient-to-r from-fedify-blue to-fedify-deep text-white hover:shadow-lg hover:shadow-fedify-blue/30 hover:-translate-y-0.5',
4949
'section-container': 'max-w-6xl mx-auto px-6 py-20 md:py-28',
50-
'section-title': 'text-3xl md:text-4xl lg:text-5xl font-display font-bold tracking-tight',
50+
'section-title': 'text-3xl md:text-4xl lg:text-5xl font-display font-bold tracking-tight leading-snug',
5151
'section-subtitle': 'text-lg md:text-xl text-slate-600 dark:text-slate-400 mt-4 max-w-2xl',
5252
'card': 'bg-white dark:bg-slate-800/50 rounded-2xl border border-slate-200 dark:border-slate-700/50 p-6 transition-all duration-300',
5353
'card-hover': 'hover:shadow-xl hover:shadow-fedify-blue/10 hover:-translate-y-1 hover:border-fedify-blue/30',
54-
'gradient-text': 'bg-gradient-to-r from-fedify-blue via-fedify-violet to-fedify-pink bg-clip-text text-transparent',
54+
'gradient-text': 'bg-gradient-to-r from-fedify-blue via-fedify-violet to-fedify-pink bg-clip-text text-transparent pb-1',
5555
},
5656
})

0 commit comments

Comments
 (0)