Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 899 Bytes

Word.md

File metadata and controls

49 lines (32 loc) · 899 Bytes

Word Node

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.

Properties

isColor

Type: Boolean

If true, denotes that the word represents a color.

isHex

Type: Boolean

If true, denotes that the word represents a hexadecimal value.

isUrl

Type: Boolean

If true, denotes that the word represents a Universal Resource Locator (URL).

isVariable

Type: Boolean

If true, denotes that the word represents a CSS variable.

type

Type: String Value: 'word'

value

Type: String

The value of the word.

Example Values

  bold
  min-width
  --color
  -webkit-transition
  #fff

this.isColor = false; this.isHex = false; this.isVariable = false;