forked from neos/neos-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUGFIX: Fix the storybook integration and update to webpack 3
- Loading branch information
1 parent
4522229
commit f421380
Showing
37 changed files
with
672 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// ToDo: Usually this file would be named `postcss.config.js`, but we had to | ||
// rename it since the postcss-loader of webpack expected to find it on a higher level(?), | ||
// revisit later on and name the file accordingly. | ||
const brand = require('@neos-project/brand'); | ||
const brandVars = brand.generateCssVarsObject(brand.config, 'brand'); | ||
|
||
module.exports = { | ||
plugins: [ | ||
require('autoprefixer')({ | ||
browsers: ['last 2 versions'] | ||
}), | ||
require('postcss-css-variables')({ | ||
variables: Object.assign({ | ||
// | ||
// Spacings | ||
// | ||
'--goldenUnit': '40px', | ||
'--spacing': '16px', | ||
'--halfSpacing': '8px', | ||
'--quarterSpacing': '4px', | ||
|
||
// | ||
// Sizes | ||
// | ||
'--sidebarWidth': '320px', | ||
|
||
// | ||
// Font sizes | ||
// | ||
'--baseFontSize': '14px' | ||
}, brandVars) | ||
}), | ||
require('postcss-import')(), | ||
require('postcss-nested')(), | ||
require('postcss-hexrgba')() | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.