OPF
SpecDefinition referenceView source

Table Cell Border

One explicit cell border.

Metadata

Definition
#/$defs/TableCellBorder
Form
object
Source
spec/schemas/opf.schema.json

Field index

FieldTypeReq.Description
colorref:ColorRefyesBorder color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference. Eight-digit hex colors include alpha; #00000000 is transparent.
color · Named choices (see schema for other values and constraints)
"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"
widthnumberyesBorder width in reference pixels; 0 removes this edge.
dashenum—Default solid.
dash · Allowed values
"solid""dash""dot"

color

typeref:ColorRefrequiredyesdefault—

Border color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference. Eight-digit hex colors include alpha; #00000000 is transparent.

color · Named choices (see schema for other values and constraints)
"accent1""accent2""accent3""accent4""accent5""accent6""dark1""dark2""light1""light2""hyperlink""followedHyperlink""primary""secondary""accent""background""surface""surfaceAlt""text""textSecondary"

width

typenumberrequiredyesdefault—

Border width in reference pixels; 0 removes this edge.

dash

typeenumrequirednodefault—

Default solid.

dash · Allowed values
"solid""dash""dot"
Field fragment · dash.json
{
  "dash": "solid"
}
Complete definition constraints
Exact schema constraints
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "color",
    "width"
  ],
  "properties": {
    "color": {
      "$ref": "#/$defs/ColorRef",
      "description": "Border color: a hex color, a color-scheme slot or role name, or a 'var:<id>' variable reference. Eight-digit hex colors include alpha; #00000000 is transparent."
    },
    "width": {
      "type": "number",
      "minimum": 0,
      "maximum": 32,
      "description": "Border width in reference pixels; 0 removes this edge."
    },
    "dash": {
      "type": "string",
      "enum": [
        "solid",
        "dash",
        "dot"
      ],
      "description": "Default solid."
    }
  },
  "description": "One explicit cell border."
}