Git Product home page Git Product logo

google-material-color's People

Contributors

8lueberry avatar danlevan avatar gobwas avatar shenxn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-material-color's Issues

Incorrect description for palette.CSS usage

Hi,
it seems the description README.md, section about CSS shows incorrect pattern and usage example for the CSS version:

  • The class name in the example mentions classes with "-Secondary" at the end

  • Actual classes inside the palette.css do not have that suffix (except for Black and White)

  • Description example:

<div class="palette-Light-Blue-700-Secondary bg">
  The background is Light Blue
  The text is White
</div>
  • Palette.css declarations:
.palette-Light-Blue-700.bg {
  background-color: #0288D1;
}
.palette-Light-Blue-700.text {
  color: #0288D1;
}

Map keys with spaces in node-sass

Hi,

When I attempt to call palette('Light Blue', 700); I get the error:

$result: map-get($colorMap, $shade);
          ^
      Argument `$map` of `map-get($map, $key)` must be a map

Backtrace:
	node_modules/google-material-color/dist/palette.scss:637, in function `map-get`
	node_modules/google-material-color/dist/palette.scss:637, in function `palette`

But palette('Blue', 700); works fine.

Are you aware of this? node-sass is a commonly used library.

I will post a reference to this issue there also to see if they simply don't support spaces.

Npm audit fix

Hi,
Can you please update Lodash in you dependencies?
I'm seeing one vulnerability - Lodash Prototype Pollution.
Thanks

Support for typings?

I have used google-material-color on my project.

It works well, but my project base on Angular2 and TypeScript.
Once I compile my project, tsc(typscript compiler) show me the error, which say 'cannot find module ...'

Do you have any plan for typings?

Update docs for LESS

Hi,
in the README file there's an error.

@import 'palette';
...

.my-div {
  .palette('Light Blue', '700');
  background-color: @palette;

  .palette('Red'); // default shade is 500
  color: @palette;
}

In LESS you can't do this.
The @palette variable will be orverwritten by the second mixin call.
So, @palette is equal to Red color both for background-color and color assignments.

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.