For developers, by a developer. Design that slaps⚡

<strong>Effortlessly enhance your websites and apps with 100+ modern CSS background patterns and gradient snippets.</strong>
Instantly copy and paste beautifully crafted, production-ready designs built with modern CSS and Tailwind CSS for seamless integration.
<em>Ideal for developers and designers working with React, Next.js, Vue, Angular, or any modern frontend framework. Made for devs who appreciate great design.</em>
<img src="https://img.shields.io/github/stars/megh-bari/pattern-craft?style=social" alt="GitHub stars" />
This project is proudly sponsored by Vercel. Thank you for supporting open source!

Note: This project does not provide plain HTML or vanilla CSS snippets. All code is optimized for JSX (React/Next.js) and Tailwind CSS.
Learn more in this announcement.
Curious where Pattern Craft is getting featured, shared, talk about or appreciated?
Check out this growing list of shoutouts, showcases, and love from the community:
⚡Where Pattern Craft is Making Noise??
This project is proudly powered by Vercel. The platform behind PatternCraft’s blazing-fast deployment and seamless scalability.
Big thanks to Vercel for supporting open source and keeping this project running smoothly!
git clone https://github.com/megh-bari/pattern-craft.git
cd pattern-craft
npm install
# or
yarn install
# or
pnpm install
npm run dev
# or
yarn dev
# or
pnpm dev
npm run build
npm start
These snippets work great for:
You can easily customize any background pattern by modifying the pattern object structure. Each pattern follows this format:
{
id: "unique-pattern-id",
name: "Pattern Display Name",
badge: "New",
style: {
background: "#ffffff",
backgroundImage: `
// Your CSS background patterns here
linear-gradient(to right, #f0f0f0 1px, transparent 1px),
radial-gradient(circle 800px at 100% 200px, #d5c5ff, transparent)
`,
backgroundSize: "96px 64px, 100% 100%",
},
code: `
{/* Pattern Name Background */}
{/* Your Content/Components */}
`,
}
Colors: Change hex values in backgroundImage gradients
Sizing: Modify backgroundSize values for different scales
Positioning: Adjust gradient positions and directions
Effects: Add multiple background layers for complex patterns
// Original pattern
backgroundImage: `linear-gradient(to right, #f0f0f0 1px, transparent 1px)`;
// Customized version
backgroundImage: `linear-gradient(to right, #3b82f6 1px, transparent 1px)`; // Blue lines
backgroundSize: "48px 32px"; // Smaller grid
Each pattern includes:
This project is sponsored by Vercel, which helps us maintain a stable development environment.
We welcome contributions to expand the pattern collection. To add new patterns:
git checkout -b feature/new-pattern-name
src/data/patterns.ts{
id: "unique-pattern-id",
name: "Pattern Display Name",
category: "gradients" | "geometric" | "decorative" | "effects",
badge: "New", // Optional: "New"
style: {
background: "#ffffff",
backgroundImage: `
// Your CSS background patterns here
linear-gradient(to right, #f0f0f0 1px, transparent 1px),
radial-gradient(circle 800px at 100% 200px, #d5c5ff, transparent)
`,
backgroundSize: "96px 64px, 100% 100%",
},
code: `
{/* Pattern Name Background */}
{/* Your Content/Components */}
`,
}
Consider these categories when adding patterns:
git add .
git commit -m "feat: add new geometric grid pattern"
git push origin feature/new-pattern-name
pattern-craft/
src/
├── app/
│ ├── globals.css
│ ├── layout.tsx
│ ├── page.tsx
│ └── not-found.tsx
│
├── components/
│ ├── ui/ # shadcn/ui components
│ │ ├── badge.tsx
│ │ ├── button.tsx
│ │ └── tabs.tsx
│ ├── layout/
│ │ ├── navbar.tsx
│ │ └── footer.tsx
│ ├── patterns/
│ │ ├── pattern-showcase.tsx
│ │ ├── pattern-card.tsx
│ │ ├── pattern-grid.tsx
│ │ └── pattern-empty-state.tsx
│ ├── home/
│ │ ├── hero.tsx
│ │ ├── support-dropdown.tsx
│ │ └── return-to-preview.tsx
│ └── providers/
│ └── theme-provider.tsx
│
├── lib/
│ ├── utils.ts
│ └── constants.ts
│
├── hooks/
│ ├── useTheme.tsx
│ └── useCopy.tsx
│
├── types/
│ ├── pattern.ts
│ └── index.ts
│
├── context/
│ └── favourites-context.tsx
│
└── data/
├── patterns.ts # Pattern used in UI (contribute here)
└── categories.ts
This project is open source and available under the MIT License.
For questions, issues, or suggestions:
If you like this project, consider giving it a ⭐️ on GitHub and sharing it with others!
This project is proudly supported by:
Happy coding!
$ claude mcp add pattern-craft \
-- python -m otcore.mcp_server <graph>