[英]How do I access the theme object in Material UI when using React?
[英]I have a problem when following the docs to customize the theme on react using elastic ui
當我想自定義主題時,這會失敗。 有誰知道如何解決這個問題?
我的項目 Github 鏈接在這里。
Failed to compile.
./src/themes/light/index.scss (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/themes/light/index.scss)
SassError: no mixin named euiScreenReaderOnly
on line 3 of node_modules/@elastic/eui/src/components/accessibility/_screen_reader.scss
from line 1 of node_modules/@elastic/eui/src/components/accessibility/_index.scss
from line 4 of node_modules/@elastic/eui/src/components/index.scss
from line 7 of /Users/austin/Documents/sideproject/eui-layout/src/themes/light/index.scss
>> @include euiScreenReaderOnly;
-----------^
訂單需要正確,不要進入功能
錯誤的@import '../../../node_modules/@elastic/eui/src/global_styling/functions /index';
對 @import '../../../node_modules/@elastic/eui/src/global_styling/index.scss';
@import './color.scss';
$euiSize: 14px;
// Global styling
@import '../../../node_modules/@elastic/eui/src/global_styling/index.scss';
@import '../../../node_modules/@elastic/eui/src/components/index.scss'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.