React UI library for CheaprEats

Usage no npm install needed!

<script type="module">
  import cheapreatsReactUi from 'https://cdn.skypack.dev/@cheapreats/react-ui';


CheaprEats UI Library

PR Requirements

  • Showcase Visual Layer through an Image on your Pull Request
  • Showcase Interactions / Animations Layer through a GIF / Video on your Pull Request
    • Macbook: Command+Shift+5
    • Windows: Snip Tool

Installation Requirements

Prettier: https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode

Getting Started

Storybook: https://storybook.js.org/

TypeScript: https://www.typescriptlang.org/

Atomic Design: https://atomicdesign.bradfrost.com/

This repository encompasses the Component Driven Design Methodology.


This folder is where you will be building your UI, no-data-logic only components.


This folder is where you will be testing your UI on Storybook for different ViewPorts (Responsiveness), Accessibility and functionality.


This folder contains the Storybook configuration options


This folder contains code generation scripts to help make development faster.

Helpful Resources

Need Icons

Use the Styled-Icons library to import icons from : https://styled-icons.dev/


Contains all the styling that CheaprEats uses so you don't have to guess to color codes, Also your components will automatically translate to dark mode! To Add a Color to the Theme Modify both the MainTheme File and DarkTheme File (Add the Typing for the New Color as well as the Color Code for the new Color Key)

Mixins (Responsiveness)

When Importing/Using This Library (Try without this first as library has been fixed)

  • Ensure there is only one instance of react & react-dom being used in your app. Use Webpack alias to point to ./node_modules/react & ./node_modules/react-dom respectively. When you import this library there is the Version of React by the Library and the version of React by your app being used simutaneously. Even if they are the same versions, two copies of react/react-dom will cause issues. Point all instance of react/react-dom to the one used by your application using Webpack Aliases.
  resolve: {
    alias: {
      // add as many aliases as you like! 
      "react": "./node_modules/react",
      "react-dom": "./node_modules/react-dom"
  • Wrap you app with the Theme Object You need to import Global into your app and wrap your app with the Global to Access the Theme.
    return (
                JSON.parse(localStorage.getItem('isDark') ?? 'false')
                    ? extendThemeDark
                    : extendThemeMain
            <QueryClientProvider client={queryClient}>
                    <Route path="/:id" component={Dashboard} />