Skip to content

JDIZM/vite-react-spa-starter

Repository files navigation

vite-react-ts-redux

Tech Stack

Getting Started

This project uses Volta.sh to manage npm versions. If you don't have it installed please see the Volta.sh website for installation instructions.

# install dependencies
pnpm install

# start dev server
pnpm dev

# build for production
pnpm build

Storybook

# start storybook
pnpm storybook

Using the updated CSF 3.0 syntax see https://storybook.js.org/blog/component-story-format-3-0/

For more on writing stories see: https://storybook.js.org/docs/react/writing-stories/introduction

Theme

Theme styles use SASS/SCSS for preprocessing and BEM naming methodology.

A base color scheme is defined using SASS maps which is applied using mixins to set the theme based on the user preferences.

If you wish to change the color scheme then you can apply a .light or .dark class to the html/body to overwrite the existing scheme.

Resources

When defining path aliases in tsconfig.json we are using eslint-import-resolver-alias to resolve the paths in eslint.