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
      01 year 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.

      • silasM
        link
        fedilink
        English
        21 year 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