Bubblicorn Style Reference 🦄

E-Girl Aesthetic | Rounded Corners | Pastel Vibes ✨


Fixed: Kawaii Gradient Border 💖

Gradient Border with Rounded Corners ✨

This card now has properly rendered gradient borders with rounded corners! The previous version used border-image which doesn't work with border-radius.

Solution: Using a pseudo-element (::before) with gradient background and mask-composite to create the border effect while preserving rounded corners.

The gradient flows smoothly around all corners! 🌈


Implementation Guide 📚

Fixed Gradient Border Technique ✨

Problem: border-image and border-radius don't work together

Solution: Pseudo-element with gradient + mask-composite

/* Gradient border with rounded corners */
.card-kawaii {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-xl);
    color: #2d1435;
    padding: 2rem;
}

.card-kawaii::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: var(--border-width-thick);
    background: var(--kawaii-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

Key Improvements ⭐

  • Rounded corners work! All corners are properly rounded
  • Smooth gradient: No jagged edges or breaks
  • Performance: Uses modern CSS mask technique
  • Extensible: Change gradient via CSS variable

Browser Support 🌐

Excellent: Chrome, Edge, Safari, Firefox

Fallback: Older browsers show solid border

Note: Uses -webkit-mask for compatibility

Technical Notes 💡

  • Pseudo-element: Uses ::before to create gradient border layer
  • Mask-composite: exclude cuts out the center, leaving only the border
  • Pointer-events: Set to none so clicks pass through to content
  • Inset: Shorthand for top: 0; right: 0; bottom: 0; left: 0
  • Padding on mask: Creates the border width effect

Color Palette 🎨

Bubblegum Pink

#FF69B4

Lavender

#E6B3FF

Mint

#B0FFE8

Cyan

#00FFFF

Neon Pink

#FF10F0

Sparkle Yellow

#FFE66D

Button Styles 🎀

Primary Buttons

Accent Buttons