The Radius design system starter kit is a collection of open-source tools and libraries developed by Rangle to guide devs to build design systems faster. Design systems need to match increasingly flexible brand and product needs, to adapt to everchanging digital workflows.
radius-workspace
is 1 of 3 repositories that constitute the Radius ecosystem for accelerating the building of design systems!
This workspace reflects our internal R&D efforts to:
- automate the generation of design system starter boilerplates with a CLI
- offer the choice of popular choices around tooling, JS frameworks and style libraries
- enable the easy translation of Figma design tokens into styles within your new boilerplate that your dev team can readily work with and scale
See also:
- npm package for our CLI Tool
- Radius-Angular
- Radius[for React]
- rangle.io/radius
- Radius Design Kit on Figma
Use the CLI to:
- Generate design tokens from Figma URL
- Generate a design system repository
- WIP: Publish your generated design system to the npm registry
- Create a new design system project folder by running
npx radius-script init
- Select your framework of choice, name your project folder, and
cd
into it. - Run
npm install
to install all dependencies - Extract tokens from Figma
npx radius-script styles
To use Radius node version 14+
is needed
Enable yarn workspaces:
yarn config set workspaces-experimental true
Install dependencies:
lerna bootstrap
-
Instantiate a design system boilerplate!
npm cli:init
oryarn cli:init
-
Bootstrap the styles with Figma URL!
Pre-requisites:
- a Figma URL
- a Figma token
- optional environment variables for
packages/cli/.env
:FIGMA_URL
,FIGMA_TOKEN
npm cli:styles
or yarn cli:styles
- lerna for package distribution and publishing: uses yarn under the hood to pull dependencies
- husky for pre-commit actions, testing and linting
- eslint for formatting
- github actions for CI/CD
- tsnode for debugging
- jest for unit tests
- commitizen for conventional commit messages
.
├── .github
└── workflows/
├── .gitignore
├── .vscode/
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── DSMODULES.md
├── LICENSE
├── README.md
├── jest.config.base.js
├── jest.config.js
├── lerna.json
├── package.json
├── packages
│ └── cli
└── bin/
└── coverage/
└── dist/
└── node_modules/
└── src/
├── tsconfig.json
└── tsconfig.paths.json
Want to help us improve this, or hoping to see your favorite libraries or build tools integrated? See CONTRIBUTING.md
- TODO - Make sure this is the right license
- PR template is taken from here
- License was generated here
- Referenced this for the contributing doc