Show HN: I built 48 lightweight SVG backgrounds you can copy/paste(svgbackgrounds.com)
393 points by visiwig 3 days ago | 67 comments
- wackget 3 days agoThese 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 2 days agoSolid 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 3 days agoThose 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 3 days agoI 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 3 days agoThanks. 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 2 days agoI 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 2 days ago> 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 2 days agoI 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 2 days agofirefox (148.0.2) on linux, the preview for me is not working
tried them on chrome, it works fine, nice work
- hju22_-3 3 days agoThe 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 3 days agoYou 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 2 days agoFair 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.
- jjwiseman 3 days agoI 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 2 days agoFair, 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.
- dirkc 2 days agoI 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 2 days agoThanks, 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.
- throwaway2046 3 days agoThese are beautiful, thank you for sharing. I really like the one with the triangles, was it inspired by Rule 30?[-]
- visiwig 2 days agoNo 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!
- gerdesj 3 days agoNot one of these efforts emulate <blink />. I want my money back.
- yesthisiswes 3 days agoThese 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 2 days agoHmmm, 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 3 days agoEach one can be copied as inline SVG or CSS using the background-image property with a data URI. Most are under 1KB.
- Theodores 3 days agoWhat 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 2 days agoHey 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.[-]
- Theodores 1 day agoHave you tried the Jetbrains tools? The free one - WebStorm - comes with live preview.
Nowadays I put my SVG for icons in CSS as pseudocode elements. This means you can't 'use' or 'currentColor', but I am okay with that for icons.
https://en.wikipedia.org/wiki/Lea_Verou
Lea Verou got me started on this particular technique, the gotcha is that you have to escape the hash characters with %023. Her presentations can be found on Youtube, and Lea also has a fab website.
- ksymph 2 days agoHmm, 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 2 days ago> 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 2 days agoWhoopsie, thanks
- shellerik 2 days agoFYI - the previews do not work if you have the Dark Reader plugin enabled in your browser.
- pseudosavant 3 days agoI'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 2 days agoThanks for the kind words! I've played around a lot with SVG and love how you can change various attributes to achieve cool effects.
- dylanhouli 3 days agoGreat idea man, must be pulling in some good SEO traffic as well.[-]
- Frannky 3 days agoLike this user has a comment history of hyping show HN[-]
- dylanhouli 2 days agoI 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 3 days agoYes, I was lucky enough to find a keyword domain that was available. Would recommend :)
- Ashkaan 10 hours agoFantastic!
- starkparker 3 days agoWhat's the license?[-]
- visiwig 3 days agoThe 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.
- lakpahana 2 days agocomments ...
- Frannky 3 days agoI 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[-]
- j45 3 days agoThere’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.
- lukan 2 days agoThey 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?
- ohyoutravel 2 days agoThis 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.
- postsantum 2 days agoI wish I was able to be excited over svg backgrounds. How different life would be..
- owebmaster 2 days agoYour behavior makes HN worse the same way AI bots do it[-]
- ohyoutravel 2 days agoIf 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!
- mikodin 3 days agoUnclear but I will say upon opening the site I was sparked with joy and excitement to use them
- Frannky 3 days agoIt 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
- democracy 2 days ago[flagged]
- martinvalchev 2 days ago[dead]
- metacapuche1356 2 days ago[dead]
- Samlion 2 days ago[dead]
- decker502 3 days ago[dead]
- 3duardol1m455 2 days ago[dead]
- realaliarain74 3 days ago[dead]
- HalawehMohann49 3 days ago[flagged]