@cfx-dev/ui-components
v2.1.11
Published
Include design system, utils and reusable components.
Downloads
963
Keywords
Readme
UI Component Library
Include design system, utils and reusable components.
Instalation
yarn add @cfx-dev/ui-components
or
npm install @cfx-dev/ui-components
Usage
In your bundler config add this sass option to use ui utils in styles:
additionalData: `@use "~@cfx-dev/ui-components/dist/styles-scss/ui" as ui;`,
import '@cfx-dev/ui-components/dist/styles-scss/global.scss';
Import default themes or take a look inside how to make your own:
import '@cfx-dev/ui-components/dist/styles-scss/themes.scss';
Add theme class name to body or root element
<body className="cfxui-theme-cfx">
For some components you will need to define this variables in your root stiles:
html {
--width: 100vw;
--height: 100vh;
--quant: calc(1rem * 0.25);
}
License
This project is licensed under the MIT License.