Comments (8)
Note that the spec now has an expanded grey palette with 13 values:
#ffffff
#fafafa
#f5f5f5
#f0f0f0
#d9d9d9
#bfbfbf
#8c8c8c
#595959
#434343
#262626
#1f1f1f
#141414
#000000
https://ant.design/docs/spec/colors#Neutral-Color-Palette
This was discussed in the 4.0 announcement here: https://zhuanlan.zhihu.com/p/112470365
There's a lot of talk about how the dark colors have to be considered differently (versus simply flipping the order of the light colors), but it's only shown applied to the primary colors, so it's not clear what the presetDarkPalettes.grey
export should look like.
from ant-design-colors.
@afc163 @ycjcl868 Any thoughts on this issue? I would be keen to see the alignment with the official doc :)
from ant-design-colors.
Is there any workaround on this issue? The greys colors are completely off.
from ant-design-colors.
Also having the issue
from ant-design-colors.
Same, any updates ?
from ant-design-colors.
I, too, would like this to have a neater solution.
from ant-design-colors.
Seems like should be fixed in scope of #82. But for some reason it's ignored
from ant-design-colors.
I wanted to use the Layout Background and found this solution:
const t = useTranslations();
const { useToken } = theme;
<div
style={{
background: token.colorBgLayout,
}} />
from ant-design-colors.
Related Issues (20)
- An in-range update of eslint-config-prettier is breaking the build 🚨 HOT 1
- An in-range update of prettier is breaking the build 🚨 HOT 5
- An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨 HOT 22
- An in-range update of @typescript-eslint/parser is breaking the build 🚨 HOT 22
- An in-range update of @types/jest is breaking the build 🚨 HOT 19
- use generated colors in less file
- 【提问】请问阶梯的值是通过什么方式得到的? HOT 1
- An in-range update of @typescript-eslint/parser is breaking the build 🚨 HOT 6
- An in-range update of @typescript-eslint/eslint-plugin is breaking the build 🚨 HOT 6
- Data viz color documentation HOT 2
- How to use white with this library?
- Cannot find module './generate' HOT 1
- main dependencies @ctrl/tinycolor 3.X is not support ie 11, maybe should change ? HOT 2
- SyntaxError: Cannot use import statement outside a module HOT 6
- 这个如何做成组件,调色板组件使用
- color 等单词用的是美式英语,但发现 灰色(gray) 一词用的是英式的 grey HOT 1
- 跟进 [email protected] 的预设色彩变化
- upgrade 7.0.1 incompatible
- 灰色算法有问题,666666经过4次运算时会计算出两个纯黑
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 ant-design-colors.