Supercharge your websites

Unlock the power of CSS

Hide Code

Show Code

Gradient Text

.gradient-heading {
background: linear-gradient(45deg, var(--colora) 0%, var(--colora2) 100%);
background-clip: text;
color: transparent;
}  

Before

After

See on Codepen

Building amazing Websites

Gradient Border

.gradient-border {
background: linear-gradient(var(--colorbody),  (--colorbody)) padding-box,
linear-gradient(0deg, var(--colora) 0%,  (--colora2)100%) border-box;
border: solid 1px transparent;
}    

Before

After

See on Codepen
1
2
3

Cards

/* parent card */
.polite-card {max-width: 400px;  display: flex;  flex-direction: column;
background: var(--colors);  border-radius: 8px;  overflow: hidden;}
/* text & button */
.css-card {padding: 20px;} 

Before

After

See on Codepen
polite cat meme

The Polite Cat

My face when someone expects me to be excited about something that I'm not excited about.

Learn more

Bland elements 👉 Cards

Check the full code on Codepen 👇

Before

After

See on Codepen


Pick a font size






16 pixels
Smartphones



18 pixels
Laptops



20 pixels
Desktops



24 pixels
4K screens

Hover Effects

.element:hover{scale: 1.05;} 

Before

After

See on Codepen
Scale on Hover polite cat meme

Scale on Hover

Hover Effects - Float

.element:hover{transform: translateY(-4px);} 

Before

After

See on Codepen
Float on Hover polite cat meme

Float on Hover

Hover Effects - Fill

button:hover
{background: linear-gradient(45deg, var(--col0%, var(--colora2) 100%) border-box;}

svg:hover
{fill: var(--colora);}
h1
{color: transparent;
-webkit-text-stroke-color: var(--colora);
-webkit-text-stroke-width: 1px;}
h1:hover{color: var(--colora);}

Before

After

See on Codepen
Fill on Hover

Fill

Dynamic Sizes

p{font-size: 5vw;}

Before

After

See on Codepen

Resize your Window

Dynamic Sizes - Clamp

p{font-size: clamp(36px, 5vw, 72px);}

Before

After

See on Codepen

More Control

Dynamic Sizes - Flexbox

div{display: flex; gap: 20px;}
div:nth-child(1){flex: 1;} div:nth-child(2){flex: 2;} div:nth-child(3){flex: 3;}

Before

After

See on Codepen

L

XL

XXL

Snap Scrolling

parent{scroll-snap-type: y mandatory;} children{scroll-snap-align: start;}

Before

After

See on Codepen
Scroll here
to snap
to the
next section.
Works better
on full height.
Enjoy 😎

Better Lists

li{list-style: "😎 ";}
li:nth-child(2){list-style: "🍞 ";}
li:nth-child(3){list-style: "👖 ";}

Before

After

See on Codepen

Good Habits

.moody{
/* same code, just add bg and adjust values */}
.dashing{/* Animation */
background: linear-gradient(270deg, var(--colora), var(--colora2), var(--colora)); background-size: 300% 300%;
animation: bg 10s ease-ininfinite;
@keyframes bg { 
0% {background-position: 0% 50%;}
50% {background-position: 100% 100%;} 
100% {background-position: 0% 50%;}}
.crispy{
/* same code, just adjust values */}

Before

After

See on Codepen
Moody Button 😎 Dashing Button

Animations

@keyframes bounce {0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-30px);} 60% {transform: translateY(-15px);}}

Before

After

See on Codepen

Look at me

@keyframes pulse {0%, 100% {transform: scale(1);}50% {transform: scale(1.2);}}

Before

After

See on Codepen
@keyframes flip {0%{transform: rotateY(0);}100% {transform: rotateY(360deg);}}

Before

After

See on Codepen
Flip over
@keyframes rotate {0%{transform: rotate(0deg);}100% {transform: rotate(360deg);}}

Before

After

See on Codepen

Better Shadows

box-shadow: 0px 4px 4px #00000030, 0px 12px 12px #00000015;

Before

After

See on Codepen

Combine two shadows to create a more natural and true sense of depth.

The first shadow is darker and closer to the card.

The second shadow is larger and softer.

Shadows don't work in dark mode, just as in real life

More Features

Coming soon

I will continue to add more features to the list. Please keep an eye out for them.

PS. Feel free to send me CSS features to add to this list.

UI Library - For Design Inspirations

You don't have to waste your time on Dribble, Behance or Instagram.
There is a much easier & better way to get design/UI inspirations.

I use Mobbin, for two reasons:
1. Proven real-world designs
2. Quick and easy to find exactly what I need

Try Mobbin