News for hackers. Stuff that matters.
Re:Nazca – New GUI for the Web by dangoor on Wednesday November 03, 2021 @09:52AM (#29094537)
A lot of the comments here read like folks didn't continue on through the readme to get to the class definitions and code parts. I think this sort of experiment with a different approach is cool.

Personally, I prefer the way Svelte blends HTML/JS/CSS together in a file, because it's a smaller abstraction layer than what Nazca provides, thus making it clearer how things will end up after compilation.

Re:Nazca – New GUI for the Web by pier25 on Wednesday November 03, 2021 @11:37AM (#29096156)
I adore Svelte, but I still have a separate project for SCSS for a number of reasons.

1) There's always a need for global CSS anyway.

2) I've found having styles in SFCs only works for very small components. Once you're adding JS and HTML, SFCs become a pain to navigate. I've been using SFCs in Vue too for 6 years.

3) Having an old school SCSS project makes it much easier to use all SCSS features (eg: mixins) and organize the cascading in any way you prefer.

4) If you have a separate design team, they can work on the SCSS in parallel.

Re:Nazca – New GUI for the Web by dangoor on Wednesday November 03, 2021 @02:25PM (#29098492)
That makes sense. I just started a new project with SvelteKit and Tailwind. I appreciate how Tailwind puts some boundaries and defaults around the styling of components, and recognize that there are still places where global styling makes sense.
Re:Nazca – New GUI for the Web by FractalHQ on Wednesday November 03, 2021 @09:45PM (#29102784)
I always have a “styles” folder with scss in my Sveltekit projects, and use scss in my Svelte components. Svelte auto-preprocessor makes it pretty effortless.
Re:Nazca – New GUI for the Web by pier25 on Thursday November 04, 2021 @01:44PM (#29110287)
How do you control the cascading?

Can you use Mixins without having to import them on every .svelte file?

Re:Nazca – New GUI for the Web by Jarwain on Wednesday November 03, 2021 @10:50AM (#29095472)
This is the main reason why I liked/chose vue over react at the beginning; SFCs felt like a reasonable way to break up widgets and minimized the learning curve