Skip to content

Gradient in @background-color-highlight throws an error #74

@simurai

Description

@simurai

When Atom packages try to use the @background-color-highlight variable with darken(), lighten(), mix() etc., they get an error. I guess it's because the gradient used here

@background-color-highlight: linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0, 0.08), rgba(0,0,0, 0.12));

isn't a "valid" color?

Steps to reproduce

  1. Use native-ui theme.
  2. Install https://atom.io/packages/atom-ide-ui

Error shown:

Error compiling Less stylesheet: /Users/simurai/.atom/packages/atom-ide-ui/node_modules/atom-ide-ui/pkg/atom-ide-datatip/styles/datatip.less

Line number: 28
error evaluating function `mix`: color2.toHSL is not a function

Would it be possible to use a "flat" color for the @background-color-highlight variable? Might not be perfect since this theme tries to imitate macOS.

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