Skip to content

Add support for hex values and safe defaults for lost-utility: edit {color} #418

@Lucassifoni

Description

@Lucassifoni

Is this a feature request or a bug report?

Feature request

Add support for hex values and safe defaults for lost-utility: edit {color}

What is the current behavior?
Currently, lost crashes when it encounters a hex string instead of a rgb(n,n,n) value in lost-utility: edit.

What is the desired behavior?
Support strings like rgb(n,n,n), rgba(n,n,n,n), #333, #222F, invalid input

What's the motivation or use-case behind changing the behavior?
Some build setups translate rgb values to hex strings for brevity before lost gets the chance to process CSS. This breaks lost-utility: edit with a specified color value.

What version of LostGrid, browser and browser version are affected by this issue? Did this happen in previous versions?
Latest lost on master

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions