Template:Typography/doc

A template for customizing text with various colors and formats.

Usage
{	"params": { "tag": { "label": "element tag", "description": "Tag/element type that will wrap the output text. Valid values can be seen in Community Central.*", "type": "string", "default": "span", "suggested": true },		"type": { "label": "text type", "description": "Type scale of the resulting text. You can see each type scale in the Sandbox's typography system section.** Valid values: headline1 (h1), headline2 (h2), headline3 (h3), headline4 (h4), headline5 (h5), headline6 (h6), subtitle1 (s1), subtitle2 (s2), body1 (b1), body2 (b2), caption (c), button (b), overline (o), footnote (f).", "type": "string" },		"emphasis": { "label": "text emphasis", "description": "The opacity level of the resulting text. You can see examples in the Sandbox's hierarchy section.*** Valid values: on-background (onbg), primary (p, high [h]), secondary (s, medium [m]), and disabled (d).", "type": "string" },		"inverse": { "label": "insert text color", "description": "If set to \"yes\", it will set the text's color to be the opposite one (doesn't apply to text that uses the color parameter).", "type": "string" },		"color": { "label": "text color", "description": "Color of the resulting text. Examples can be seen in the Sandbox's color section.**** Valid values: red, pink, purple, deep-purple, indigo, blue, light-blue, cyan, teal, green, light-green, lime, yellow, amber, orange, deep-orange, brown, grey, gray, blue-grey, and blue-gray.", "type": "string" },		"truncate": { "label": "truncate text", "description": "Whether the text will truncate showing ellipsis at the end of it if it's length is higher than the container's width and height. Valid values: ellipsis (e), ellipsis-flex (ef) Use \"ellipsis-flex\" (or \"ef\") if the container is a flex element.", "type": "string" },		"smooth": { "label": "smooth text", "description": "If set to \"yes\", it will apply anti-aliasing when fonts are rendered.*****", "type": "string" },		"id": { "label": "id", "description": "Id of the resulting HTML element.", "type": "string" },		"style": { "label": "style", "description": "Inline CSS styles of the resulting HTML element.", "type": "string" },		"text": { "label": "text", "description": "String with the resulting text. May include wikitext/html.", "type": "string", "required": true }	},	"description": "A template for customizing text with various colors and formats.", "paramOrder": [ "tag", "id", "style", "type", "emphasis", "inverse", "color", "truncate", "smooth", "text" ],	"format": "inline" }