News for hackers. Stuff that matters.
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @09:58AM (#24177807)
Hey HN! GradientMagic is a side project that I launched roughly a year ago. It’s a large gallery of unique CSS gradients. You can browse the different patterns and copy the CSS with a single click, no login required. CSS gradients are often preferable to images since they are usually much smaller and easier to manage.

I would love any feedback or improvement ideas, but my real question is this: is it worth my time to try and monetize it? I’ve considered two approaches: (1) selling premium content bundles (2) subscription based approach w/ access to premium content and advanced features. I like (1) because it would be easier to implement. I like (2) because there is more value I can offer through advanced tools.

For reference, I get about 100 visitors a day right now with almost no marketing and very few updates (lately).

Re:Show HN: GradientMagic by nitrogen on Sunday August 16, 2020 @05:53PM (#24181681)
Just one suggestion: showing the CSS inline would be helpful. Admittedly I only bounced around for like 30 seconds, but I didn't see a way to show CSS on the page.
Re:Show HN: GradientMagic by unicodepepper on Monday August 17, 2020 @12:10AM (#24183860)
This is delightful. I appreciate you having made this.
Re:Show HN: GradientMagic by thnder on Sunday August 16, 2020 @12:32PM (#24179107)
These are great good work!!
Re:Show HN: GradientMagic by kejaed on Sunday August 16, 2020 @12:05PM (#24178868)
As I opened this on my phone I thought that these would make a nice background image.

While I recognize that the whole premise is that CSS gradients are better suited than images for their intended purpose, I immediately looked to see if the website offered a way to render an image and download it. Or perhaps even turn off the UI and have a no chrome view so one could take a screenshot.

Perhaps this could be a monetization strategy, instant gratification download for $1 with low friction Apple/Google Pay (perhaps watermark removal). I know this wasn’t anywhere near the intended purpose of your project, it is just what came to mind for something I might pay for when seeing it.

Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @12:30PM (#24179088)
Great idea! I've considered adding an option to download individual gradients as an image, but I haven't thought about that as the primary focus. Certainly the number of people interested in cool backgrounds is going to be much larger than the current audience of frontend web developers.

The cool thing is that the two target audiences aren't mutually exclusive. So long as I continue to build out the images in CSS, I can offer both image and CSS download options.

Re:Show HN: GradientMagic by perk on Sunday August 16, 2020 @01:35PM (#24179582)
FWIW html2canvas is pretty good for all html-screenshotty things. Might work here as well.

https://html2canvas.hertzen.com/

Re:Show HN: GradientMagic by onion2k on Sunday August 16, 2020 @04:23PM (#24180943)
Good as html2canvas is, these days you may get more milage creating an SVG, putting the HTML content in it as a ForeignObject, and then using the browser's ability to copy an image to a canvas with the SVG as the source. I use that technique in a very complex diagramming app I work on and it never seems to fail regardless of the HTML content. Getting fonts and external styles to work is fun but that wouldn't apply here.
Re:Show HN: GradientMagic by xamde on Monday August 17, 2020 @01:10AM (#24184194)
Off-topic, but please tell us more about the diagramming app.
Re:Show HN: GradientMagic by perk on Sunday August 16, 2020 @01:40PM (#24179617)
Come to think of it, CSS isn't its strongest side. No support for filters I think. Maybe worth checking it out anyway.
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @01:52PM (#24179712)
I looked into it before, and I don't think html2canvas would work. IIRC the only way to get the gradients was using the screen capture API [1], which works, but requires users to click an authorization prompt before use.

[1] https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capt...

Re:Show HN: GradientMagic by perk on Sunday August 16, 2020 @03:21PM (#24180428)
Hm. I've used image-screenshot [1] in the past together with html2canvas to get CSS filter support in screenshots. Don't know if it would work in your scenario though.

[1] https://www.npmjs.com/package/image-screenshot

Re:Show HN: GradientMagic by mindvirus on Sunday August 16, 2020 @01:07PM (#24179360)
Beautiful! I'm going to use a few of these for my project.

For monetization - maybe start with ads and add a https://www.buymeacoffee.com/ link or similar? I'm not convinced subscriptions would work, since I imagine that a lot of people need a gradient once and that's it, but you can always ask people.

In terms of feature suggestions:

- I like the edit colors feature - but can you make it global? i.e. I have my colors in mind, and want to see with various gradients.

- Can you convert this to code for non-CSS apps? For example, Flutter has a LinearGradient class that it seems like most of these should translate to in a straightforward way.

Re:Show HN: GradientMagic by ci5er on Sunday August 16, 2020 @04:21PM (#24180929)
May I ask where you live? pixelarity.com has a hundred-or-so (I haven't counted) Bootstrap templates that save me time whenever somebody wants me to set up a small website (for free - I hate that), and for the $5/month or $20/year or whatever it is - it's worth it to me.

I've notice that a lot of people on HN don't want to pay $20/month (or whatever) for things that save them hours and hours of work. I don't understand this unless they don't make much per hour (and this is a global community - so that may be real!).

How would one go about pricing for a global community? I'm assuming that my laziness drives my willingness to pay $20/month for something that is essentially outside of my cone-of-expertise, and I find value in that, but others done? (I also value time over money - which I have learned is not universal).

OK. That was a meandering comment - I apologize. Thought?

Re:Show HN: GradientMagic by mindvirus on Sunday August 16, 2020 @06:15PM (#24181832)
In NYC. That's a fair point - thinking in terms of annual access makes more sense.

For me it's more adversion to subscriptions for things I use once. I'm always happy to pay for things I use, but if I subscribe for $10/month and forget I don't find out until years later that I spent $100s on a thing. That said for anything like these gradients, for $10-$15/year I wouldn't hesitate.

Re:Show HN: GradientMagic by ci5er on Sunday August 16, 2020 @06:50PM (#24182059)
I have a little of that with O'Reilly Safari. (Currently) they only charge me $199/year, but are thinking to raising the price to $499. I'm thinking I would rather buy their books one-off.

But I buy a shit-ton of stuff at ~10/months (maybe $5, maybe $20), but if they jack their rates I will go one-off again.

I don't know if I am unique (and thank you for answering the question), at a certain level like JetBrains IDEs or Sublime or O'Reilly - I just pay it. It starts to wear on one over time....

Apple kills me. I tend to release things on Linux or Windows. Maybe Windows. But iOS - You have to have a Mac and a Development platform and subscription. I think they must hate developers. I would pay them for product sold - but can you at least make dev tools a little cheaper? I run into this issue in university dev-camp conversations a lot..

Re:Show HN: GradientMagic by eddywebs on Sunday August 16, 2020 @01:22PM (#24179481)
I second the idea of the being able to export for non web/css, these gradients are too good and could be used for graphic design as well. Also the idea of adding tip jar/non invasive monetization.
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @01:59PM (#24179756)
Yeah, thats my concern with subscriptions as well. I'm not sure many people would need to come back that often. Maybe more premium features (like what you highlight below) would work? Instead of just being a hub for gradients, it becomes your first stop anytime you need a cool image.

I'd be curious as to what other non-css formats would be helpful. You mention Flutter LinearGradient, are there others? SVG certainly, is there a way to make images export friendly for Sketch or Figma?

Re:Show HN: GradientMagic by mindvirus on Sunday August 16, 2020 @03:57PM (#24180705)
My two cents would be to stay focused - there are a ton of general image search resources online. unsplash.com for example seems hard to beat. One place to consider expanding to would be CSS animated gradients though.

In terms of generating code: - Android - iOS (objective-c + swift) - React Native - Flutter

seem like the most popular non-CSS based mobile frameworks.

Re:Show HN: GradientMagic by TedDoesntTalk on Sunday August 16, 2020 @03:56PM (#24180702)
I’d love to see these paired with css animations for subtle background changes between gradients.

Maybe that’s premium content. I’m not sure how useful it is to designers since I am not one.

Re:Show HN: GradientMagic by Evan_Hellmuth on Sunday August 16, 2020 @12:46PM (#24179222)
Common way to monetize sites like yours is ads via Carbon, eg https://colors.lol/

Another more lucrative but laborious way is to use this site as an ad for contract work. Just throw a banner on top “need custom design work for your next product launch? Contact me here”

Re:Show HN: GradientMagic by ggrelet on Sunday August 16, 2020 @05:58PM (#24181717)
I don’t understand the part about https://colors.lol/ (viewing on mobile phone)
Re:Show HN: GradientMagic by Evan_Hellmuth on Sunday August 16, 2020 @06:44PM (#24182015)
An example of a similar site that monetizes with ads via carbon
Re:Show HN: GradientMagic by lanecwagner on Sunday August 16, 2020 @12:42PM (#24179188)
This is so sick! I just swapped out my background images on https://classroom.qvault.io/ for some of these gradients. Loads way faster AND looks better now. Thanks for sharing :)
Re:Show HN: GradientMagic by monokai_nl on Sunday August 16, 2020 @04:41PM (#24181116)
Those gradients are nice, I like that they are more complex than linear gradients. If you’re looking for something simpler though, I also took a stab at CSS gradients here: https://mybrandnewlogo.com/color-gradient-generator
Re:Show HN: GradientMagic by ctippett on Sunday August 16, 2020 @09:23PM (#24182909)
My current go-to resource for gradients is https://uigradients.com. One feature I'd personally appreciate is a programmatic interface for getting a list of gradients, it's handy for generating dynamic backgrounds.
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @09:46PM (#24183062)
uigradients is really nice, although they only have linear gradients (which look really good). I created Gradient Magic to highlight the large variety of styles and patterns that are possible.

As far as an API goes, how would you organize the input/output for dynamic backgrounds? Maybe send a style and colors, and get a random gradient of that color?

Re:Show HN: GradientMagic by padmadevu on Tuesday August 25, 2020 @04:07AM (#24269118)
Its Really Nice!!! Visit us for getting the certification in DevOps Training with low fees and Placement Guranteed.

https://devu.in/devops-certification-training-in-bangalore/

Re:Show HN: GradientMagic by Cyphase on Sunday August 16, 2020 @02:55PM (#24180201)
Great resource, thanks for making it!

One bit of feedback; it would be nice if there was a way to view the CSS within the site – and dynamically updated as you edit a gradient – instead of having to use the Copy CSS button and paste it somewhere to see it. Bonus points for nice formatting and comments.

Re:Show HN: GradientMagic by xingyzt on Sunday August 16, 2020 @02:32PM (#24180009)
Unfortunately Chrome doesn't do antialiasing on these constant-interpolation gradients. The bug is less noticeable here with low-contrast color pairs, but leaves ugly diagonals when you use them for finer patterns.
Re:Show HN: GradientMagic by adontz on Sunday August 16, 2020 @04:28PM (#24180997)
Are not these much heavier than SVG image backgrounds? I tested by putting five backgrounds into my real web project and scroll does not seem smooth anymore.
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @06:54PM (#24182090)
It depends on a number of factors. Some of the more complex gradients could certainly be larger than some of the SVGs you are using in terms of raw size, but I'm not sure that would affect scrolling. If you link me to your project I would be happy to take a look.
Re:Show HN: GradientMagic by andrewmcwatters on Sunday August 16, 2020 @10:14PM (#24183219)
I wonder how many people here remember Subtle Patterns. Eventually it was acquired by Toptal. Always interesting how times change.
Re:Show HN: GradientMagic by blisseyGo on Sunday August 16, 2020 @06:15PM (#24181827)
These are awesome! Will use this on my next project! Do these work on all browsers? And how's the performance?
Re:Show HN: GradientMagic by jordanmarshall on Sunday August 16, 2020 @06:52PM (#24182074)
They should work consistently on all modern browsers except IE. As far as performance, they should be "faster" than needing to download external images. In terms of page rendering performance, I'm not completely sure. They might take more rendering time, but I've never noticed it, and it's certainly going to be faster than download time for an image (even a small one).
Re:Show HN: GradientMagic by isometric on Monday August 17, 2020 @10:32AM (#24187630)
Really cool! I have used it in my project.
Re:Show HN: GradientMagic by ChrisMarshallNY on Sunday August 16, 2020 @01:46PM (#24179662)
That's really nice! I bookmarked it.

Thanks for sharing it.

Re:Show HN: GradientMagic by slig on Sunday August 16, 2020 @04:30PM (#24181024)
Fantastic job, thanks for sharing!