├── .eslintrc.json ├── .gitignore ├── README.md ├── components ├── Buttons │ └── Buttons.tsx ├── LayoutGA.js └── Sidebar │ └── Sidebar.tsx ├── img ├── cssbuttons.png └── cssbuttons1.png ├── next-env.d.ts ├── next.config.js ├── package-lock.json ├── package.json ├── pages ├── _app.tsx ├── _document.tsx ├── buttons │ ├── 0.tsx │ ├── 1.tsx │ ├── 10.tsx │ ├── 11.tsx │ ├── 12.tsx │ ├── 13.tsx │ ├── 14.tsx │ ├── 15.tsx │ ├── 16.tsx │ ├── 17.tsx │ ├── 18.tsx │ ├── 19.tsx │ ├── 2.tsx │ ├── 20.tsx │ ├── 21.tsx │ ├── 22.tsx │ ├── 23.tsx │ ├── 24.tsx │ ├── 25.tsx │ ├── 26.tsx │ ├── 27.tsx │ ├── 28.tsx │ ├── 29.tsx │ ├── 3.tsx │ ├── 30.tsx │ ├── 31.tsx │ ├── 32.tsx │ ├── 33.tsx │ ├── 34.tsx │ ├── 35.tsx │ ├── 36.tsx │ ├── 37.tsx │ ├── 38.tsx │ ├── 39.tsx │ ├── 4.tsx │ ├── 40.tsx │ ├── 41.tsx │ ├── 42.tsx │ ├── 43.tsx │ ├── 44.tsx │ ├── 45.tsx │ ├── 46.tsx │ ├── 47.tsx │ ├── 48.tsx │ ├── 49.tsx │ ├── 5.tsx │ ├── 50.tsx │ ├── 51.tsx │ ├── 52.tsx │ ├── 53.tsx │ ├── 54.tsx │ ├── 55.tsx │ ├── 56.tsx │ ├── 57.tsx │ ├── 58.tsx │ ├── 59.tsx │ ├── 6.tsx │ ├── 60.tsx │ ├── 61.tsx │ ├── 62.tsx │ ├── 7.tsx │ ├── 8.tsx │ └── 9.tsx └── index.tsx ├── postcss.config.js ├── public ├── ads.txt ├── favicon.ico └── vercel.svg ├── scripts └── generate-sitemap.js ├── styles └── globals.css ├── tailwind.config.js ├── tsconfig.json └── utils └── analytics.js /.eslintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "next/core-web-vitals", 3 | "rules": { 4 | "@next/next/no-html-link-for-pages": ["error", "/my-app/pages/"] 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | 27 | # local env files 28 | .env.local 29 | .env.development.local 30 | .env.test.local 31 | .env.production.local 32 | 33 | # vercel 34 | .vercel 35 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

cssbuttons.app

2 |

Button collection with a focus on simplicity and ease of use.

3 |
Tech Stack: Next.js, Tailwind CSS, CSS
4 |
5 | 6 | ![](./img/cssbuttons.png) 7 | ![](./img/cssbuttons1.png) 8 | 9 | # Report Bug 10 | 11 | Found a bug? Report it [here](https://github.com/r1/cssbuttons/issues). 12 | 13 | # Available Scripts 14 | 15 | In the project directory, you can run: 16 | 17 | ### `npm start` 18 | 19 | Runs the app in the development mode.
20 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 21 | 22 | The page will reload if you make edits.
23 | You will also see any lint errors in the console. 24 | 25 | ### `npm test` 26 | 27 | Launches the test runner in the interactive watch mode.
28 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 29 | 30 | ### `npm run build` 31 | 32 | Builds the app for production to the `build` folder.
33 | It correctly bundles React in production mode and optimizes the build for the best performance. 34 | 35 | The build is minified and the filenames include the hashes.
36 | Your app is ready to be deployed! 37 | 38 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 39 | 40 | ### `npm run eject` 41 | 42 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 43 | 44 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 45 | 46 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 47 | 48 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 49 | 50 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 51 | 52 | # License 53 | 54 | ### cssbuttons is [MIT licensed](./LICENSE). 55 | -------------------------------------------------------------------------------- /components/Buttons/Buttons.tsx: -------------------------------------------------------------------------------- 1 | /* eslint-disable @next/next/no-html-link-for-pages */ 2 | /* eslint-disable @next/next/no-img-element */ 3 | export default function Viewer() { 4 | return ( 5 |
6 |
7 |
8 | 9 | Button 10 | 11 |
12 |
13 | 17 | Button 18 | 19 |
20 |
21 | 22 | Button 23 | 24 |
25 |
26 | 27 | Button 28 | 29 |
30 |
31 | 35 | Button 36 | 37 |
38 |
39 | 43 | Button 44 | 45 |
46 |
47 | 51 | 77 | 78 |
79 |
80 | 84 |
85 | Buttons 86 |
87 |
88 |
89 |
90 | 91 | 94 | 95 |
96 |
97 | 98 | 99 | 100 |
101 |
102 | 103 | 106 | 107 |
108 |
109 | 110 | 113 | 114 |
115 |
116 | 117 | 118 | 119 |
120 |
121 | 122 | Button 123 | 124 |
125 |
126 | 127 | Button 128 | 129 |
130 |
131 | 132 | Button 133 | 134 |
135 |
136 |
137 | 138 | bn46 143 | 144 |
145 |
146 |
147 |
148 | 149 | bn45 154 | 155 |
156 |
157 |
158 | 159 | Badge 164 | 165 |
166 |
167 | 168 | Button 169 | 170 |
171 |
172 | 173 | Button 174 | 175 |
176 |
177 | 178 | Button 179 | 180 |
181 |
182 | 183 | Button 184 | 185 |
186 |
187 | 188 | Button 189 | 190 |
191 |
192 | 193 | Hover 194 | 195 |
196 |
197 | 198 | Button 199 | 200 |
201 |
202 | 203 | Button 204 | 205 |
206 |
207 | 208 | Button 209 | 210 |
211 |
212 | 213 | 214 | 215 |
216 |
217 | 218 | 219 | 220 |
221 |
222 | 223 | 224 | 225 |
226 |
227 | 228 | Button 229 | 230 |
231 |
232 | 233 | 234 | 235 |
236 |
237 | 238 | 239 | 240 |
241 |
242 | 243 | 244 | 245 |
246 |
247 | 248 | 249 | 250 |
251 |
252 | 253 | 254 | 255 |
256 |
257 | 258 | 259 | 260 |
261 |
262 | 263 | 264 | 265 |
266 |
267 | 268 | 269 | 270 |
271 |
272 | 273 | 274 | 275 |
276 |
277 | 278 | 279 | 280 |
281 |
282 | 283 | 284 | 285 |
286 |
287 | 288 | 289 | 290 |
291 |
292 | 293 | 294 | 295 |
296 |
297 | 298 | Button 299 | 300 |
301 |
302 | 303 | Button 304 | 305 |
306 |
307 | 308 | Button 309 | 310 |
311 |
312 | 313 | Button 314 | 315 |
316 |
317 | 318 | Button 319 | 320 |
321 |
322 | 323 | 326 | 327 |
328 |
329 | 330 | Button 331 | 332 |
333 |
334 | 335 | 338 | 339 |
340 |
341 | 342 | 345 | 346 |
347 |
348 | 349 | 352 | 353 |
354 |
355 | 356 | Button 357 | 358 |
359 |
360 | 361 | 362 | 363 |
364 |
365 | 366 | Hover 367 | 368 |
369 |
370 | 371 | Button 372 | 373 |
374 |
375 | 376 | Button 377 | 378 |
379 |
380 | 381 | Button 382 | 383 |
384 |
385 | 386 | Button 387 | 388 |
389 |
390 | 391 | 392 | 393 |
394 |
395 | 402 | 405 |
406 | ); 407 | } 408 | -------------------------------------------------------------------------------- /components/LayoutGA.js: -------------------------------------------------------------------------------- 1 | import React from "react"; 2 | import { initGA, logPageView } from "../utils/analytics"; 3 | 4 | export default class Layout extends React.Component { 5 | componentDidMount() { 6 | if (!window.GA_INITIALIZED) { 7 | initGA(); 8 | window.GA_INITIALIZED = true; 9 | } 10 | logPageView(); 11 | } 12 | render() { 13 | return
{this.props.children}
; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /components/Sidebar/Sidebar.tsx: -------------------------------------------------------------------------------- 1 | import Link from "next/link"; 2 | 3 | export default function Sidebar() { 4 | return ( 5 |
6 | 9 |
10 |
11 |
12 |

How to use

13 |

14 | Click on your desired button and copy the HTML & CSS. 15 |

16 |

Code

17 | 39 |

New?

40 | 70 | 71 |
72 | CSS Scan logo 73 | CSS Scan - Easily inspect or copy any website's CSS 74 |
75 |
76 |
77 |
78 |
79 |
80 | ); 81 | } 82 | -------------------------------------------------------------------------------- /img/cssbuttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guivr/cssbuttons/c416ffc284221e46de1c5820c310b529122e533e/img/cssbuttons.png -------------------------------------------------------------------------------- /img/cssbuttons1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guivr/cssbuttons/c416ffc284221e46de1c5820c310b529122e533e/img/cssbuttons1.png -------------------------------------------------------------------------------- /next-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | /// 3 | 4 | // NOTE: This file should not be edited 5 | // see https://nextjs.org/docs/basic-features/typescript for more information. 6 | -------------------------------------------------------------------------------- /next.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | reactStrictMode: true, 3 | env: { 4 | REACT_APP_GA_ENV: process.env.REACT_APP_GA_ENV, 5 | }, 6 | webpack: (config, { isServer }) => { 7 | if (!isServer) config.resolve.fallback.fs = false; 8 | return config; 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cssbuttons", 3 | "private": true, 4 | "scripts": { 5 | "dev": "next dev", 6 | "build": "next build", 7 | "start": "next start", 8 | "lint": "next lint" 9 | }, 10 | "dependencies": { 11 | "dotenv": "^10.0.0", 12 | "next": "^12.0.7", 13 | "react": "17.0.2", 14 | "react-dom": "17.0.2", 15 | "react-ga": "^3.3.0", 16 | "react-syntax-highlighter": "^15.4.5" 17 | }, 18 | "devDependencies": { 19 | "@types/react": "^17.0.37", 20 | "autoprefixer": "^10.4.0", 21 | "eslint": "7.32.0", 22 | "eslint-config-next": "12.0.7", 23 | "postcss": "^8.4.5", 24 | "tailwindcss": "^3.0.7" 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /pages/_app.tsx: -------------------------------------------------------------------------------- 1 | import "../styles/globals.css"; 2 | import LayoutGA from "../components/LayoutGA"; 3 | import Head from "next/head"; 4 | import Sidebar from "../components/Sidebar/Sidebar"; 5 | 6 | function MyApp({ Component, pageProps }) { 7 | return ( 8 | 9 | 10 | cssbuttons.app | Over 60+ Free CSS Buttons To Use 11 | 15 | 19 | 20 | 21 |