The Word
node inherits directly from Node
in PostCSS. This node is a catch-all for values which start with word-characters, or for certain types of words with special decorations, such as variables and colors.
Type: Boolean
If true
, denotes that the word represents a color.
Type: Boolean
If true
, denotes that the word represents a hexadecimal value.
Type: Boolean
If true
, denotes that the word represents a Universal Resource Locator (URL).
Type: Boolean
If true
, denotes that the word represents a CSS variable.
Type: String
Value: 'word'
Type: String
The value of the word.
bold
min-width
--color
-webkit-transition
#fff
this.isColor = false; this.isHex = false; this.isVariable = false;