diff --git a/packages/webawesome/docs/docs/resources/changelog.md b/packages/webawesome/docs/docs/resources/changelog.md index 59c0a3b2a..6443c774b 100644 --- a/packages/webawesome/docs/docs/resources/changelog.md +++ b/packages/webawesome/docs/docs/resources/changelog.md @@ -14,6 +14,10 @@ Components with the Experimental badge sh - Added `.wa-hover-rows` to native styles to opt-in to highlighting table rows on hover. +### Bug Fixes and Improvements {data-no-outline} + +- Fixed the themes page so it shows the correct palette and imports + ## 3.0.0-beta.1 We're excited to share the first beta release of Web Awesome, which includes some breaking changes that make the library significantly more intuitive and consistent! diff --git a/packages/webawesome/docs/docs/themes.njk b/packages/webawesome/docs/docs/themes.njk index 97cd60afd..05de2c2f9 100644 --- a/packages/webawesome/docs/docs/themes.njk +++ b/packages/webawesome/docs/docs/themes.njk @@ -4,97 +4,98 @@ description: Themes galore layout: page --- -
+
+

{{ title }}

+ + + Create a Theme + +
-
-

{{ title }}

- - - Create a Theme - -
+
+ {% raw %} + {% if not currentUser.hasPro %} +

+ Additional themes are available to pro users. Please login to view pro themes. +

+ {% endif %} + {% endraw %} -
- {% raw %} - {% if not currentUser.hasPro %} -

- Additional themes are available to pro users. Please login to view pro themes. -

- {% endif %} - {% endraw %} - - - {% for theme in themer.themes %} - {% if not theme.isPro %} + + {% for theme in themer.themes %} + {% if not theme.isPro %} + + {{ theme.name }} + + {% else %} + {% raw %} + {% if currentUser.hasPro %} + {% endraw %} {{ theme.name }} - {% else %} - {% raw %} - {% if currentUser.hasPro %} - {% endraw %} - - {{ theme.name }} - - {% raw %} - {% endif %} - {% endraw %} - {% endif %} - {% endfor %} - -
- - - -

Using This Theme

-
- {% for theme in themer.themes %} -
-

- To import this theme, set <html class="wa-theme-{{ theme.filename | stripExtension }}"> and import the following stylesheet: -

-
<link rel="stylesheet" href="{% cdnUrl %}styles/themes/{{ theme.filename }}" />
-
+ {% raw %} + {% endif %} + {% endraw %} + {% endif %} {% endfor %} -
- +
+
+ + + + + +
+ +

Using This Theme

+
+ {% for theme in themer.themes %} +
+

+ To import this theme, apply the following classes to the <html> element and import the theme's stylesheet. +

+
<html class="wa-theme-{{ theme.filename | stripExtension }} wa-palette-{{ theme.palette.filename | stripExtension }}">
+...
+<link rel="stylesheet" href="{% cdnUrl %}styles/themes/{{ theme.filename }}" />
+
+ {% endfor %} +
+ + @@ -171,6 +175,11 @@ layout: page display: none !important; } + #theme-preview, + #using-this-theme { + margin-block-start: var(--wa-space-3xl); + } + .title { display: none; }