0.1.0 • Published 5 years ago
elc-ui-library v0.1.0
ELC-UI-LIBRARY
Development
Running the app
Install the dependencies
npm installRun the App
npm startIf you get the Error -
$variable not defined- Open
src/styles/style.scss - Uncomment the import statement for theme.scss
If it is not imported already, add the follow:
// Import theme in development only - Comment before building @import './themes/theme'; // Import theme in development only - Comment before building
- Open
Inside
src/styles/themes/\_theme.scssmake sure to import the theme you want to apply// Strictly for development only // Imported in styles.scss // Comment the import statement before building. // Choose the theme to apply. @import './dark-theme/all';
Building - Production
Make sure you comment the import statement for theme in
src/styles/style.scss// Import theme in development only - Comment before building // @import './themes/theme'; // Import theme in development only - Comment before buildingFollow the necessary steps for building.