[{"name":"Palette","comment":" The Palette type and some useful getters.\n\n\n# Definition\n\n@docs Palette, createPalette\n\n\n# Getters\n\n@docs getTitle, getColors, getTags, getAuthorName, getUrl\n\n","unions":[{"name":"Palette","comment":" The core type for working with Lospec palettes.\n\nNote that this is an opaque type - see the rest of the functions in this file for ways to work with these\n\n","args":[],"cases":[]}],"aliases":[],"values":[{"name":"createPalette","comment":" Create a palette from some basic properties\n\nIf you're looking at this module, you're probably here for the palette list - in which case this won't be much use to you\n\n","type":"String.String -> List.List Color.Color -> List.List String.String -> Maybe.Maybe String.String -> String.String -> Palette.Palette"},{"name":"getAuthorName","comment":" Get the name of the creator of a palette\n\nNot all palettes have author names. Some palettes have different formatting for author names.\nIf you're attributing a palette creator, I'd recommend linking to the Lospec palette page instead.\n\n","type":"Palette.Palette -> Maybe.Maybe String.String"},{"name":"getColors","comment":" Get the title of a palette\n","type":"Palette.Palette -> List.List Color.Color"},{"name":"getTags","comment":" Get all tags of a palette\n\nWhile some effort has been taken to keep tags consistent,\nsince these are freely input by authors on Lospec there is no guarantee that\nthere will be a lot of consistency.\n\n","type":"Palette.Palette -> List.List String.String"},{"name":"getTitle","comment":" Get the title of a palette\n","type":"Palette.Palette -> String.String"},{"name":"getUrl","comment":" Get the Lospec URL for a palette\n\nIf you're specifically using a palette somewhere, show the author some love and link back to it!\n\n","type":"Palette.Palette -> String.String"}],"binops":[]},{"name":"PaletteList","comment":" The comprehensive list of Lospec palettes\nThis file is automatically generated weekly.\n\n@docs paletteList\n\n","unions":[],"aliases":[],"values":[{"name":"paletteList","comment":" All the Lospec color palettes, in a useful Dict format.\n\nIf you only need to use one or two specific palettes, you should use the function names instead to keep asset sizes small\n\nPalettes.elm contains some functions that can help search through this structure\n\n","type":"Dict.Dict String.String Palette.Palette"}],"binops":[]},{"name":"Palettes","comment":" Useful functions for finding palettes from the palette list\n\nInternally, these functions search through a giant Dict of palettes.\nThis does mean that if you use these functions, you'll probably increase your asset size by quite a lot.\n\nIf you only need to use one specific palette, each palette has an individual function in PaletteList.elm\n\n@docs findBySlug, searchByTag\n\n","unions":[],"aliases":[],"values":[{"name":"findBySlug","comment":" Find a palette by \"key\"\n\nYou can easily spot the slug from a Lospec palette url, eg:\n\n<https://lospec.com/palette-list/oak21> -> \"oak21\"\n\n","type":"String.String -> Maybe.Maybe Palette.Palette"},{"name":"searchByTag","comment":" Return a list of any palettes tagged with the specified string\n\nKeep in mind that since tags are user input, there's no guarantees of consistency.\nYou can view the tags for a palette on its Lospec palette page\n\nThere's a lot of palettes, so use this carefully - it's probably a tad slow.\n\n","type":"String.String -> List.List Palette.Palette"}],"binops":[]}]