css-border-gradient

Applies subtle gradient-border treatments to cards, modals, and hero surfaces using CSS.

Updated May 5, 2026
One-click install
npx skills add https://github.com/josippapez/ai-setup --skill css-border-gradient-josippapez
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: css-border-gradient
Source: https://github.com/josippapez/ai-setup/tree/main/claude/plugins/better-design/skills/css-border-gradient
Command: npx skills add https://github.com/josippapez/ai-setup --skill css-border-gradient-josippapez

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Flat solid borders make premium UI surfaces like pricing cards, modals, and hero panels look plain, while heavy glows and neon effects look cheap. This Skill provides restrained gradient-border patterns that add a refined edge highlight without competing with the content. ## Core Features & Use Cases - Simple CSS Pattern: Uses layered backgrounds with padding-box and border-box clipping for surfaces with solid or translucent fills. - Masked Pattern: Uses a pseudo-element with mask-composite so the gradient border works over complex existing backgrounds. - Tailwind Shortcut: Provides arbitrary-property syntax for one-off surfaces without custom CSS. - Use Case: When styling a dark glass pricing card that feels too plain, apply the 1px gradient border with a neutral highlight, one brand accent stop, and a fade to give it a premium edge. ## Quick Start Apply a subtle gradient border to my pricing card component using the simple CSS pattern with a 135deg angle and a brand accent stop.

Frequently Asked Questions about css-border-gradient

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a gradient border in CSS?

Use two layered backgrounds: a solid fill clipped to padding-box and a linear-gradient clipped to border-box, with a transparent border. This renders the gradient only in the border area while keeping the surface fill intact.

How to add a gradient border with Tailwind CSS?

Use arbitrary properties to set the background with padding-box and border-box layers, plus border-transparent and a rounded class. This works for one-off surfaces without writing custom CSS.

How do I add a gradient border without overwriting the background?

Use the masked pattern: a pseudo-element with padding equal to the border width, a gradient background, and mask-composite to cut out the interior. This preserves any complex background already on the surface.

When should I avoid using gradient borders?

Avoid rainbow gradients, full-saturation neon, and animated gradients by default. Apply the effect to only one hierarchy level at a time, and keep opacity stops below 0.4 so the border frames rather than competes with content.

Why does my gradient border look wrong in light mode?

The same alpha values rarely work across both themes. Check light and dark themes separately and adjust the stop opacities per theme so the gradient stays visible but subtle in each.