Copy-paste collection

CSS Visual Directory

Copy-paste CSS for the visual effects you reach for constantly: box shadows, gradient combinations and text shadows, each with a live preview.

19 entries

11
Preview

Glow Shadow

A coloured halo spreading evenly in every direction rather than falling one way.

12
Preview

Neumorphism

Two opposing shadows on a background of the same colour, making a shape look pressed out of the surface.

14
Preview

Conic Gradient

Colour sweeping around a centre point like a pie chart or a colour wheel.

16
Preview

Dotted Grid

A grid of dots produced by tiling one tiny radial gradient across the element.

17
Preview

Gradient Text

A gradient clipped to the shape of the letters, so the text itself carries the colour.

18
Preview

Outlined Text

Letters drawn as an outline with a hollow centre, using a stroke rather than a fill.

19
Preview

Drop Shadow Filter

A shadow that follows the actual shape of the element, including transparency, rather than its box.

Collection guide

How to use css visual directory

CSS visual snippets package common shadows, gradients and text effects into small declarations you can adapt. They are starting points rather than rigid presets, so values should be tuned to the component size, theme and accessibility needs of the final page.

Compatibility and display

Current browsers support the properties used here, but stacking contexts, background colours and inherited styles affect the result. Test snippets in the real component instead of judging them only in isolation.

01

Copy into the correct selector

Paste declarations inside the rule for the element you want to style, then remove any property your project already controls.

02

Tune one variable at a time

Adjust blur, spread, colour or angle separately so you can see which change improves the effect.

03

Respect reduced motion and contrast

Decorative effects should not obscure text or create essential information through colour alone.

Common questions

About css visual directory

Can I paste these snippets into any website?

Yes, but existing selectors, variables and component styles may override them. Inspect the final cascade and adjust specificity carefully.

Why does a shadow or gradient look different in my project?

Its appearance depends on element size, background, border radius and surrounding colours, so the context rarely matches a standalone preview exactly.