Skip to content

Convenience method for generating a Color from a CSS colour string #2

@SheepTester

Description

@SheepTester

Admittedly CSS colours are now getting rather complicated but maybe it only needs to support the basic hex/rgb(a) and maybe even hsl(a).

Use cases:

  • Determining colour from CSS so it can be synched with theme and userstyles can change them
  • Lets people paste in colours if we let them choose a custom one

Maybe it could be a static method for Color like Color.fromCss

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