Skip to content

[Bug]: Color rounding #342

Description

@Xenossolitarius

What happened?

Colors got rounded wrong in a special usecase where there are too many color transformations and for
'ts/color/css/hexrgba' to work I need to enable format hex bcs that's the only output that gives usable css

  'ts/color/modifiers': {
    format: 'hex',
  },

I need this modifier to actually not get something unusable like:
-color-overlay-tooltip-default: rgba(hsl(240 11.1% 9%) , 0.8);

But this transformation it seems is doing Math.ciel() instead of Math.round()

And breaking my values.

Reproduction

No response

Expected output

No response

Version

latest

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriageTo be reproduced as bug

Type

No type

Fields

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