Members
Methods
# getCSSVariable(variable) → {string}
Returns current value of css variable for the body
Parameters:
Name | Type | Description |
---|---|---|
variable |
string | The variable |
The value of the variable
string
Example
let bootstrapPrimary = getCSSVariable('primary');
# isLightColor(color) → {boolean}
Use to check if a color is light or dark
Parameters:
Name | Type | Description |
---|---|---|
color |
string | The color |
Returns true
if the color is light
boolean
# normURLS(url) → {string}
Normalises an URL by removing a trailing slash
Parameters:
Name | Type | Description |
---|---|---|
url |
string | The URL |
The normalised URL
string