Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/src/namedcolors.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,16 @@ NamedColorCharts.ColorChartSVG("grays") # hide
named colors. There are some unnatural definitions due to the different
origins. For example, "LightGray" is lighter than "Gray", but "DarkGray" is
also lighter than "Gray".

## Julia logo colors
[`Colors.JULIA_LOGO_COLORS`](@ref) is a `NamedTuple` containing the julia logo
colors defined in the [julia-logo-graphics](https://github.com/JuliaLang/julia-logo-graphics#color-definitions).
```@example julialogo
using Colors # hide
logocolors = Colors.JULIA_LOGO_COLORS
showable(::MIME"text/plain", ::AbstractVector{C}) where {C<:Colorant} = false # hide
[logocolors.blue, logocolors.red, logocolors.green, logocolors.purple]
```
```@docs
Colors.JULIA_LOGO_COLORS
```
12 changes: 12 additions & 0 deletions src/parse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,15 @@ end
Base.depwarn("color(\"$str\") is deprecated, use colorant\"$str\" or parse(Colorant, \"$str\")", :color)
parse(Colorant, str)
end

"""
Colors used in the Julia logo as a `NamedTuple`.

The keys are approximate descriptions of the hue and do not include black.

Not exported, use as `JULIA_LOGO_COLORS.red` etc.
"""
const JULIA_LOGO_COLORS = (red = colorant"#cb3c33",
green = colorant"#389826",
blue = colorant"#4063d8",
purple = colorant"#9558b2")