---
layout: null
permalink: '/assets/data/themes.js'
eleventyExcludeFromCollections: true
---

export default {
{%- for theme in collections.theme | sort %}
{%- if not theme.data.unlisted and theme.fileSlug !== 'edit' and theme.fileSlug !== 'custom' %}
  {% set themeId = theme.fileSlug -%}
  {%- set themeMeta = themes[themeId] -%}
  '{{ themeId }}': {
    id: '{{ themeId }}',
    title: '{{ theme.data.title }}',
    palette: '{{ themeMeta.palette }}',
    brand: '{{ themeMeta.brand }}',
    isPro: {{ theme.data.isPro or 'pro' in theme.data.tags }},
    fonts: {{ (theme.data.fonts | json or 'null') | safe }},
    icons: {{ (themeMeta.icons | json or 'null') | safe }},
    rounding: {{ themeMeta.rounding }},
    spacing: {{ themeMeta.spacing }},
    borderWidth: {{ themeMeta.borderWidth }},
    dimension: {{ (theme.data.dimension or themeMeta.dimension or false) | json | safe }},
  },
{%- endif %}
{% endfor %}
};
