代码拉取完成,页面将自动刷新
EUI can be easily themed by overwriting the global styling variables. Currently we maintain the following themes:
Each of these themes include variables, mixins, functions and other overwrites that adjust colors and sizing to fit the needs of that theme.
src/themes/my_theme_name/
directory..scss
files you need for your theme in this folder (Ex: src/themes/my_theme_name/my_theme_color.scss
).src/theme_light.scss
and call it src/my_theme_name.scss
.// These are variable overwrites used only for this theme.
@import 'themes/my_theme_name/my_theme_name_sizes';
@import 'themes/my_theme_name/my_theme_name_colors';
// Global styling
@import 'global_styling/index';
// Components
@import 'components/index';
Lastly, make sure to include your theme in the /src-docs/index.js
file so that it's available
through the theme selector.
Touch the least amount of variables possible. By nature EUI is very rigid. You shouldn't need much to make drastic changes to color. Most themes are less then a dozen variable overwrites in total.
src/global_styling
folder.此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。