---
layout: default
title: theme
nav:
group: Liquid Variables
---
# theme
The theme object contains information about published themes in a shop. You can also use themes to iterate through both themes.
Input
{% highlight html %}{% raw %} {% for t in themes %} {{ t.role }} theme: {{ t.name }} {% endfor %} {% endraw %}{% endhighlight %}Output
theme object has the following attributes:
{% table_of_contents %}
{% anchor_link "theme.id", "theme-id" %}
Returns the theme's id. This is useful for when you want to link a user directly to the theme's Theme Settings.
Input
Output
main or mobile.
{% anchor_link "theme.name", "theme-name" %}
Returns the name of the theme.