UI Component library and style helper mixins for SCSS.
-
Install library
yarn add @ebth/design-system
-
Import components
import * as React from 'react'; import { Button } from '@ebth/design-system'; type Props = { label: string; } export const MyButton: React.FC<Props> = ({ label }) => ( <Button>{label}</Button> );
-
Import shared utility classes (optional)
@import '@ebth/design-system/dist/utility';
-
Define your styles
// import base utility mixins and variables (if needed) @import '@ebth/design-system/dist/base'; .my-button { background-color: $green-300; color: $text-color; }
-
Create your component
import * as React from 'react'; import { Button } from '@ebth/design-system'; type Props = { label: string; } export const MyButton: React.FC<Props> = ({ label }) => ( <Button className="my-button">{label}</Button> );
Please see documentation for contributing here.
MIT License.