\

Show HN: I built 48 lightweight SVG backgrounds you can copy/paste

378 points - last Wednesday at 3:50 PM

Source
  • wackget

    yesterday at 2:26 AM

    These are great. Please consider adding a visible <textarea> with the CSS instead of relying on "click to copy" buttons. For security reasons, some users/browsers disable access to the clipboard which means there's no fallback way to copy the CSS.

      • visiwig

        yesterday at 3:52 AM

        Solid point, I used to do this, and it wouldn't be hard to go back or add a show code button so users can copy the CSS as text.

    • BoppreH

      last Wednesday at 11:15 PM

      Those are excellent! The orange shingles are my favorite. Though I think some of them are not working on Firefox; the blue and green vortices are rendered as a single blue rectangle and a single green hexagon.

      I wonder how people are using them in a way that is not distracting to the main content. I've found that high-frequency patterns (small details with sharp transitions) can be a bit distracting, but I haven't found a good solution that doesn't compromise the beauty of the backgrounds.

        • echoangle

          last Wednesday at 11:23 PM

          I think it’s kind of common to have the background for the whole document and then have an overlay with a solid color (and maybe less-than-100% opacity if you’re daring) on which the main content with all the text is shown. This works best for browser that are full screen on PC screens of course where you want to limit text width anyways. On mobile or narrow windows, you don’t have a lot of space to show the background.

            • BoppreH

              last Wednesday at 11:26 PM

              Thanks. I'm already doing something similar, but I feel like the background that is visible on the sides is still somewhat distracting. Might be my imagination though.

                • dietr1ch

                  yesterday at 1:53 PM

                  I think that keeping it fixed on scrolling and giving it low saturation should be enough to keep them from being distracting. And obviously, no animations, although a really slow one might work.

          • lelanthran

            yesterday at 4:59 AM

            > Though I think some of them are not working on Firefox; the blue and green vortices are rendered as a single blue rectangle and a single green hexagon.

            Move the sliders

            • visiwig

              yesterday at 3:59 AM

              I took a look at FireFox and I think it's working, but not obvious that you need to slide the top range slider for the full effect. It would look better if I reversed the effect, I'll have to rethink that.

                • sickmartian

                  yesterday at 1:48 PM

                  firefox (148.0.2) on linux, the preview for me is not working

                  tried them on chrome, it works fine, nice work

          • hju22_-3

            last Wednesday at 9:10 PM

            The notice about having "access" to the backgrounds is sticky, and takes up one third of the screen on mobile with no way to remove it . . . Why?

              • andai

                last Wednesday at 10:41 PM

                You have access. Enjoy!

                Edit: upon further investigation, access isn't something that's just thrown around willy nilly! It usually goes for $120/yr!

                • visiwig

                  yesterday at 3:56 AM

                  Fair point. Once you click a thumb to preview the button, it becomes the UI to manipulate the backgrounds. I'll take a look and rethink the setup.

              • dirkc

                yesterday at 10:53 AM

                I like your interface for switching between the backgrounds and having a small panel to tweak the parameters. I played around with procedural patterns using SVG/canvas/webgl a while back and this makes me feel like re-packaging the way it's represented.

                  • visiwig

                    yesterday at 3:56 PM

                    Thanks, I've designed a few UIs for manipulating graphics and spent a few tries iterating and improving this one in particular. There was a need to show as much background as possible, sometimes the limitations lead to some creative choices. I'm quite pleased how it came out myself.

                • jjwiseman

                  yesterday at 12:00 AM

                  I find it odd that there's a custom of blurring or obscuring exactly the thing I'm interested in when I show interest in it by mousing over it.

                    • visiwig

                      yesterday at 4:02 PM

                      Fair, I was fine going this direction because you're a click a way from get the full view and with the hover there isn't much more "preview" to show. My number one priority with the hover was making it obvious the given thumb is interactive.

                  • gerdesj

                    yesterday at 12:11 AM

                    Not one of these efforts emulate <blink />. I want my money back.

                    • throwaway2046

                      last Wednesday at 8:39 PM

                      These are beautiful, thank you for sharing. I really like the one with the triangles, was it inspired by Rule 30?

                      https://en.wikipedia.org/wiki/Rule_30

                        • visiwig

                          yesterday at 4:57 AM

                          No I've never heard about Rule 30, I would have been nervous to click that link if it wasn't leading to a Wikipedia article, phew, but the concept is quite cool and inspiring. Thanks for sharing that with me!

                      • karlshea

                        yesterday at 3:20 AM

                        Hey thanks so much! I actually found your site a bit over a year ago while I was redoing my portfolio and used one for my header.

                          • visiwig

                            yesterday at 4:58 AM

                            You're welcome. Glad you found something useful!

                        • yesthisiswes

                          yesterday at 12:05 AM

                          These are awesome! I’d love to use some of these for my solitaire game.

                          Weird thing when I preview one of the backgrounds then scroll down the page on mobile the images disappear. I have to refresh the page to view all the backgrounds again after selecting one.

                          I wonder if you should add names for the patterns so we can pick favorites?

                            • visiwig

                              yesterday at 4:12 AM

                              Hmmm, that doesn't sound right. Do you mind reaching out to me via the contact form and dropping any more details such as device/browser? BTW, each background does have name, but I hide that on mobile since real estate is limited.

                          • visiwig

                            last Wednesday at 3:50 PM

                            Each one can be copied as inline SVG or CSS using the background-image property with a data URI. Most are under 1KB.

                            • shellerik

                              yesterday at 2:08 PM

                              FYI - the previews do not work if you have the Dark Reader plugin enabled in your browser.

                              • democracy

                                yesterday at 1:10 AM

                                it's great work man - been using your backgrounds for long long time now!

                                  • visiwig

                                    yesterday at 4:51 AM

                                    Much appreciated, always nice to hear that :)

                                • ksymph

                                  yesterday at 4:44 AM

                                  Hmm, the parabolic ones seem to be broken? Both on FF and Chromium, they just display as an outline of a single shape on a black background.

                                    • lelanthran

                                      yesterday at 4:56 AM

                                      > Hmm, the parabolic ones seem to be broken? Both on FF and Chromium, they just display as an outline of a single shape on a black background.

                                      Move the sliders.

                                        • ksymph

                                          yesterday at 1:55 PM

                                          Whoopsie, thanks

                                  • aerhardt

                                    last Wednesday at 9:35 PM

                                    This is very cool but hasn’t it been around for like a decade?

                                      • visiwig

                                        yesterday at 4:16 AM

                                        Good memory. I launched in 2018 (8 years ago) and have been adding more graphics over the years -- doubling this specific collection / freebies.

                                    • dormento

                                      last Wednesday at 7:24 PM

                                      This rocks. Thank you!

                                        • visiwig

                                          last Wednesday at 7:32 PM

                                          Glad you think so, you're welcome, enjoy!

                                      • rcarmo

                                        yesterday at 7:59 AM

                                        These are pretty nice, congrats

                                          • visiwig

                                            yesterday at 3:18 PM

                                            Thank you!

                                        • pseudosavant

                                          last Wednesday at 10:12 PM

                                          I'm a sucker for this kind of stuff, but I'm usually disappointed after clicking the link. These on the other hand are excellent, and that they have configurable options like stroke, color, etc is gravy on the top. Thanks for sharing!

                                            • visiwig

                                              yesterday at 4:18 AM

                                              Thanks for the kind words! I've played around a lot with SVG and love how you can change various attributes to achieve cool effects.

                                          • thekevan

                                            last Wednesday at 10:33 PM

                                            This is top notch, great work!

                                              • visiwig

                                                yesterday at 4:16 AM

                                                Hey thanks!

                                            • dylanhouli

                                              last Wednesday at 7:38 PM

                                              Great idea man, must be pulling in some good SEO traffic as well.

                                                • Frannky

                                                  last Wednesday at 11:33 PM

                                                  Like this user has a comment history of hyping show HN

                                                    • dylanhouli

                                                      yesterday at 3:45 AM

                                                      I mean isn't that what show HN is for? Plus wasn't just hype, I was generally interested in getting more info on the SEO side of this project.

                                                      I've had a lot of nice people try out my own projects and leave comments in the past and it meant a lot to me so I'm just trying to pass that forward.

                                                  • visiwig

                                                    last Wednesday at 7:54 PM

                                                    Yes, I was lucky enough to find a keyword domain that was available. Would recommend :)

                                                • termwatch

                                                  yesterday at 12:38 PM

                                                  i did not know that i needed this until now

                                                    • visiwig

                                                      yesterday at 4:02 PM

                                                      cool, hope you find something useful!

                                                  • starkparker

                                                    last Wednesday at 3:58 PM

                                                    What's the license?

                                                      • visiwig

                                                        last Wednesday at 4:18 PM

                                                        The license can be found here: svgbackgrounds.com/license

                                                        Summary: You can use graphics in personal or commercial projects, you cannot use the graphics as the primary integrity of your product, you must provide attribution (svgbackgrounds.com/attribution)

                                                        And before anyone rips off my head, attribution can be placed inside commented out code, so it doesn't need to take away from your design.

                                                    • shah4as1

                                                      last Wednesday at 10:34 PM

                                                      this is exactly what i needed

                                                        • visiwig

                                                          yesterday at 4:18 AM

                                                          Glad I shared at the right time :)

                                                      • lakpahana

                                                        yesterday at 10:43 AM

                                                        comments ...

                                                        • Theodores

                                                          last Wednesday at 11:09 PM

                                                          What is your authoring tool for SVG?

                                                          The SVG code is well written. It is neither Adobe bloat-spam-slop and neither is it overly SVGOMG'd.

                                                          For picky SVG people you could have some easy way to present the code. Only a minority value quality SVG, artworkers do not look at SVG code and coders just see SVG as 'assets' from the artworker. SVG therefore has not evolved to a full art form.

                                                            • visiwig

                                                              yesterday at 4:27 AM

                                                              Hey great eye. I generally design in Illustrator with a plugin by Astute graphics that allows me to reduce unnecessary anchor points, run the exported SVG through SVGOMG, and then spend solid time hand coding each background in VS Code with the SVG extension by Jock that let's me see a live preview. Then on the actual site the customizer script I wrote will catch some attributes that aren't needed and remove them, but it's far from perfect.

                                                          • Frannky

                                                            last Wednesday at 11:11 PM

                                                            I am very confused by the comments, they seem too excited for this... Are they real or paid bots? If they are real, kudos to OP

                                                              • lukan

                                                                yesterday at 8:03 AM

                                                                They all seem to come from quite old HN profiles, though. So if someone managed to overtake old HN accounts for manipulation .. I would assume it would be for a more lucrative target?

                                                                • visiwig

                                                                  yesterday at 4:48 AM

                                                                  Hey thanks, I didn't pay for bots, unsure how to prove that though.

                                                                    • oniony

                                                                      yesterday at 9:19 AM

                                                                      Your bank statements for the last six months should be sufficient.

                                                                  • postsantum

                                                                    yesterday at 7:23 AM

                                                                    I wish I was able to be excited over svg backgrounds. How different life would be..

                                                                    • j45

                                                                      yesterday at 12:23 AM

                                                                      There’s likely folks who discovered to that svgs could do many amazing things, except the tooling didn’t seem to be readily available.

                                                                      Now when I see someone build something working with SVG, I check it out to see how it might compare to another way of doing it.

                                                                      • last Wednesday at 11:42 PM

                                                                        • ohyoutravel

                                                                          yesterday at 11:26 AM

                                                                          This one is quite good. The author is known, here fielding questions, and the project is like ten years old. If there are bots, I really don’t think they’re coordinated in any way with the OP, only coordinated in the usual “spam HN to get karma” sort of way.

                                                                          • mikodin

                                                                            yesterday at 2:42 AM

                                                                            Unclear but I will say upon opening the site I was sparked with joy and excitement to use them

                                                                            • owebmaster

                                                                              yesterday at 11:13 AM

                                                                              Your behavior makes HN worse the same way AI bots do it

                                                                                • ohyoutravel

                                                                                  yesterday at 11:22 AM

                                                                                  If there’s a scale of “making HN worse,” I’m not sure genuine human skepticism is on it. LLM generated walls of text and garbage Show HN posts sure are at the top though!

                                                                              • Frannky

                                                                                last Wednesday at 11:14 PM

                                                                                It may also be that I am just comment AI paranoid, but yeah, I find myself a lot guessing if there's a person behind a comment or not

                                                                                • yesterday at 1:31 PM

                                                                                  • democracy

                                                                                    yesterday at 9:48 AM

                                                                                    Yes we are all paid bots, thanks for your valuable input, chump

                                                                                • martinvalchev

                                                                                  yesterday at 12:01 PM

                                                                                  [dead]

                                                                                  • metacapuche1356

                                                                                    yesterday at 9:08 PM

                                                                                    [dead]

                                                                                    • Samlion

                                                                                      yesterday at 3:14 PM

                                                                                      [dead]

                                                                                      • decker502

                                                                                        yesterday at 12:32 AM

                                                                                        [dead]

                                                                                        • 3duardol1m455

                                                                                          yesterday at 5:08 AM

                                                                                          [dead]

                                                                                          • realaliarain74

                                                                                            yesterday at 12:41 AM

                                                                                            [dead]

                                                                                            • HalawehMohann49

                                                                                              last Wednesday at 9:25 PM

                                                                                              [flagged]

                                                                                              • AbrarTheCrypt34

                                                                                                yesterday at 1:10 AM

                                                                                                [flagged]

                                                                                                  • tclancy

                                                                                                    yesterday at 1:30 AM

                                                                                                    Tell me more.