Skip to content

Get palette colors #12

@ryanmsnyder

Description

@ryanmsnyder

Is there a function to easily get the current palette's colors? For example, with catppuccin, there's the get_palette function:

local flavor = vim.g.catppuccin_flavour
local C = require("catppuccin.palettes").get_palette(flavor)

And then you can easily retrieve a color's hex value:

local green = C.green

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions