rmrk-team / rmrk-spec

The RMRK NFT Specification
GNU General Public License v3.0
94 stars 36 forks source link

Support any CSS color value for NFT metadata #25

Closed vikiival closed 3 years ago

vikiival commented 3 years ago
  "background_color": {
    "type": "string",
    "description": "Background color of the item. Must be a six-character hexadecimal without #."
  },

Kanaria is using HEX format with # prefix

The goal of this issue is to support any CSS Color Value (except current color)

With CSS, colors can be specified in different ways:

By color names
As RGB values
As hexadecimal values
As HSL values (CSS3)
As HWB values (CSS4)
Swader commented 3 years ago

From Opensea metadata:

image

The goal is max compatibility unless absolutely necessary to break. What is the argument for breaking from this?

vikiival commented 3 years ago

What is the argument for breaking from this?

Kanaria NFT Metadata

If this is typo on Kanaria side feel free to close

Swader commented 3 years ago

Good catch, that's an invalid background color, so will be ignored by UIs unless they add custom rendering for it.