CSS Style Generator

Choose a style type, adjust settings and copy the CSS code.

Preview
Gradient
Box Shadow
Glassmorphism
Neumorphism
Border & Radius
Text Effects
Button
CSS Filters
Transform
CSS Code
 

About This Tool

Build a CSS style with sliders and colour pickers and take the finished code. Nine groups sit in the sidebar: gradient, shadow, glass, neumorphism, border, text, button, filter and transform. No installation, no sign-up.

Useful when you are tweaking a site or dashboard theme yourself and want the card shadows to look less flat, the form buttons to read better, or the page header to carry a decent gradient. When you do not know which exact value you want, dragging a slider and watching the result beats editing the code and refreshing the page every time.

Each group ships with a few presets that fill in the settings for you as a starting point. The preview box updates as you move things, and the CSS below it is one click away with the copy button. The settings you dial in stay on your device and are not stored by us.

Frequently Asked Questions

How do I get the CSS?
Pick a style type in the sidebar, click one of the presets to get a starting point, work the sliders and colours until it looks right, then press Copy Code at the bottom.
Where do I paste the copied code?
The output is a list of declarations only, with no class name or braces. Drop it inside your own selector, such as .card or button in your project stylesheet.
How do I combine several styles on one element?
Each group gives its own code. Build the shadow and copy it, then switch to the border group and paste that underneath. The properties do not conflict as long as you do not set the same one twice.
How many colours does the gradient take, and which types are available?
Three colours (the third is optional) in linear, radial and conic form. In linear mode the angle is adjustable from 0 to 360 degrees.
My shadow is not visible, what now?
If you have pulled the opacity down or set blur to zero the shadow disappears. Click the soft or layered preset and adjust from there. An inset shadow also will not show outside the element, by definition.
The glass effect does nothing on my site, why?
The glass effect only means something when there is something behind the element to blur, like an image or a gradient. On a flat white background there is nothing to see. Older browsers also skip the blur and keep only the semi-transparent colour, which still looks acceptable.
My neumorphism looks wrong, what am I missing?
In this style the element background has to match the page background, otherwise the raised look does not read. Make both the same colour first, then tune the light and shadow strength.
What is the difference between transform and filter?
Transform changes where the element is and what shape it takes: rotation, scale, skew and translation. Filter works on colour and clarity: blur, brightness, contrast, saturation, grayscale and sepia.
Is there no download button?
No. The output is a few lines and the copy button handles it. The code in the box at the bottom is also selectable by hand.
Do my settings survive closing the page?
No. Closing or refreshing resets everything, so copy the final code before you leave.
Does the generated code work in every browser?
Gradients, shadows, borders, filters and transforms have been supported everywhere for years. The only part older browsers may skip is the backdrop blur in the glass style.
Do you have a tool for picking matching colours?
Yes. The colour palette generator builds a combination you can feed straight into these settings.
Was this tool helpful?
4.4out of 5
Thanks for your feedback!

Related tools

Home

Install Web App

Install this tool as an app
×
×
Sort lines, remove duplicates, and strip empty lines
Try it
×
Reduce the file size of videos so they are easier to send
Try it
Processing...