Espressive's Functional Design System (FDS)
Please use the documentation site for all information about Cascara and how to use it: https://cascara.design
All other usage information in this repository is intended for contributors.
- Clone the repository to your local machine (UX Team will use Tower to do this)
- Open the repository in VSCode
- Open a new terminal in VSCode to run some commands using Terminal > New Terminal or the shortut: Ctrl + ~
- In the terminal, install all dependencies by running the following command:
yarn install
It is possible you may not have node or yarn installed on your system. If this step fails, please follow the additional steps below to Install NVM and Install Yarn before coming back to try this step again. If you already know how to install these missing dependencies and get the correct versions, using tools like Homebrew, go for it.
- To start the docs, run:
yarn docs start
- Visit the following link in your browser to see the docs running locally: http://localhost:3000/
- Edit any MDX files in
/packages/cascara/src
or in/docs/src/mdx
and they will automatically reload 🎊
We use Node and Node Packages in our codebase. Node has lots of different versions, and at times there are reasons we might need to switch to different versions. Therefore we should install Node Version Manager to allow us to switch versions easily.
- Check if nvm is already installed
nvm version
If the output of this command is
nvm: command not found
, proceed to install step 1. If the output of this command is some version number, you already havenvm
installed and can proceed to step 3.
- Run the CURL command in the terminal to install:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
- Verify that
nvm
has been installed:
nvm version
- If the output of the above command is
v14.18.2
you are done! 🎉 - If not... set the current version of node to 14.18.2:
nvm install 14.18.2
nvm alias default 14.18.2
- Go back to step 2 and verify the correct version of Node is installed
We use Yarn as our Node Package manager. It is responsible for installing, updating, and managing our dependencies in this monorepository. There is a 2.x version of Yarn available, but for now we are sticking with the latest version of the 1.x branch. Be aware of this if you ever need to look at documentation.
- Check if
yarn
is already installed
yarn -v
If the output of this command is
yarn: command not found
, proceed to install step 1. If the output of this command is some version number, you already haveyarn
installed and can proceed to step 3.
- Run the CURL command in the terminal to install:
curl -o- -L https://yarnpkg.com/install.sh | bash
- Verify that
yarn
has been installed:
yarn -v
- If the output of the above command is
3.1.1
(or higher) you are done! 🎉 - If not... get some help from a teammate on how to update your version of
yarn
We need to update this soon...
This project exists thanks to all the people who contribute. [Contribute].