0.2.0 • Published 4 years ago

@megalink/design-system v0.2.0

Weekly downloads
2
License
-
Repository
github
Last release
4 years ago

Megalink Design System

The Megalink Design System powers our frontend apps. It contains reusable UI components that help us build complex, durable, and accessible user interfaces across our projects.

Install

The code is delivered as an NPM package:

npm install @megalink/design-system

Use

Add an alias for the package path to the compilerOptions of your tsconfig.json to make the imports shorter and clearer:

"baseUrl": ".",
"paths": {
  "@mds/*": ["node_modules/@megalink/design-system/dist/*"]
}

As long as creat-react-app does not support the paths property in tsconfig.json, the following workaround must be used: https://github.com/oklas/react-app-rewire-alias

You can then import icons or components:

import { HouseSVG } from '@mds/icons';
import { IconButton } from '@mds/components/core';

Dependencies

The following peer dependencies are required:

"react": ">= 16.13.0",
"react-dom": ">= 16.13.0",
"react-router-dom": ">= 5.1.0",
"styled-components": ">= 5.0.0",
"typescript": ">= 3.8.0"

Credits

We use the following tool and are very grateful for the free use.

Please let us know if we have forgotten anything!

License

At this time the Megalink Design System may not be used by third parties. Nevertheless the source code is public and can be used for inspiration. Please contact us if you are interested in using the design system for your own purposes.

The included icons and emojis from Aspen Grove Studios and OpenMoji are available under their original license CC BY-SA 4.0.

0.2.0

4 years ago

0.1.0

4 years ago