Comments (17)
Now that I think about it, I'm not sure this UI change was intentional,
It seems than index.css has a syntax error (I get this message when I run "npm run build")
from chatui.
Yes, the beta version has a new UI. If you want to change the style, you can use the less variable. see https://chatui.io/docs/customize-theme
from chatui.
Now that I think about it, I'm not sure this UI change was intentional,
It seems than index.css has a syntax error (I get this message when I run "npm run build")
Which version is this?
from chatui.
Yes, the beta version has a new UI. If you want to change the style, you can use the less variable. see https://chatui.io/docs/customize-theme
Yes but the problem is, the text on primary buttons is gray-1 which means that for any darker brand colour, I would have to set gray-1 = #fff for the buttons to be legible, which would probably cause alot of other stuff to break
from chatui.
Now that I think about it, I'm not sure this UI change was intentional,
It seems than index.css has a syntax error (I get this message when I run "npm run build")Which version is this?
I've tried both 1.0.0-beta.5 and 1.0.0-beta.4 and it happened on both. I have not tried the other betas
from chatui.
Yes, the beta version has a new UI. If you want to change the style, you can use the less variable. see https://chatui.io/docs/customize-theme
Yes but the problem is, the text on primary buttons is gray-1 which means that for any darker brand colour, I would have to set gray-1 = #fff for the buttons to be legible, which would probably cause alot of other stuff to break
I mean you can modify the less variable, like:
@btn-primary-color: #fff;
from chatui.
Now that I think about it, I'm not sure this UI change was intentional,
It seems than index.css has a syntax error (I get this message when I run "npm run build")
This seems to be a problem with the postcss plugin, see:facebook/create-react-app#10095
or you can import less file:
import '@chatui/core/es/styles/index.less';
from chatui.
Now that I think about it, I'm not sure this UI change was intentional,
It seems than index.css has a syntax error (I get this message when I run "npm run build")This seems to be a problem with the postcss plugin, see:facebook/create-react-app#10095
or you can import less file:
import '@chatui/core/es/styles/index.less';
the less file doesn't get rid of the error (and it can't replace index.css as far as I can tell). As for the postcss solutions, I don't think npm has an equivalent for resolutions.
edit: I found a way to do resolutions but it still didn't fix the problem
from chatui.
just to be clear, I don't get this error in 0.3.3
from chatui.
Can you show me the package.json file? the 0.3.3 and beta project
from chatui.
[image]
from chatui.
v1.0.0-beta.5 has this line of code causing the error:
.ScrollView--fullWidth{margin:0 calc(var(--gutter)*-1)}
You can upgrade postcss-custom-properties
to solve
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
+ },
+ "resolutions": {
+ "postcss-custom-properties": "^11.0.0"
+ },
+ "devDependencies": {
+ "postcss-custom-properties": "^11.0.0"
}
and npm i
from chatui.
I still get the same error when I npm run build, I even tried npm ci after the npm i
from chatui.
I used create-react-app to build a new project. The same error occurred at the beginning, but after upgrading postcss-custom-properties, it worked. You can try to delete node_modules and try again
from chatui.
or you can import the less file, by https://stackoverflow.com/questions/63386654/using-less-css-with-the-latest-create-react-app or https://dev.to/joefstack/how-to-setup-less-with-react-without-ejecting-1nej
from chatui.
I went with the less method, I also had to install less-plugin-import-node-modules to import from chatui into my own less file so I could change the button colour.
from chatui.
postcss-custom-properties
Hi @akai What is the solution
section in the package.json?
I searched and found it's just for yarn
.
Do I have to use yarn to solve this issue?
from chatui.
Related Issues (20)
- react hooks项目里可以使用语音输入吗?
- 由于项目框架老旧,使用hooks写法打包报错。 HOT 2
- 小程序开发如何使用 HOT 1
- 样式污染全局怎么解决 HOT 1
- renderMessageContent为空函数的情况下,message对象中的{user: {avatar: '', name: ''} 头像和用户名依然会被渲染
- 如何禁用 Input Box
- BUG:<chat/>组件使用composer渲染自定义组件<inputarea/>之后,每次发送完消息,我自己定义的<inputarea/>就会强制刷新 HOT 2
- 如果做打字机效果回复的 时候 HOT 3
- rightAction
- 发送消息后滚动条没有滚到最下面还有一些像素,这个怎么解决? HOT 2
- 等待回复过程中禁用输入 HOT 1
- _id动态设置不成功 HOT 1
- 头像图片资源重复调用
- 国际化不生效 HOT 1
- Chat UI Pro 查看历史消息的URL没有自动填充分页参数currentPage,pageSize HOT 1
- 点赞点踩功能可以无限次点击 HOT 1
- SSE流式响应处理 HOT 5
- 请问有没有权限认证 HOT 1
- icon图标用不了
- 如何设置messagecontainer的高度
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatui.