Giter Site home page Giter Site logo

Comments (8)

carmanchris31 avatar carmanchris31 commented on July 27, 2024 2

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.

hustKiwi avatar hustKiwi commented on July 27, 2024

@afc163 @ycjcl868 Any thoughts on this issue? I would be keen to see the alignment with the official doc :)

from ant-design-colors.

ZDerekh avatar ZDerekh commented on July 27, 2024

Is there any workaround on this issue? The greys colors are completely off.

from ant-design-colors.

scottrotton avatar scottrotton commented on July 27, 2024

Also having the issue

from ant-design-colors.

bencerf avatar bencerf commented on July 27, 2024

Same, any updates ?

from ant-design-colors.

shifraHolzer avatar shifraHolzer commented on July 27, 2024

I, too, would like this to have a neater solution.

from ant-design-colors.

destimon avatar destimon commented on July 27, 2024

Seems like should be fixed in scope of #82. But for some reason it's ignored

from ant-design-colors.

Morten-Moeller avatar Morten-Moeller commented on July 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.