Supported languages
Out of the box, the coffeekraken development stack support these languages:
CSS
: Plain old cssPostCss
: PostCss with some plugins that are:
@coffeekraken/s-postcss-sugar-plugin
The sugar plugin for PostCss gives you a lot of features like:
- Access theme configuration properties like
margins
,colors
,paddings
, etc... using somesugar
functions like so:color: sugar.color(main)
: Apply the main color to the textpadding: sugar.padding(30)
: Apply the30
padding- etc...
- Utilities through some mixins like:
@sugar.depth(30)
: Apply the depthj30
@sugar.icon.classes(...)
: Define some icons to be used in your HTML@sugat.layout(1 2 3)
: Build some complex layouts usingcss grid
.- etc...
- Theming support using these mixins:
@sugar.theme(dark)
: Apply the dark theme to any HTMLElement and his children@sugar.init
: Apply some resets as well as printing the variables needed for theming- etc...
Note that the values passed in the mixins like
30
,main
, etc... are values coming from the theme configuration. All of these can be updated through out configuration system. More information on theming here.