agnostic-design-system 1.1.199
Install from the command line:
Learn more about npm packages
$ npm install @codelittinc/agnostic-design-system@1.1.199
Install via package.json:
"@codelittinc/agnostic-design-system": "1.1.199"
About this version
Our design system is meant to act as the backbones of simple projects at Codelitt.
See it live
We do not guarantee backwards compability! It will be of responsibility of each project to guarantee you are importing a specific version!
Getting your Github Token
- Access your tokens page
- Create a token that can read registry packages
- npm set //npm.pkg.github.com/:_authToken YOUR TOKEN
Inside the project folder:
- run
echo "registry=https://npm.pkg.github.com/codelittinc" >> .npmrc
- run:
npm install @codelittinc/agnostic-design-system
- add
import '@codelittinc/agnostic-design-system/dist/main.css'
to yourApp.js
import { Button, Row, Container, Col } from '@codelittinc/agnostic-design-system';
Made with ❤️ by Codelitt
Inside the src/docs
folder:
- Create a new document using the extension
.document.mdx
. For example:Welcome.document.mdx
- Import
Meta
component from@storybook/addon-docs/blocks
import { Meta } from '@storybook/addon-docs/blocks';
- It's good to define it inside a session so, you can do it if you configure the Meta title following the example below:
import { Meta } from '@storybook/addon-docs/blocks';
<Meta title='{Session_name}/{Title_document}' />
Inside the ADS project folder:
- run:
npm run build-lib-for-local-testing
Inside the Test Project folder:
- run:
npm install {path_ads_library}/agnostic-design-system
- run:
npm link react
- It will link the ADS's react with your example project's react - run:
npm ls react
- Both reacts should have the same version and be extraneous
After the steps above you will be able to use the ADS locally.