This repository holds the source code and documentation of the Tempo Platform Design System.
Stack:
- React
- TailwindCSS
1 - The original design of this design system lives in a Figma document.
2 - A local node.js script (./scripts/getFigmaTokens
) extracts styles from the Figma document (colors, fonts, spacings, breakpoints, shadows) and saves them in JavaScript format in the ./tpds/tokens/index.js
file.
3 - The ./tpds/tokens/index.js
file is imported by the TailwindCSS configuration file at ./src/tpds/system/tailwind.config.js
to personalize Tailwind according to the styles in Figma.
Finally, this project exports a NPM module that is in turn consumed by other projects.
The documentation site is a Next.js app. If you wish to run it in your machine, clone and run this project:
// Clone the project
git clone [email protected]:Tempo-Platform/tpds.git tpds
// cd into the folder
cd tpds
// Install the dependencies
yarn
// Start up
yarn dev
The project will run on http://localhost:3000/
See README in the npm_module
folder.
Documentation page Tempo Platform Design System
TPDS NPM module