border-top-color
Since UXP v2.0
Specifies the top border color for an element. Supported color formats are as follows:
- Named Colors (See https://github.com/colorjs/color-name/blob/master/index.js)
- Hex colors
- RGB and RGBA colors
- HSL and HSLA colors
See
- https://developer.mozilla.org/en/docs/Web/CSS/color
- https://github.com/colorjs/color-name/blob/master/index.js
Example
Copied to your clipboard.someElement {border-style: solid;border-top-color: blue;}
Quirks and Exceptions
- Not all Spectrum UXP components allow color overrides.
- When specifying a border color, the border must also include a border style.
- Borders can only support a single color; the last specified border color will take precedence.