DisplayThemeNode

The DisplayThemeNode component is used by the Code component to display a node of the theme object when the theme tag is passed to a code fence in markdown.

This code-fence in markdown:

markdown
```json theme
alerts
```

Will render:

json
{
"success": {
"color": "successText",
"bg": "success"
},
"warning": {
"color": "warningText",
"bg": "warning"
},
"error": {
"color": "errorText",
"bg": "error"
},
"info": {
"color": "infoText",
"bg": "info"
},
"muted": {
"color": "text",
"bg": "muted"
},
"accent": {
"color": "text",
"bg": "accent"
}
}

© 2023 - smerth.com - All Rights Reserved