Skip to content

Instantly share code, notes, and snippets.

@cwparsons
Last active January 12, 2022 23:28
Show Gist options
  • Save cwparsons/48700124ef501502c79ff3c8755f03dd to your computer and use it in GitHub Desktop.
Save cwparsons/48700124ef501502c79ff3c8755f03dd to your computer and use it in GitHub Desktop.
Adaptive card example with all text and containers
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3",
"body": [
{
"type": "Container",
"items": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Font type: default"
},
{
"type": "TextBlock",
"text": "Font type: monospace",
"fontType": "Monospace"
}
],
"separator": true
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Font size: small",
"size": "Small"
},
{
"type": "TextBlock",
"text": "Font size: default",
"size": "Default"
},
{
"type": "TextBlock",
"text": "Font size: medium",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "Font size: large",
"size": "Large"
},
{
"type": "TextBlock",
"text": "Font size: extraLarge",
"size": "ExtraLarge"
}
],
"separator": true,
"spacing": "Large"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Weight: lighter",
"weight": "Lighter"
},
{
"type": "TextBlock",
"text": "Weight: default"
},
{
"type": "TextBlock",
"text": "Weight: darker",
"weight": "Darker"
}
],
"separator": true,
"spacing": "Large"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Text color: default",
"color": "Default"
},
{
"type": "TextBlock",
"text": "Text color: dark",
"color": "Dark"
},
{
"type": "TextBlock",
"text": "Text color: light",
"color": "Light"
},
{
"type": "TextBlock",
"text": "Text color: accent",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "Text color: good",
"color": "Good"
},
{
"type": "TextBlock",
"text": "Text color: warning",
"color": "Warning"
},
{
"type": "TextBlock",
"text": "Text color: attention",
"color": "Attention"
}
],
"separator": true,
"spacing": "Large"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Subtle: true",
"isSubtle": true
},
{
"type": "TextBlock",
"text": "Subtle: false",
"isSubtle": false
}
],
"separator": true,
"spacing": "Large"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Container style: default",
"wrap": true
}
],
"bleed": true,
"style": "default",
"separator": true,
"spacing": "Large"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Container style: emphasis",
"wrap": true
}
],
"bleed": true,
"style": "emphasis"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Container style: accent",
"wrap": true
}
],
"bleed": true,
"style": "accent"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Container style: good",
"wrap": true
}
],
"bleed": true,
"style": "good"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Container style: attention",
"wrap": true
}
],
"bleed": true,
"style": "attention"
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "Container style: warning",
"wrap": true
}
],
"bleed": true,
"style": "warning"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment