grommet

Grommet UI — Custom Color Schemes

女生的网名这么多〃 提交于 2020-01-11 06:07:22
问题 I'm using grommet-ui with webpack and react. How do I set my own color options. Is there a way to use my own custom colors/color schemes in place of predefined colors like colorIndex="neutral-1". 回答1: Yes, there is a way to override them, but it is currently not documented. I would start checking the colors here: https://github.com/grommet/grommet/blob/master/src/scss/grommet-core/_settings.color.scss For example, neutral-1 is used from this array $brand-neutral-colors: (#5d0cfb, #7026ff,

Grommet UI — Custom Color Schemes

天大地大妈咪最大 提交于 2020-01-11 06:07:10
问题 I'm using grommet-ui with webpack and react. How do I set my own color options. Is there a way to use my own custom colors/color schemes in place of predefined colors like colorIndex="neutral-1". 回答1: Yes, there is a way to override them, but it is currently not documented. I would start checking the colors here: https://github.com/grommet/grommet/blob/master/src/scss/grommet-core/_settings.color.scss For example, neutral-1 is used from this array $brand-neutral-colors: (#5d0cfb, #7026ff,

Grommet UI — Custom Color Schemes

我们两清 提交于 2020-01-11 06:06:29
问题 I'm using grommet-ui with webpack and react. How do I set my own color options. Is there a way to use my own custom colors/color schemes in place of predefined colors like colorIndex="neutral-1". 回答1: Yes, there is a way to override them, but it is currently not documented. I would start checking the colors here: https://github.com/grommet/grommet/blob/master/src/scss/grommet-core/_settings.color.scss For example, neutral-1 is used from this array $brand-neutral-colors: (#5d0cfb, #7026ff,

sass-loader not working with webpack + react + grommet

孤街醉人 提交于 2019-12-12 01:14:24
问题 I'm trying to get started with webpack and Grommet working together. I'm following this tutorial: https://github.com/grommet/grommet-standalone but I'm getting the following error: ERROR in ./src/app/index.js Module not found: Error: Can't resolve 'grommet/scss/vanilla/index' in '/home/john/Development/Work/Utilities/react_practice/test_app/src/app' @ ./src/app/index.js 31:0-37 @ multi library Clearly it's looking for the scss file files in the source directory rather than node_modules - but