designtokens.org-gatsby
designtokens.org-gatsby copied to clipboard
DEPRECATED, new source is available in https://github.com/design-tokens/designtokens.org
designtokens.org
Work in progress - public contributions aren't accepted for the moment.
Quick start
-
Clone this repository
-
In a terminal,
cdinto this directory -
Install
nvm, and run this command to ensure your local environment is running the correct version of Node.js:nvm install
To run the website locally:
- Run
yarn install(if the install fails, runrm -rf node_modulesand try again) - Run
yarn develop
Storybook
Run yarn storybook to preview stories in a browser.
Building the tokens
Design tokens are located in the packages/design-tokens directory.
- Make changes to files in
packages/design-tokens/tokens - Run
yarn workspace @dtcg/design-tokens build
Deploying the site
Changes to master are automatically deployed to https://www.designtokens.org.
Note on MDX
Pages can be created and edited using JavaScript, JSX, and MDX.
Configuration: https://www.gatsbyjs.org/packages/gatsby-plugin-mdx/#configuration
Editing the code
Using VS Code is recommended.
To benefit from the best linting and on-save formatting experience, install the recommended extensions for the workspace, which are available as show below:
