Skip to content

[PackageDev] Add support for var() #186

Description

@MattDMo

Description

The support for PackageDev themes and color schemes is great - it's what I most often use this plugin for. Would it be possible to add previews for the simple "var(some_color_variable)" syntax?

For example, in a color scheme, I define a variable and then use it for a global:

{
    "variables": {
        "blue": "#0042FF"
    },
    "globals": {
        "selection": "var(blue)"
    }
}

The color preview shows up next to the #0042FF as it should, but I would like that same preview to show up next to var(blue). I don't use any of the color() mod function options, but I imagine those that do would probably like to see previews of those, too (if possible, given they're implemented within Sublime and not exposed via the API, that I know of). However, even if you can't do that or it would take a long time, I should think it would be fairly straightforward to highlight var(). Unless the variables themselves are made using color()...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: triageIssue needs triage.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions