CSS Generator
Design visually and copy the code. Pick colors and sliders, watch the preview change, then copy the CSS into your stylesheet.
- Choose gradient, shadow or radius
- Adjust colors and sliders
- Copy the CSS code
Your files never leave your device
What you can create
Instead of writing CSS by trial and error, you design visually and copy the finished code. Move the sliders, pick colours, watch the preview change, and paste the result into your stylesheet. There are three generators in one tool.
- Gradients: linear or radial, with two or three colours and any angle.
- Box shadows: horizontal and vertical offset, blur, spread, colour, opacity and an inset option.
- Border radius: all four corners, in pixels or percent, linked together or set one by one.
A worked example
For a soft card, switch to Shadow, set a small vertical offset, a blur of about 20 px, a spread of 0 and a colour with low opacity such as 15%. Then switch to Radius and give all corners 12 px. Copy each snippet and add it to your card rule, for example box-shadow and border-radius in the same selector. The preview background setting lets you check the effect on light and dark pages.
Tips for reliable results
Keep shadows subtle: a large blur with low opacity looks more natural than a hard dark edge. For gradients, choose colours that are close in brightness if you want smooth transitions, and use the third colour for a middle stop. Percent radius is useful for circles and pills, because 50% turns a square into a circle. All of these properties are supported by every modern browser, so no vendor prefixes are needed.
Frequently asked questions
Is the code ready to use?
Yes. Copy it and paste it into any CSS rule. It uses standard properties such as background, box-shadow and border-radius.
Is anything sent to a server?
No. The generator runs entirely in your browser and your colours and settings stay on your device.
Does it work in all browsers?
Gradients, shadows and rounded corners are supported by all modern browsers, including phones and tablets, so the output needs no vendor prefixes.
Can I use more than two gradient colours?
Yes. Tick the option for a third colour and the gradient gets a middle stop. For more stops, copy the code and add them by hand.
What does inset mean for shadows?
An inset shadow is drawn inside the box instead of outside, which gives a pressed-in or recessed look, often used for input fields.
Can I use percent for the radius?
Yes. Switch the unit to % and the corners scale with the size of the element. A radius of 50% on a square makes a circle.