├── .github └── FUNDING.yml ├── CNAME ├── LICENCE ├── README.md ├── css-pattern.jpg ├── css-pattern.png ├── fav.png ├── index.html ├── style.css └── twitter-24.png /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: temani 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | css-pattern.com -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Temani Afif 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | CSS Pattern 2 | -------------------------------------------------------------------------------- /css-pattern.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Afif13/CSS-Pattern/66681684c1ca514328043b8ebd1407fe65830cc7/css-pattern.jpg -------------------------------------------------------------------------------- /css-pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Afif13/CSS-Pattern/66681684c1ca514328043b8ebd1407fe65830cc7/css-pattern.png -------------------------------------------------------------------------------- /fav.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Afif13/CSS-Pattern/66681684c1ca514328043b8ebd1407fe65830cc7/fav.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | CSS Pattern: Fancy backgrounds with CSS gradients 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |

CSS Pattern

28 |

powered by CSS gradients

29 |

the biggest collection of background Patterns

30 |

Explore 145 CSS-only patterns made with CSS gradients and optimized with CSS variables.
I also have a collection of animated CSS Patterns

31 |
32 | 33 |
34 |
35 | 53 |
54 |
55 | 68 |
69 |
70 | 80 |
81 |
82 | 103 |
104 |
105 | 123 |
124 |
125 | 142 |
143 |
144 | 154 |
155 |
156 | 167 |
168 |
169 | 182 |
183 |
184 | 195 |
196 |
197 | 211 |
212 |
213 | 224 |
225 |
226 | 236 |
237 |
238 | 252 |
253 |
254 |
255 |

Don't know which Pattern to use?
Let me pick one for you!

256 | Get a nice CSS Pattern 257 |
258 |
259 |
260 | 275 |
276 |
277 | 296 |
297 |
298 | 313 |
314 |
315 | 329 |
330 |
331 | 344 |
345 |
346 | 358 |
359 |
360 | 377 |
378 |
379 | 393 |
394 |
395 | 411 |
412 |
413 | 428 |
429 |
430 | 443 |
444 |
445 | 466 |
467 |
468 | 487 |
488 |
489 | 506 |
507 |
508 | 519 |
520 |
521 | 542 |
543 |
544 | 561 |
562 |
563 | 577 |
578 |
579 | 593 |
594 |
595 | 608 |
609 |
610 | 627 |
628 |
629 | 644 |
645 |
646 | 657 |
658 |
659 | 676 |
677 |
678 |
679 |

What about a nice CSS Loader?

680 | 681 | Get more CSS loaders 682 |
683 |
684 |
685 | 697 |
698 |
699 | 715 |
716 |
717 | 731 |
732 |
733 | 748 |
749 |
750 | 764 |
765 |
766 | 779 |
780 |
781 | 800 |
801 |
802 | 816 |
817 |
818 | 831 |
832 |
833 | 848 |
849 |
850 | 868 |
869 |
870 | 891 |
892 |
893 | 911 |
912 |
913 | 922 |
923 |
924 | 940 |
941 |
942 | 972 |
973 |
974 | 987 |
988 |
989 | 1007 |
1008 |
1009 | 1027 |
1028 |
1029 | 1038 |
1039 |
1040 | 1054 |
1055 |
1056 | 1066 |
1067 |
1068 |
1069 |

I also share cool CSS Tips
It takes one minute to read a tip

1070 | Get a random CSS Tip 1071 |
1072 |
1073 |
1074 | 1091 |
1092 |
1093 | 1111 |
1112 |
1113 | 1128 |
1129 |
1130 | 1154 |
1155 |
1156 | 1171 |
1172 |
1173 | 1189 |
1190 |
1191 | 1200 |
1201 |
1202 | 1211 |
1212 |
1213 | 1227 |
1228 |
1229 | 1250 |
1251 |
1252 | 1268 |
1269 |
1270 | 1290 |
1291 |
1292 | 1303 |
1304 |
1305 | 1319 |
1320 |
1321 | 1327 |
1328 |
1329 | 1344 |
1345 |
1346 | 1358 |
1359 |
1360 | 1374 |
1375 |
1376 | 1387 |
1388 |
1389 | 1401 |
1402 |
1403 | 1417 |
1418 |
1419 | 1436 |
1437 |
1438 |
1439 |

You are not looking for a CSS pattern?
Maybe you want a CSS Shape?

1440 | Go to CSS Shape 1441 |
1442 |
1443 |
1444 | 1464 |
1465 |
1466 | 1485 |
1486 |
1487 | 1503 |
1504 |
1505 | 1519 |
1520 |
1521 | 1533 |
1534 |
1535 | 1549 |
1550 |
1551 | 1567 |
1568 |
1569 | 1583 |
1584 |
1585 | 1600 |
1601 |
1602 | 1615 |
1616 |
1617 | 1631 |
1632 |
1633 | 1646 |
1647 |
1648 | 1662 |
1663 |
1664 | 1675 |
1676 |
1677 | 1693 |
1694 |
1695 | 1710 |
1711 |
1712 | 1724 |
1725 |
1726 | 1744 |
1745 |
1746 |
1747 |

You reached the 100th Pattern 🥳
Keep scrolling or surprise yourself

1748 | Get a random CSS Pattern 1749 |
1750 |
1751 |
1752 | 1770 |
1771 |
1772 | 1789 |
1790 |
1791 | 1806 |
1807 |
1808 | 1823 |
1824 |
1825 | 1842 |
1843 |
1844 | 1868 |
1869 |
1870 | 1882 |
1883 |
1884 | 1898 |
1899 |
1900 | 1916 |
1917 |
1918 | 1936 |
1937 |
1938 | 1952 |
1953 |
1954 | 1968 |
1969 |
1970 | 1984 |
1985 |
1986 | 1999 |
2000 |
2001 | 2015 |
2016 |
2017 | 2032 |
2033 |
2034 | 2050 |
2051 |
2052 | 2070 |
2071 |
2072 | 2084 |
2085 |
2086 | 2102 |
2103 |
2104 | 2117 |
2118 |
2119 |
2120 |

I also have a collection of CSS Generators

2121 | Go to CSS Generators 2122 |
2123 |
2124 |
2125 | 2146 |
2147 |
2148 | 2161 |
2162 |
2163 | 2185 |
2186 |
2187 | 2200 |
2201 |
2202 | 2210 |
2211 |
2212 | 2223 |
2224 |
2225 | 2238 |
2239 |
2240 | 2252 |
2253 |
2254 | 2273 |
2274 |
2275 | 2290 |
2291 |
2292 | 2310 |
2311 |
2312 | 2324 |
2325 |
2326 | 2338 |
2339 |
2340 | 2352 |
2353 |
2354 | 2369 |
2370 |
2371 | 2383 |
2384 |
2385 |
2386 |

Do you want to have some fun?
Solve a CSS Challenge

2387 | Go to CSS Challenges 2388 |
2389 |
2390 |
2391 | 2404 |
2405 |
2406 | 2419 |
2420 |
2421 | 2438 |
2439 |
2440 | 2450 |
2451 |
2452 | 2464 |
2465 |
2466 | 2478 |
2479 |
2480 | 2493 |
2494 |
2495 | 2510 |
2511 |
2512 |
2513 |

You reached the end but it's not the end!
This collection will keep growing

2514 | Watch on Github 2515 | Follow me on Twitter 2516 |
2517 |
2518 | 2519 | by Temani Afif 2520 | 2521 | Twitter 2522 | Buy Me A Coffee 2523 | 2524 | 2525 | 2532 | 2533 | 2547 | 2548 | 2549 | -------------------------------------------------------------------------------- /style.css: -------------------------------------------------------------------------------- 1 | html { 2 | font-weight: 400; 3 | font-size: 18px; 4 | line-height: 1.5; 5 | color: #415462; 6 | font-family: system-ui,-apple-system,"Segoe UI","Roboto","Ubuntu","Cantarell","Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"; 7 | scroll-snap-type: y mandatory; 8 | } 9 | html:has(section:target) { 10 | scroll-snap-type: none; 11 | } 12 | *, 13 | *:before, 14 | *:after{ 15 | box-sizing:border-box; 16 | } 17 | body { 18 | margin: 0; 19 | display: flex; 20 | flex-wrap: wrap; 21 | } 22 | body section { 23 | display: grid; 24 | min-height: 50vh; 25 | place-content: center; 26 | scroll-snap-align: start; 27 | flex: 50%; 28 | } 29 | @media (max-width: 750px) { 30 | body section{ 31 | flex: 100%; 32 | } 33 | } 34 | body section:target { 35 | min-height: 100vh; 36 | flex: 100%; 37 | } 38 | html:has(section:target) section:not(:target) { 39 | display: none; 40 | } 41 | h1 { 42 | font-style: normal; 43 | font-weight: 700; 44 | font-size: 50px; 45 | font-family: 'Montserrat', sans-serif; 46 | line-height: 56px; 47 | text-transform: none; 48 | letter-spacing: -2px; 49 | color: #505050; 50 | white-space: nowrap; 51 | } 52 | h1 span { 53 | font-size: 70px; 54 | vertical-align: middle; 55 | } 56 | h1 span:first-child { 57 | letter-spacing: -14px; 58 | } 59 | h1 span:nth-child(2) { 60 | position: relative; 61 | letter-spacing: -15px; 62 | z-index: 1; 63 | } 64 | h1 span:nth-child(3) { 65 | color: #c39f76; 66 | filter: blur(2px); 67 | } 68 | h1 span:nth-child(2):before { 69 | content: ""; 70 | position: absolute; 71 | top: 10px; 72 | height: 28px; 73 | border-left: 1.5px solid #fff; 74 | border-top: 1.5px solid #fff; 75 | width: 44px; 76 | left: 2px; 77 | border-top-left-radius: 41px 24px; 78 | } 79 | h1 span:nth-child(2):after { 80 | content: ""; 81 | position: absolute; 82 | bottom: 0; 83 | left: 4.5px; 84 | height: 37px; 85 | border-left: 1.5px solid #fff; 86 | z-index: 5; 87 | } 88 | body header { 89 | text-align: center; 90 | position: absolute; 91 | z-index: 9; 92 | inset: 0 0 auto; 93 | background: #fffe; 94 | box-shadow: 0 0 20px 30px #fffe; 95 | margin: auto; 96 | width: fit-content; 97 | } 98 | body header > * { 99 | margin: 5px; 100 | } 101 | body header h1 + p { 102 | text-indent: 120px; 103 | margin-top: -22px; 104 | font-size: 15px; 105 | } 106 | section button { 107 | border-radius: 5px; 108 | box-shadow: 0 0.125rem 1rem rgb(27 40 50 / 4%), 0 0.125rem 2rem rgb(27 40 50 / 8%), 0 0 0 0.0625rem rgb(27 40 50 / 2%); 109 | opacity: .85; 110 | margin: 1em; 111 | border: none; 112 | font-size: 1rem; 113 | padding: .85rem 1.5rem; 114 | cursor: pointer; 115 | } 116 | section button:hover { 117 | opacity: 1; 118 | } 119 | section style { 120 | display: inline-block; 121 | font-size: 0; 122 | line-height: 1.4; 123 | cursor: text; 124 | white-space: pre; 125 | } 126 | a.tweet { 127 | background-color: #08769b; 128 | border-radius: 9999px; 129 | display: grid; 130 | place-content: center; 131 | width: 52px; 132 | height: 52px; 133 | position: fixed; 134 | left: 15px; 135 | bottom: 124px; 136 | box-shadow: rgb(0 0 0 / 40%) 0px 4px 8px; 137 | } 138 | .credit { 139 | position: fixed; 140 | z-index: 99; 141 | top: 0; 142 | left: 0; 143 | transform-origin: right top; 144 | transform: translate(-30%) rotate(-45deg); 145 | background: #08769b; 146 | color: #fff; 147 | box-shadow: 0 0 0 50px #08769b; 148 | clip-path: inset(0 -100%); 149 | text-decoration:none; 150 | } 151 | #bmc-wbtn { 152 | position: fixed; 153 | left: 15px; 154 | bottom: 60px; 155 | display: flex; 156 | align-items: center; 157 | justify-content: center; 158 | width: 52px; 159 | height: 52px; 160 | background: rgb(8, 118, 155); 161 | border-radius: 32px; 162 | box-shadow: rgba(0, 0, 0, 0.4) 0px 4px 8px; 163 | } 164 | #bmc-wbtn img { 165 | height: 40px; 166 | width: 40px; 167 | } -------------------------------------------------------------------------------- /twitter-24.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Afif13/CSS-Pattern/66681684c1ca514328043b8ebd1407fe65830cc7/twitter-24.png --------------------------------------------------------------------------------