0.0.17 • Published 4 years ago
ds-core-ui-components v0.0.17
DS Core UI Components
Core component library
Project setup
npm installCompiles and hot-reloads for development
npm run serveCreating and compiling new components
When you are done creating a new component make sure to add the new component to the index.js file
Example
export { default as DsButton } from '@/lib-components'Run the following command to build the components
npm run buildHow to add the components to your project
Add the component repo to the package.json file:
npm i ds-core-ui-components --saveUsing Vue Components:
Add the following import statements:
import DsCoreUiComponents from 'ds-core-ui-components'Styling
Styles can be overridden in main application
:root {
--main-color: #396387;
}Dynamic styling example
document.querySelector('body').style.setProperty('--main-color', 'blue');