Skip to content

agnostic-design-system 1.1.198

Install from the command line:
Learn more about npm packages
$ npm install @codelittinc/agnostic-design-system@1.1.198
Install via package.json:
"@codelittinc/agnostic-design-system": "1.1.198"

About this version

Codelitt's Agnostic Design System

Our design system is meant to act as the backbones of simple projects at Codelitt.

See it live

Warning!

We do not guarantee backwards compability! It will be of responsibility of each project to guarantee you are importing a specific version!

How to install

Getting your Github Token

  1. Access your tokens page
  2. Create a token that can read registry packages
  3. npm set //npm.pkg.github.com/:_authToken YOUR TOKEN

Inside the project folder:

  1. run echo "registry=https://npm.pkg.github.com/codelittinc" >> .npmrc
  2. run: npm install @codelittinc/agnostic-design-system
  3. add import '@codelittinc/agnostic-design-system/dist/main.css' to your App.js

Importing a component

import { Button, Row, Container, Col } from '@codelittinc/agnostic-design-system';

Made with ❤️ by Codelitt

Creating a new document for the StoryBook Page

Inside the src/docs folder:

  1. Create a new document using the extension .document.mdx. For example: Welcome.document.mdx
  2. Import Meta component from @storybook/addon-docs/blocks
import { Meta } from '@storybook/addon-docs/blocks';
  1. 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}' />

Testing ADS library locally

Inside the ADS project folder:

  1. run: npm run build-lib-for-local-testing

Inside the Test Project folder:

  1. run: npm install {path_ads_library}/agnostic-design-system
  2. run: npm link react - It will link the ADS's react with your example project's react
  3. 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.

Details


Assets

  • agnostic-design-system-1.1.198.tgz

Download activity

  • Total downloads 241
  • Last 30 days 0
  • Last week 0
  • Today 0