-- lx-bundle:true
-- lx theme
local theme = require("qui.theme")

theme.register({
	name = "Liqube Light",
	author = "liqube",
	dark = false,

	-- Strong and soft keep 'color' as the main surface and 'contrast' as readable content
	palette = {
		red = {
			strong = { color = "#d16969", contrast = "#202830" },
			soft = { color = "#f3dfe3", contrast = "#8f4054" },
		},
		orange = {
			strong = { color = "#e7a64b", contrast = "#202830" },
			soft = { color = "#f4e5d2", contrast = "#8c5b22" },
		},
		yellow = {
			strong = { color = "#d6cf67", contrast = "#202830" },
			soft = { color = "#f1edcf", contrast = "#726817" },
		},
		green = {
			strong = { color = "#7dcf91", contrast = "#202830" },
			soft = { color = "#dceee1", contrast = "#356f44" },
		},
		blue = {
			strong = { color = "#569cd6", contrast = "#202830" },
			soft = { color = "#dce9f4", contrast = "#356b96" },
		},
		purple = {
			strong = { color = "#c586c0", contrast = "#202830" },
			soft = { color = "#ecdfeb", contrast = "#795276" },
		},
	},

	form = {
		bg = {
			normal = "#ffffff",
		},
	},
	panel = {
		bg = {
			normal = "#f3f3f5",
		},
		frame = {
			normal = "#ccccdd",
		},
	},
	separator = {
		frame = {
			normal = "#ccccdd",
		},
	},
	section = {
		text = {
			normal = "#718396",
		},
		frame = {
			normal = "#ccccdd",
		},
	},
	input = {
		bg = {
			normal = "#f8f8f8",
			hover = "#efeff6",
			down = "#d8e0e9",
			disabled = "#f0f0f0",
			selection = "#bed0ea",
		},
		checkmark = {
			normal = "#ffffff",
			disabled = "#bbbbbb",
		},
		text = {
			normal = "#445566",
			disabled = "#bbbbbb",
			placeholder = "#778899",
			selection = "#202830",
		},
		frame = {
			normal = "#ccccdd",
			hover = "#a3a3b1",
			focused = "#5f86c0",
		},
		caret = {
			normal = "#445566",
		},
	},
	button = {
		bg = {
			normal = "#ffffff",
			down = "#d8e0e9",
			pressing = "#f2f2f2",
			disabled = "#f0f0f0",
		},
		text = {
			normal = "#466686",
			hover = "#466686",
			down = "#202830",
			pressing = "#202830",
			disabled = "#9aa5b0",
		},
		frame = {
			normal = "#ccccdd",
			hover = "#a3a3b1",
			focused = "#5f86c0",
			down = "#aaaaaa",
			pressing = "#aaaaaa",
			disabled = "#c7c7d7",
		},
		inner_frame = {
			down = "#d8e0e9",
			pressing = "#d4dce5",
		},
	},
	checkbox = {
		indicator = {
			normal = "#eeeeee",
			disabled = "#eeeeee",
		},
		checkmark = {
			normal = "#ffffff",
			disabled = "#eeeeee",
		},
		text = {
			normal = "#56687a",
			disabled = "#bbbbbb",
		},
	},
	radio = {
		checkmark = {
			normal = "#466686",
			disabled = "#bbbbbb",
		},
		text = {
			normal = "#56687a",
			disabled = "#bbbbbb",
		},
		frame = {
			-- Keep the resting ring quieter than the shared input hover frame
			normal = "#ccccdd",
			focused = "#5f86c0",
		},
	},
	listbox = {
		bg = {
			hover = "#e2e5ea",
			selection = "#bed0ea",
		},
		text = {
			selection = "#202830",
		},
	},
	tree = {
		symbol = {
			normal = "#73879b",
			hover = "#2e3944",
			disabled = "#bbbbbb",
		},
		bg = {
			hover = "#e2e5ea",
			selection = "#bed0ea",
		},
		text = {
			selection = "#202830",
		},
	},
	scrollbar = {
		bg = {
			normal = "#f5f5f5",
			disabled = "#fafafb",
		},
		thumb = {
			normal = "#dddddd",
			hover = "#d2d2d2",
			pressing = "#a8a8a8",
			disabled = "#e8e8e8",
		},
	},
	menu = {
		bg = {
			hover = "#e2e5ea",
		},
		text = {
			normal = "#445566",
			critical = "#b4667a",
			notable = "#c57600",
			disabled = "#9aa5b0",
		},
		detail = {
			normal = "#718396",
		},
		frame = {
			normal = "#ccccdd",
		},
		separator = {
			normal = "#ccccdd",
		},
		symbol = {
			normal = "#718396",
		},
	},
})
