.flatgold
.concrete
.darkgreen
.autumnbrown
.darkblue
&
.litecream
.
For now we only need to write code below in semantic.color.less, and compile it. But
in real world you can do whatever you want, depend on how you integrate it to your project structure.
$ git clone https://github.com/sieteminerva/Semantic-UI-Color-Generator.git
or
download
the source code
Because the dimmer.js code only manipulate the <div class="ui dimmer"></div>
,
So it wont take any effect if you define it like this: <div class="ui flatgold dimmer"></div>
in the Markup, instead you also need defining which color of dimmer you want to use in Variation Settings of your javascript code,
// So if you want flatgold dimmer define it like this
$('#containerWhereDimmerLives')
.dimmer({
on: 'hover',
variation: 'flatgold'
});
There is a variable called
@prefix: .ui;
modify it to
@prefix: .ui.yourThemeName;
Customize the CSS property of the selected component, dont forget to put !important;
mark for overriding.
Compile it. and now .yourThemeName
class automatically added into your generated component.
Then use it in your HTML markup <div class="ui yourThemeName red button">
In my case this approach more Clean and Easy for theming, without affecting the original version, and when semantic-ui got updated your site still up and running!