"""The Darkmatter palette, in one place.

Kept in sync by hand with gtk-3.0/_darkmatter.scss — that file is the source of
truth for the stylesheets, this one for the raster and SVG assets.
"""

# Surfaces, deepest to lightest
SHADOW    = "#060506"
DARK      = "#121113"   # headerbars, panels, xfwm4 frame; level with BG
BG        = "#121113"   # window background
SIDEBAR   = "#171618"
BASE      = "#1c1b1d"   # entries, views
HOVER     = "#222222"
BORDER    = "#2b2b2b"
BORDER_HI = "#333333"

# Text, dimmest to brightest
DIM     = "#888888"
MUTED   = "#999999"
SOFT    = "#aaaaaa"
SUBTLE  = "#c1c1c1"
FG      = "#ffffff"

# Accents
TEAL   = "#5f8787"
CREAM  = "#fbcb97"
ORANGE = "#e78a53"
RED    = "#e75353"

# Accent ramp, for source gradients that ran through several cyans
ORANGE_D2 = "#b96a3d"
ORANGE_D1 = "#d17b48"
ORANGE_L1 = "#eb9663"
ORANGE_L2 = "#ee9c6b"
ORANGE_L3 = "#f2a97e"


def rgb(h):
    h = h.lstrip("#")
    return (int(h[0:2], 16), int(h[2:4], 16), int(h[4:6], 16))
