Skip to content

Darken by 70% of a light color returns black #680

@vrinceanuvalentin

Description

@vrinceanuvalentin
  • polished version: 4.3.1
  • JSS-in_CSS library and version: styled-components 6.1.15
  • Any relevant JS library and version: React 18.3.1

Mixin/Helper/Shorthand Usage

darken(0.7, '#DC7E85')
darken(0.7, '#B9DC7E')
darken(0.7, '#DCC37E')
darken(0.7, '#D67C7C')
darken(0.7, '#A37CD6')

What You Are Seeing

running the above snippets will always return #000 even if colors given are quite light. on even darken version of them, we get #000.

What You Expected To See

A darken version of the same color, but not black

Reproduction

https://codesandbox.io/p/devbox/strange-breeze-h3fj7s?workspaceId=ws_8bUPBhDK5w9rKFGcAoh3X3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions