Derived from Semantic UI.
There are two main differences with the default Semantic UI:
- This version will feel more like the bootstrap less code base, such that you only need to import the library once then you are free to structure code as desired.
- The variables have been renamed to allow for cross component comparability. All variables are
prefixed with the component name. Eg. For buttons,
@textColor
becomes@buttonTextColor
.
npm install semantic-ui-less-importable
The versions in npm track the semantic-ui versions.
In a less file:
@import "../../node_modules/semantic-ui-less-importable/semantic";
/*
Override variables and styles here
*/
Install python 3
Install dependencies
npm install
The script targets the version of semantic specified in the version.py file.
The script creates a npm package in the dist
folder, containing the rewritten semantic less source.
npm run build
Output can be found in the dist
folder.
The following command runs a simple smoke test of the less
npm run test
The rewritten source code can be published to npm.
npm run publish