npm install
npm run build # not actually needed for testing
npm testnpm run watch- From Figma settings, ensure your account has "Dev seat" listed
- Open the "Glides/Orbit Design Library" in Figma
- In the bottom toolbar, click "Dev Mode"
- In the Figma right-hand sidebar, click "Plugins" and then "Prism Token Exporter - W3C Token JSON" (if the plugin has not been saved, open the Prism Token Exporter community plugin and click the bookmark icon)
- Click "Download Tokens" and save
- Unzip the
design-tokens.zipfile previously downloaded - Copy the contents above to
assets/figma-tokens/(overwriting existing files) - TEMP: check for any "hover" states in the JSON files and manually delete them (temporary workaround)
- Run
npm run process-tokensto invokeprocess-figma-tokens.ts, which will generatevariables.*.cssstylesheets inassets/css/, as well astokens.js, which will be used to build the Tailwind theme - Manually update
tailwind.config.tsfollowing the hierarchy and casing conventions for keys, using the values defined intokens.js
If running a local copy within glides or orbit using npm link, make sure to ALSO run:
npm link ../glides/node_modules/react ../glides/node_modules/react-domwithin rail-tech-ui to ensure that they're using the same react. Otherwise, the ladder will error out on load!
This assumes that rail-tech-ui and glides share a parent directory. If developing against orbit, change glides to orbit.