Giter VIP home page Giter VIP logo

Comments (8)

kevinSuttle avatar kevinSuttle commented on July 19, 2024

I thought about running these values through a PostCSS plugin to see of there were CSS Color names that make any more sense. @jonathantneal generously offered to build one.

https://twitter.com/kevinSuttle/status/674286563698876416

from colors.

kevinSuttle avatar kevinSuttle commented on July 19, 2024

I think this is the beginning of that, but so far, none of our colors have a CSS Color name. https://github.com/jonathantneal/closest-color

from colors.

barlock avatar barlock commented on July 19, 2024

The page that explains the colors are in the design guide. core is anyone's guess. I think it was the color used as the big headings on the design language website.

from colors.

kevinSuttle avatar kevinSuttle commented on July 19, 2024

Aha, so core is also the same value as 50, except in some of the whites and greys when its 20 and and sometimes 10 and sometimes nothing.

from colors.

kevinSuttle avatar kevinSuttle commented on July 19, 2024

I noticed that Google's Material colors are similar in scale.
https://www.google.com/design/spec/style/color.html

from colors.

jonathantneal avatar jonathantneal commented on July 19, 2024

So, this might seem random, but every weekend I try to release a PostCSS plugin that would help with exactly this situation. It can match every color in your CSS to a palette of your choice, either producing a list of palette approved colors and the number of times they are used, or nearly the same list, except including variations like matching-color-variation-1, matching-color-variation-2, matching-color-variation-3 for every inexact match.

But ... I keep hitting the same brick wall. And it might seem really silly, ok? But hey, in off hours open source, stupid stuff can delay you hours to years. My issue is: What exactly should be exported? Do I produce a JSON file of color keys and the number of times they appear? Some kind of text report? Another CSS file?

Since you inspired this, I was hoping you might know what you wanted, even if you’re no longer interested, necessarily. I still think you had a great idea, and it could help a lot of people.

from colors.

kevinSuttle avatar kevinSuttle commented on July 19, 2024

Thanks @jonathantneal. What we have is a set of core colors (this repo), that each product team uses as a base for their branding. The issue becomes that the disconnect between the 2 happens very easily. Even here, we can see multiple definitions of the same value over and over. The connection is what we're after when I say "single sourcing".

from colors.

kevinSuttle avatar kevinSuttle commented on July 19, 2024

@jonathantneal Seems @dcwarwick did this: ba053a5#diff-6a853a1f7639b0af7520dddefa30c2ffR18

from 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.