Conventions

There are some code conventions that the toynet-react codebase tries to follow that are not set in any ESLint rule but will be enforced on code reviews. These conventions help to keep the codebase similiar across the various components and files in the proejct.

  • We use Chakra UI v0.8 for most of its components.

  • We try not to use inline styles (e.g. style={{ color: 'white' }}).

  • We use emotion styled components for custom styles that cannot be achieved using the traditional props of the Chakra component (i.e. custom media queries).

Last updated