# New demo template: Math functions in design tokens

**URL:** <https://community.penpot.app/t/new-demo-template-math-functions-in-design-tokens/10513>\
**Category:** Libraries & Templates\
**Created:** [April 22, 2026, 1:00pm UTC](https://community.penpot.app/t/new-demo-template-math-functions-in-design-tokens/10513 "2026-04-22T13:00:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LauraKalbag](https://dub1.discourse-cdn.com/flex017/user_avatar/community.penpot.app/laurakalbag/32/5014_2.png) [@LauraKalbag](https://community.penpot.app/u/LauraKalbag)\
**Post date:** [April 22, 2026, 1:00pm UTC](https://community.penpot.app/t/new-demo-template-math-functions-in-design-tokens/10513/1 "2026-04-22T13:00:39Z")

</div>

I’ve created a new template to demo math functions in Design Tokens. You can [download the template from the Penpot Hub](https://penpot.app/penpothub/libraries-templates/math-functions-in-design-tokens).

[![Math Functions in Design Tokens. 10 Math Function demos.](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/a/a644d300038e374ca3ee4b9691a31c000473ed67.png)](https://penpot.app/penpothub/libraries-templates/math-functions-in-design-tokens)

In [our last hands-on demo](https://www.youtube.com/watch?v=TmVuRMf5Ojg), Marco and I briefly covered some of the math functions available in Penpot’s design tokens. These included `round()` and `pow()`. But I wanted to demonstrate even more of the math functions you can play with as well as some practical use cases for them.

This template contains 10 demos :`round()`, `ceil()`, `floor()`, `abs()`, `min()`, `max()`, `sqrt()`, `pow()`, `exp()`, and `log()`. Each page contains a different demo with its own token set and corresponding token theme. Like this:

 ![Editing a font size token that is using the rounding function.](https://europe1.discourse-cdn.com/flex017/uploads/penpot/original/2X/e/efa083ca23070be8814225a94d91a9ba29a2ab5c.webp)

There are way more math functions available in Penpot. You can [find the full list in the user guide](https://help.penpot.app/user-guide/design-systems/design-tokens/#design-tokens-math-functions). And if you found any practical use cases for any of these more obscure functions, please do let me know!
