local variants = { main = { base = '#191724', surface = '#1f1d2e', overlay = '#26233a', muted = '#6e6a86', subtle = '#908caa', text = '#e0def4', love = '#eb6f92', gold = '#f6c177', rose = '#c0918f', pine = '#9ccfd8', foam = '#37ADED', iris = '#c4a7e7', highlight_low = '#21202e', highlight_med = '#403d52', highlight_high = '#524f67', none = 'NONE', }, moon = { base = '#232136', surface = '#2a273f', overlay = '#393552', muted = '#6e6a86', subtle = '#908caa', text = '#e0def4', love = '#eb6f92', gold = '#f6c177', rose = '#ea9a97', pine = '#3e8fb0', foam = '#9ccfd8', iris = '#c4a7e7', highlight_low = '#2a283e', highlight_med = '#44415a', highlight_high = '#56526e', none = 'NONE', }, dawn = { base = '#ffffff', surface = '#fffaf3', overlay = '#faf1e9', muted = '#9893a5', subtle = '#797593', text = '#575279', love = '#ce3536', gold = '#bf7209', rose = '#6F4E37', pine = '#008080', foam = '#3c90c6', iris = '#5F2A88', highlight_low = '#f4ede8', highlight_med = '#dfdad9', highlight_high = '#cecacd', none = 'NONE', }, } local palette = {} if vim.o.background == 'light' then palette = variants.dawn else palette = variants[(vim.g.rose_pine_variant == 'moon' and 'moon') or 'main'] end return palette