Weblutions CSSLibDocs > Javascript > Variable Tags
Variable Tags
The CSS Library comes with various variable classes which can be used to set items in a more customized way if one of the existing classes in the CSS build are not available.
Currently there's only a handful of these variable tags. However, more are always being added.
| Variable | Applied Class |
|---|---|
| bg-color | background-color |
| color | color |
| border-color | border-color |
| bg-image | background-image |
| fill | fill |
| font-size | font-size |
| w | width |
| h | height |
| filter | filter |
| p | padding |
| m | margin |
All of these are used in the same format. apply the variable name and square brackets with the value. For example color[#FFFFFF] will set the color to white. Values inside these square brackets can be prefixed or suffixed with the below
-
#π₯π₯π₯π₯π₯π₯will set a color to the hexadecimal supplied -
url(π₯)will apply a URL, mostly only usable in bg-image -
π₯pxwill apply a pixel amount -
π₯remwill apply the rem amount -
π₯%will apply the supplied percentage -
π₯emwill use add the em value -
π₯vwwill apply the supplied view width
Review this page