@guardian/source
v12.2.1
Published
<img src="https://github.com/guardian/csnx/blob/main/libs/@guardian/source/assets/logo.png?raw=true" height="320" width="620" >
Keywords
Readme
@guardian/source
An NPM package containing design foundations and robust, accessible React components from the Guardian's Source Design System.
Install
$ pnpm add @guardian/sourceor
$ yarn add @guardian/sourceor
$ npm install @guardian/source[!NOTE] Use of the React components will require @emotion/react
Usage
Full documentation is available in the Source storybook.
foundations
Source design foundations (e.g. colour, spacing, typography etc) can be imported from the foundations subpath:
import { palette } from '@guardian/source/foundations`react-components
A set of robust, accessible, React components can be imported from the react-components subpath:
import { Button } from '@guardian/source/react-components`Contributing
We welcome contributions to Source! See our contributing and Storybook docs for more info.
