Title.

I’m going to use svelte and sveltekit. Most likely tailwind. Zod for validation.

Any tips and tricks/ideas, pits to watch for before I commit heavily into falling into them.

This project could potentially be in vue/react but in my opinion svelte is more appealing to me (specially because of stores)

  • Throwaway
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    9 months ago

    Same as any other project, just keep at it. Also styling as a prop is a bitch in svelte.

    • ______OP
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      What do you mean by styling as a prop?

      • Throwaway
        link
        fedilink
        arrow-up
        1
        arrow-down
        1
        ·
        9 months ago

        You know how in react, you can pass style to nested components with props? The classname/SX prop specifically? A tad harder to do in svelte.

        • silas@programming.devM
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 months ago

          I’d try using props for high-level component states (primary, secondary, disabled, loading, online, error, etc.) instead of one-off styles. Then your props will manage a bunch of styles and functionality all at once and you’ll stay a whole lot more organized. You can even have a settings/options prop that changes minor things if you’d like. Then, for one-off or edge-cases related to styling, you can use a css variable