local normal_hl = vim.api.nvim_get_hl_by_name('Normal', true)

local purple1 = '#333352'
local purple2 = '#232338'
local purple3 = '#12121c'
local red1 = '#ba3648'
local green1 = '#37ad39'
local blue1 = '#0985de'
local blue3 = '#313244'

----------------------------------------------------------------------
--                              Prompt                              --
----------------------------------------------------------------------
vim.api.nvim_set_hl(0, 'TelescopePromptBorder', {
	fg = purple3,
	bg = purple3,
})

vim.api.nvim_set_hl(0, 'TelescopePromptNormal', {
	fg = normal_hl.foreground,
	bg = purple3,
})

vim.api.nvim_set_hl(0, 'TelescopePromptTitle', {
	fg = normal_hl.foreground,
	bg = red1,
})

vim.api.nvim_set_hl(0, 'TelescopePromptCounter', {
	fg = red1,
	bg = purple3,
})

vim.api.nvim_set_hl(0, 'TelescopePromptPrefix', {
	fg = red1,
	bg = purple3,
})

----------------------------------------------------------------------
--                              Result                              --
----------------------------------------------------------------------
vim.api.nvim_set_hl(0, 'TelescopeResultsBorder', {
	fg = purple2,
	bg = purple2,
})

vim.api.nvim_set_hl(0, 'TelescopeResultsNormal', {
	fg = normal_hl.foreground,
	bg = purple2,
})

vim.api.nvim_set_hl(0, 'TelescopeResultsTitle', {
	fg = normal_hl.foreground,
	bg = blue1,
})

vim.api.nvim_set_hl(0, 'TelescopeSelectionCaret', {
	fg = blue1,
	bg = blue3,
})

----------------------------------------------------------------------
--                             Preview                              --
----------------------------------------------------------------------

vim.api.nvim_set_hl(0, 'TelescopePreviewBorder', {
	fg = purple1,
	bg = purple1,
})

vim.api.nvim_set_hl(0, 'TelescopePreviewNormal', {
	fg = normal_hl.foreground,
	bg = purple1,
})

vim.api.nvim_set_hl(0, 'TelescopePreviewTitle', {
	fg = normal_hl.foreground,
	bg = green1,
})
