Customization
Customize the Canva Button with the HTML API.
You can use HTML attributes to customize the size and theme of the Canva Button. The following image demonstrates the different combinations of sizes and themes:

Size

To customize the size of the Canva Button, add the data-button-size attribute to the Button's button element:
1
<button
2
data-design-type="Poster"
3
data-api-key="API KEY GOES HERE"
4
data-button-size="large"
5
class="canva-design-button"
6
style="display: none;"
7
>Design with Canva</button
8
>
9
<script>
10
(function (c, a, n) {
11
var w = c.createElement(a),
12
s = c.getElementsByTagName(a)[0];
13
w.src = n;
14
s.parentNode.insertBefore(w, s);
15
})(document, "script", "https://sdk.canva.com/designbutton/v2/api.js");
16
</script>
Copied!
There are four sizes to choose from:
  • default
  • tiny
  • small
  • large
If you don't specify a size, Canva uses the default size.

Theme

To customize the theme of the Canva Button, add the data-button-theme attribute to the Button's button element:
1
<button
2
data-design-type="Poster"
3
data-api-key="API KEY GOES HERE"
4
data-button-theme="dark"
5
class="canva-design-button"
6
style="display: none;"
7
>Design with Canva</button
8
>
9
<script>
10
(function (c, a, n) {
11
var w = c.createElement(a),
12
s = c.getElementsByTagName(a)[0];
13
w.src = n;
14
s.parentNode.insertBefore(w, s);
15
})(document, "script", "https://sdk.canva.com/designbutton/v2/api.js");
16
</script>
Copied!
There are three themes to choose from:
  • default
  • dark
  • light
If you don't specify a theme, Canva uses the default theme.
Last modified 1mo ago
Copy link
Contents
Size
Theme