CSS Cheatsheet
CSS Cheatsheet in Jwala Baheliya's frontend toolkit. A live css utility with copy-ready output and in-browser previews.
The left rail keeps navigation nearby, the right rail keeps your reading position visible, and the live tool stays front and center once you are ready to use it.
What This Tool Does
CSS Cheatsheet helps you generate, test, and copy CSS faster without manually tweaking values in the browser over and over.
If you are not sure where to start, use the live controls below, watch the preview change, and copy the result only when it matches what you want in your project.
Live Tool
Interactive, client-side, and still running directly inside this docs page.
A broader quick-reference pack for layout, typography, effects, responsive patterns, forms, and modern CSS features.
display: flex; align-items: center; justify-content: center;
display: flex; justify-content: space-between; align-items: center;
display: flex; flex-wrap: wrap; gap: 1rem;
display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem;
display: grid; grid-auto-rows: 1fr;
display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 1.5rem;
width: min(100% - 2rem, 72rem); margin-inline: auto;
padding-block: clamp(3rem, 6vw, 6rem);
padding: clamp(1rem, 2vw, 1.5rem);
min-height: 100svh;
position: sticky; top: 0; z-index: 50;
position: absolute; inset: 0;
position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
position: fixed; right: 1rem; bottom: 1rem;
font-size: clamp(2rem, 5vw, 4.5rem); line-height: 0.95;
max-width: 65ch; line-height: 1.7;
text-wrap: balance;
text-wrap: pretty;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 50%, #38bdf8 100%);
background: radial-gradient(circle at top, rgba(56, 189, 248, 0.25), transparent 45%);
background: radial-gradient(circle at 20% 20%, rgba(244, 114, 182, 0.25), transparent 30%), radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.2), transparent 28%), #020617;
background: url('/image.jpg') center / cover no-repeat;border: 1px solid var(--border); border-radius: 1.5rem;
border-radius: 999px;
border: 1px solid transparent; background: linear-gradient(#0f172a, #0f172a) padding-box, linear-gradient(135deg, #38bdf8, #f472b6) border-box;
border: 2px dashed color-mix(in srgb, currentColor 35%, transparent);
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 12px 24px rgba(15, 23, 42, 0.12);
background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(18px) saturate(160%);
filter: saturate(1.1) contrast(1.05);
text-shadow: 0 2px 18px rgba(14, 165, 233, 0.35);
transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
transition: transform 180ms ease;
:hover {
transform: translateY(-4px);
}:focus-visible {
outline: 3px solid rgba(56, 189, 248, 0.45);
outline-offset: 3px;
}pointer-events: none;
@keyframes fade-up {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
element {
animation: fade-up 500ms ease both;
}@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-8px); }
}
element {
animation: float 3s ease-in-out infinite;
}animation-delay: calc(var(--index) * 80ms);
@media (prefers-reduced-motion: reduce) {
* {
animation: none !important;
transition: none !important;
}
}@media (min-width: 768px) {
.layout { grid-template-columns: 1fr 1fr; }
}@media (min-width: 1024px) {
.layout { grid-template-columns: 280px 1fr; }
}width: clamp(16rem, 40vw, 28rem);
@container (min-width: 42rem) {
.card { grid-template-columns: 1fr 1fr; }
}appearance: none; background: transparent; border: 0; font: inherit;
::placeholder {
color: color-mix(in srgb, currentColor 45%, transparent);
}accent-color: #0ea5e9;
:invalid {
border-color: #ef4444;
}@layer reset, base, components, utilities;
.card {
& img {
border-radius: inherit;
}
&:hover {
transform: translateY(-2px);
}
}background: color-mix(in srgb, var(--accent) 18%, transparent);
aspect-ratio: 16 / 9;
grid-template-columns: subgrid;
How To Use It
- 1Add your input, upload a file, or pick the values you want to work with.
- 2Adjust the controls until the live preview matches what you need.
- 3Copy or download the final output and use it in your project.
Related Tools
More tools from the same category, so you can keep moving without going back to the full index.