←back to thread

681 points NetOpWibby | 3 comments | | HN request time: 0.212s | source

Hey everyone,

About a year ago I embarked on creating a color scheme for a project and I loved it so much I began using it for everything. I decided to make an official repo for it to share with the world.

Anyhoo, hope y'all enjoy it.

Show context
mglikesbikes ◴[] No.43073550[source]
This is exactly why I read HN! So cool. And a fellow Svelte lover. 10/10.

Good luck with the social network! It’s brutal out there..

PS — would be so cool to see a tailwind plugin of this (which in v4 should be just copying the vars in.. I didn’t look at the repo super closely). Great shit!

replies(1): >>43073790 #
NetOpWibby ◴[] No.43073790[source]
Thank you! We need more Svelte lovers against the tyranny of React.

RE: social network, I'm also gonna charge money to use it so I'm not yet another free option with a dubious future...an extremely tiny portion of people would pay for a social network so I'm hoping I can add enough features to make it feel worth it. So yeah, it's gonna be tough af out here LOL!

I've never used Tailwind because CSS-in-JS weirds me out. I looked at the docs and it seems like I just wrap my custom colors in `@theme.css`? Is there anything else I'd have to do? https://tailwindcss.com/docs/theme

replies(3): >>43074187 #>>43074668 #>>43075076 #
1. CSMastermind ◴[] No.43074668[source]
I really love the principles that Svelte tries to advance but I find some of their design decisions downright puzzling.

About 2 years ago I had to make a decision about what framework we were going to use for a new project and one of our developers was really into Svelte. I went through the tutorial and made a sample site. It felt like there were always sharp edges I was catching myself on.

I don't remember the specific but I feel like state management got confusing and you had to use work arounds to manually trigger updates in certain situations. Just seemed odd.

replies(2): >>43075092 #>>43075188 #
2. mglikesbikes ◴[] No.43075092[source]
Svelte 5 reimagines the reactivity features (“runes”) and gets rid of the foot-guns, I know exactly what you’re referring to with state management. V5 is much more straightforward to both reason about and bug fix.
3. NetOpWibby ◴[] No.43075188[source]
To echo mglikesbikes, I remember wracking my brain trying to figure out state stuff for more involved things like session management at the time. Svelte 5 was released recently and changed how they were doing state.

For me it's annoying because I got used to the old way. For newcomers, it may make more sense by default.

To Svelte's credit, they don't allow you to mix old and new ways of doing state so that's a great way to force people to learn the (new) correct way of doing things. A lot of React's issues are the abundance of old tutorials on the 'net, confusing newcomers trying to do something.