ment-mx / Prism

Creates a beautiful artboard color palette with all your 'Document Colors' and their respective color label in a variety of formats.
MIT License
1.01k stars 47 forks source link

json format export? #37

Closed nilshendriks closed 6 years ago

nilshendriks commented 6 years ago

Would be nice to have a json format export option as well.

griffin-stewie commented 6 years ago

@nilshendriks It would be solve if this PR will be merged.

griffin-stewie commented 6 years ago

@nilshendriks Version 1.0.7 was released yesterday. It has added JSON format export. This JSON format is for importing to Sketch Measure but it might be help you.

Looks like this..

[
    {
        "name": "Timberwolf",
        "color": {
            "r": 216,
            "g": 216,
            "b": 216,
            "a": 1,
            "color-hex": "#D8D8D8 100%",
            "argb-hex": "#FFD8D8D8",
            "css-rgba": "rgba(216,216,216,1)",
            "ui-color": "(r:0.847 g:0.847 b:0.847 a:1.000)"
        }
    },
    {
        "name": "Medium spring bud",
        "color": {
            "r": 184,
            "g": 233,
            "b": 134,
            "a": 1,
            "color-hex": "#B8E986 100%",
            "argb-hex": "#FFB8E986",
            "css-rgba": "rgba(184,233,134,1)",
            "ui-color": "(r:0.721 g:0.913 b:0.527 a:1.000)"
        }
    },
    {
        "name": "Deep magenta",
        "color": {
            "r": 208,
            "g": 2,
            "b": 179,
            "a": 1,
            "color-hex": "#D002B3 100%",
            "argb-hex": "#FFD002B3",
            "css-rgba": "rgba(208,2,179,1)",
            "ui-color": "(r:0.816 g:0.008 b:0.700 a:1.000)"
        }
    }
]