diff --git a/packages/webawesome/docs/_includes/theming/instructions.njk b/packages/webawesome/docs/_includes/theming/instructions.njk new file mode 100644 index 000000000..75fe1b828 --- /dev/null +++ b/packages/webawesome/docs/_includes/theming/instructions.njk @@ -0,0 +1,300 @@ +{% from "pro-badge.njk" import proBadge %} +{% from "free-badge.njk" import freeBadge %} + +
+
+ Theme Options + + Pro + {%- for theme in themer.themes -%} + {%- if not theme.isPro -%} + + {{ theme.name | capitalize }} + + {%- endif -%} + {%- endfor -%} + {% raw %}{% if currentUser.hasPro %}{% endraw %} + {%- for theme in themer.themes -%} + {% if loop.first %}{% endif %} + {%- if theme.isPro -%} + + {{ theme.name | capitalize }} + + {%- endif -%} + {%- endfor -%} + {% raw %}{% endif %}{% endraw %} + + + Pro + {%- for palette in themer.palettes -%} + {%- if not palette.isPro -%} + + {{ palette.name | capitalize }} + + {%- endif -%} + {%- endfor -%} + {% raw %}{% if currentUser.hasPro %}{% endraw %} + {%- for palette in themer.palettes -%} + {% if loop.first %}{% endif %} + {%- if palette.isPro -%} + + {{ palette.name | capitalize }} + + {%- endif -%} + {%- endfor -%} + {% raw %}{% endif %}{% endraw %} + + +
+
+ + + CDN + npm + Self-Hosted + + + + + + +

To use this theme, include the following stylesheet(s):

+
+

Then, apply the following classes to the <html> element:

+
+
+ + +

To use this theme, include the following stylesheet(s):

+
+

Then, apply the following classes to the <html> element:

+
+
+
+ + diff --git a/packages/webawesome/docs/docs/theming/index.md b/packages/webawesome/docs/docs/theming/index.md index 753ab1f27..329da84ac 100644 --- a/packages/webawesome/docs/docs/theming/index.md +++ b/packages/webawesome/docs/docs/theming/index.md @@ -154,7 +154,11 @@ applyDark(); ## Using Themes -TODO +Use and update themes instantly via CDN with [Web Awesome projects](/teams). Or, assemble the pieces together using npm or in your self-hosted app. + +Select your favorite options and follow the instructions for your preferred method. + +{% include 'theming/instructions.njk' %} ## Creating Your Own