fate-core
fate-core is the only strictly required element to be compatible with other fate elements.
It includes:
- normalize.css
- reboot.css
- tools to auto-configure all fate-elements in a project based on
.faterc
configuring
By default, fate-core will autogenerate a configuration based on the
defaults on the fate-elements that are installed in a project. To
modify the defaults, simply create a .faterc
with the appropriate
keys.
var constants = require('fate-core')();
...
// load css using postcss
{
test: /\.css$/,
loader: 'style-loader!css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!postcss-loader'
}
...
// set up postcss config
postcss: [
require('postcss-import')(),
require('postcss-url')(),
require('postcss-constants')({
defaults: constants
}),
require('postcss-cssnext')({
browsers: 'last 2 versions'
}),
require('postcss-nested'),
require('lost')
]
// .faterc
{
"fateCore": {
"bodyBg": "#e9eaed"
}
}