CSS Box Shadow Gradient Playground
Preview a linear, radial or conic gradient with up to five box shadows. Adjust stops, spread, inset and radius, then export CSS and settings.
Pair a Radial Gradient with CSS Shadows
Preview
Stylesheet
Preview composited on white. HEX stores alpha in 8 bits; decimal alpha is retained in RGB and HSL.
#7D9065rgb(125, 144, 101)hsl(86.512 17.551% 48.039%)rgb(49.02% 56.471% 39.608%)0.4902, 0.5647, 0.3961, 1--color: #7D9065;Color names use standard CSS keywords, such as red or rebeccapurple.
CSS Box Shadow Gradient Playground: how to use it
- Choose a linear, radial or conic gradient. Set two colors and stop positions, then move the center or change the angle where available.
- Set the corner radius and edit or add shadow layers. Move layers to change which shadow sits in front when they overlap.
- Copy or download the .gradient-card CSS rule. Download settings to save the gradient and shadow values alongside the stylesheet.
Limits and notes
Two color stops, five optional shadow layers and numeric controls with up to two decimal places. Supports sRGB CSS color names, HEX, RGB and HSL, including alpha. The stylesheet sets the visual effect. The component’s layout sets its dimensions.
How your privacy works →CSS Box Shadow Gradient Playground: common questions
Which box shadow is drawn in front?
The first listed shadow paints over subsequent shadows in the same region. Changing their order changes how overlapping colors blend.
How do I produce a hard edge in the gradient?
Give both colors the same stop position. The colors change at that point instead of blending across an interval.
What is the difference between blur and spread?
Blur softens the shadow edge. Spread expands or contracts the shadow shape before blurring. Negative spread can tighten a wide soft shadow.