DevSnips
Frontend Snippet Library — clean, reusable snippets for rapid UI building.
Why DevSnips?
- Clean, readable code with best practices.
- Organized by language: HTML, CSS, JavaScript.
- Lightweight — no dependencies or frameworks.
- Great for learning, prototyping, sharing, and production scaffolds.
- Open-source and open for contributions.
Getting Started
# Clone the repo
git clone https://github.com/developer8sarthak/DevSnips
cd DevSnips
# Explore folders
./html
./css
./js
Snippet Examples
HTML — Card Layout
<div class="cards">
<article class="card">Card A</article>
<article class="card">Card B</article>
</div>
CSS — Gradient Button
.btn-gradient {
background: linear-gradient(135deg, #6d5efc, #00d4ff);
color: #fff; border: 0; padding: .75rem 1rem; border-radius: .75rem;
}
.btn-gradient:hover { filter: brightness(1.05); }
JavaScript — Typewriter
const el = document.querySelector('#type');
const text = 'Build faster with DevSnips';
let i = 0;
setInterval(() => { el.textContent = text.slice(0, i++ % (text.length + 1)); }, 80);