Giter Club home page Giter Club logo

elm-material-icons's Introduction

 ▐█████████▓▓▄ ▀█████⌐ ╟████████▌ ▓█████████ ▐███▌  ████▓  ▄▓████▓▄ ╘███████████
╓▄▄▄▄███▀▀▀███▓ ╓▄███⌐ ╟████▀▀▀▀▀,▄▄███▀▀▀▀▀ ▐███▌  ██▄▄▄╙▀▀██▀▀▀▀▀▀ ,▄███▓▀▀▀▀▀
'`^█████µ j████  ████⌐┌█████▓▓▓▓b ▐████▓▓▓▓▌ ▐███▌  ████▀ Æ███████▓▄  ▓████████▌
 ╘██████⌐ ▄████  ████▓ ,▐███▀▀▀▀─ ▐████▀▀▀▀b █████ ,████⌐ ▄▄▄▄▀▀████▓ ╟███▌▀▀▀▀`
   ▓██████████"  ██▓▄▄▀████▌      ▐███▌     ▄▄▄████████▀  ▀█████████\ ╟█████████

elm-material-icons's People

Contributors

icidasset avatar mikeastock avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

buildrtech

elm-material-icons's Issues

Import latest icons

Icons were updated. Noticed that contactless was added, probably a few others as well.

README out of date (?)

This is what the README.md says:
image
Looks like the Github repo was recently updated:
image

Might be a good idea to take a look at it?

Removal of shared types module

Quick question, in the latest version of this library the shared types have been removed. This caused us to no longer be able to integrate the package with our internal color module as we now need to provide a helper function to convert each type of icon color. Would you consider moving back to a shared type module for colors? Thanks!

Here's an example of what we use to have:

toMaterialIcon : Element.Color -> Coloring
toMaterialIcon color =
    color
        |> toColorLibColor
        |> Material.Icons.Color

-- Convert elm-ui color to avh4/elm-color
toColorLibColor : Element.Color -> Color
toColorLibColor color =
    let
        rgba =
            Element.toRgb color
    in
    Color.rgba rgba.red rgba.green rgba.blue rgba.alpha

Maybe small error in docs

Hi started using your library, great work.
I think there is a small error in your about docs:

Filled.offline_bolt 16 (Color <| Color.rgb 96 181 204)

Color.rgb only accepts floats between 0 and 1 - for your example to work you need Color.rgb255

Not a big deal :)

Icon previews

Would it be possible for the library to embed icons in the docs so developers can preview what they are importing.

Another library (FeatherIcons) I have been looking into implements this and its been a delight to use.

For example:
image

They are doing this by providing an image in the docs like this:

{-| align-right
![image](data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxsaW5lIHgxPSIyMSIgeTE9IjEwIiB4Mj0iNyIgeTI9IjEwIj48L2xpbmU+PGxpbmUgeDE9IjIxIiB5MT0iNiIgeDI9IjMiIHkyPSI2Ij48L2xpbmU+PGxpbmUgeDE9IjIxIiB5MT0iMTQiIHgyPSIzIiB5Mj0iMTQiPjwvbGluZT48bGluZSB4MT0iMjEiIHkxPSIxOCIgeDI9IjciIHkyPSIxOCI+PC9saW5lPjwvc3ZnPg==)
-}
alignRight : Icon
alignRight =
    ...

Why do this?

  • Developer Experience

Why not do this?

  • Even larger source code (I noticed the base material libraries is 1.3MB); this is a one time download so maybe its okay
  • A potentially more complex generation process; this might not be true since you start with the svg and could just base64 encode it into the docs
  • The google icons website might already be adequate for previewing

What do you think @icidasset?

Oh, and thanks for the wonderful library!

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.