Package Exports
- @ecomplus/storefront-twbs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ecomplus/storefront-twbs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
storefront-twbs
Generate Bootstrap 4 custom theme for E-Com Plus storefront.
Compiling the storefront theme
From CLI, compile the custom SASS theme to new storefront
Bootstrap kit and utilities passing directories
and brand colors RGBs (without #):
npm i -g storefront-twbs
storefront-twbs ~/mytheme/scss ~/mytheme/dist 6f42c1 e83e8cNote that ~/mytheme/scss directory must contain
theme folder with at least
_variables.scss and _components.scss files.
Creating custom theme
Clone the GitHub repository and install dependencies with NPM:
git clone https://github.com/ecomclub/storefront-twbs
cd storefront-twbs
npm iEdit the SASS files in the scss/theme directory,
we recommend start from _variables.scss.
Start the localhost test server with:
npm run testOr optionally just compile the SASS to CSS with:
npm run buildWhen you're done, generate sourcemap and minified CSS
on dist folder by running:
npm run distFor partners
Note that your dist is not ready for stores, we also have to compile with the brand colors defined by the desired merchant.
The customized SASS files on theme folder will be used
to compile the theme for each store with respective
brand colors, so these are the files that you should
publish on Market to distribute
your theme.
Reference
https://getbootstrap.com/docs/4.3/getting-started/theming/ https://uxplanet.org/how-to-customize-bootstrap-b8078a011203
tl;dr
You can also find open source Bootstrap 4 themes on Bootswatch 😉.