0.1.0 • Published 3 years ago
elc-ui-library v0.1.0
ELC-UI-LIBRARY
Development
Running the app
Install the dependencies
npm install
Run the App
npm start
If 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.scss
make 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 building
Follow the necessary steps for building.