Color

Color

Copy
      "color" : {
  "type" : "Color",
  "fieldset" : "color",
  "config" : {
    "label" : "Item color"
  }
}
    

Reference

type

string

Color

fieldset

string

a user-friendly field label

config

object

objects listed below

config

label

string

user-friendly label before the field

There is no predicate specific to Color fields.

Orderings

Color fields cannot be use to order results.

Copy
      div(style="color:" + prismicdoc.getColor('blog-post.color'))
    
Copy
      <div style="color: <?= $prismicdoc->getColor('blog-post.color')->getHexValue() ?>">
</div>
    
Copy
      <div style="color: ${prismicdoc.getColor("blog-post.color").getHexValue()}">
</div>