add project instructions for palettes + make themes consistent

This commit is contained in:
lindsaym-fa
2025-10-27 18:32:29 -04:00
parent 433f0efe63
commit b1c47a07b0
2 changed files with 84 additions and 44 deletions

View File

@@ -66,14 +66,50 @@ layout: page
</div>
<h2>Using This Palette</h2>
<div id="import-code">
{% for palette in themer.palettes %}
<div class="palette-instructions" data-palette="{{ palette.name | lower }}" {% if not loop.first %}hidden{% endif %}>
<p>
To import this palette, set <code>&lt;html class=&quot;wa-palette-{{ palette.name | lower }}&quot;&gt;</code> and import the following stylesheet:
</p>
<pre><code class="language-html">&lt;link rel=&quot;stylesheet&quot; href=&quot;/dist/styles/color/palettes/{{ palette.filename }}&quot; /&gt;</code></pre>
</div>
<div class="palette-instructions" data-palette="{{ palette.name | lower }}" {% if not loop.first %}hidden{% endif %}>
<wa-tab-group>
<wa-tab panel="projects"><wa-icon name="briefcase" variant="regular"></wa-icon> Projects</wa-tab>
<wa-tab panel="npm"><wa-icon name="box-open" variant="regular"></wa-icon> npm</wa-tab>
<wa-tab panel="self-hosted"><wa-icon name="file-zipper" variant="regular"></wa-icon> Self-Hosted</wa-tab>
<wa-tab-panel name="projects">
<h3 class="wa-heading-m">For Pro Projects:</h3>
<p>
In your project's <wa-icon name="gear" variant="regular"></wa-icon> Settings, <wa-icon name="paintbrush" variant="regular"></wa-icon> Edit Your Theme to open the Theme Builder. Select <strong>{{ palette.name | capitalize }}</strong> as your Color Palette.
</p>
<h3 class="wa-heading-m">For Free Projects:</h3>
<p>
In your project's <wa-icon name="gear" variant="regular"></wa-icon> Settings, set your Color Palette to <wa-icon name="swatchbook" variant="regular"></wa-icon> <strong>{{ palette.name | capitalize }}</strong>.
</p>
<p>Save your palette and watch it come to life anywhere you're using your project.</p>
</wa-tab-panel>
<wa-tab-panel name="npm">
<p>
To use this theme, import the theme's stylesheet:
</p>
<pre><code class="language-js">import &apos;@awesome.me/webawesome/dist/styles/themes/{{ palette.filename }}&apos;;</code></pre>
<p>
Then apply the following class to the <code>&lt;html&gt;</code> element:
</p>
<pre><code class="language-html">&lt;html class=&quot;wa-palette-{{ palette.name | lower }}&quot;&gt;</code></pre>
</wa-tab-panel>
<wa-tab-panel name="self-hosted">
<p>
To use this theme, import the theme's stylesheet:
</p>
<pre><code class="language-html">&lt;link rel=&quot;stylesheet&quot; href=&quot;/dist/styles/themes/{{ palette.filename }}&quot; /&gt;</code></pre>
<p>
Then apply the following class to the <code>&lt;html&gt;</code> element:
</p>
<pre><code class="language-html">&lt;html class=&quot;wa-palette-{{ palette.name | lower }}&quot;&gt;</code></pre>
</wa-tab-panel>
</wa-tab-group>
</div>
{% endfor %}
</div>

View File

@@ -87,47 +87,51 @@ to create a project with any one of these themes.
<h2>Using This Theme</h2>
{% for theme in themer.themes %}
<wa-tab-group class="theme-instructions" data-theme="{{ theme.filename | stripExtension }}" {% if not loop.first %}hidden{% endif %}>
<wa-tab panel="projects"><wa-icon name="briefcase" variant="regular"></wa-icon> Projects</wa-tab>
<wa-tab panel="npm"><wa-icon name="box-open" variant="regular"></wa-icon> npm</wa-tab>
<wa-tab panel="self-hosted"><wa-icon name="file-zipper" variant="regular"></wa-icon> Self-Hosted</wa-tab>
<div id="import-code">
{% for theme in themer.themes %}
<div class="theme-instructions" data-theme="{{ theme.filename | stripExtension }}" {% if not loop.first %}hidden{% endif %}>
<wa-tab-group>
<wa-tab panel="projects"><wa-icon name="briefcase" variant="regular"></wa-icon> Projects</wa-tab>
<wa-tab panel="npm"><wa-icon name="box-open" variant="regular"></wa-icon> npm</wa-tab>
<wa-tab panel="self-hosted"><wa-icon name="file-zipper" variant="regular"></wa-icon> Self-Hosted</wa-tab>
<wa-tab-panel name="projects">
<h3 class="wa-heading-m">For Pro Projects:</h3>
<p>
In your project's <wa-icon name="gear" variant="regular"></wa-icon> Settings, <wa-icon name="paintbrush" variant="regular"></wa-icon> Edit Your Theme to open the Theme Builder. Select <strong>{{ theme.filename | stripExtension | capitalize }}</strong> as your Starting Theme.
</p>
<h3 class="wa-heading-m">For Free Projects:</h3>
<p>
In your project's <wa-icon name="gear" variant="regular"></wa-icon> Settings, set your Theme to <wa-icon name="paintbrush" variant="regular"></wa-icon> <strong>{{ theme.filename | stripExtension | capitalize }}</strong> and your Color Palette to <wa-icon name="swatchbook" variant="regular"></wa-icon> <strong>{{ theme.palette.filename | stripExtension | capitalize }}</strong>.
</p>
<p>Save your theme and watch it come to life anywhere you're using your project.</p>
</wa-tab-panel>
<wa-tab-panel name="projects">
<h3 class="wa-heading-m">For Pro Projects:</h3>
<p>
In your project's <wa-icon name="gear" variant="regular"></wa-icon> Settings, <wa-icon name="paintbrush" variant="regular"></wa-icon> Edit Your Theme to open the Theme Builder. Select <strong>{{ theme.filename | stripExtension | capitalize }}</strong> as your Starting Theme.
</p>
<h3 class="wa-heading-m">For Free Projects:</h3>
<p>
In your project's <wa-icon name="gear" variant="regular"></wa-icon> Settings, set your Theme to <wa-icon name="paintbrush" variant="regular"></wa-icon> <strong>{{ theme.filename | stripExtension | capitalize }}</strong> and your Color Palette to <wa-icon name="swatchbook" variant="regular"></wa-icon> <strong>{{ theme.palette.filename | stripExtension | capitalize }}</strong>.
</p>
<p>Save your theme and watch it come to life anywhere you're using your project.</p>
</wa-tab-panel>
<wa-tab-panel name="npm">
<p>
To use this theme, import the theme's stylesheet:
</p>
<pre><code class="language-js">import &apos;@awesome.me/webawesome/dist/styles/themes/{{ theme.filename }}&apos;;</code></pre>
<p>
Then apply the following classes to the <code>&lt;html&gt;</code> element:
</p>
<pre><code class="language-html">&lt;html class=&quot;wa-theme-{{ theme.filename | stripExtension }} wa-palette-{{ theme.palette.filename | stripExtension }} wa-brand-{{ theme.colorBrand.color}}&quot;&gt;</code></pre>
</wa-tab-panel>
<wa-tab-panel name="npm">
<p>
To use this theme, import the theme's stylesheet:
</p>
<pre><code class="language-js">import &apos;@awesome.me/webawesome/dist/styles/themes/{{ theme.filename }}&apos;;</code></pre>
<p>
Then apply the following classes to the <code>&lt;html&gt;</code> element:
</p>
<pre><code class="language-html">&lt;html class=&quot;wa-theme-{{ theme.filename | stripExtension }} wa-palette-{{ theme.palette.filename | stripExtension }} wa-brand-{{ theme.colorBrand.color}}&quot;&gt;</code></pre>
</wa-tab-panel>
<wa-tab-panel name="self-hosted">
<p>
To use this theme, import the theme's stylesheet:
</p>
<pre><code class="language-html">&lt;link rel=&quot;stylesheet&quot; href=&quot;/dist/styles/themes/{{ theme.filename }}&quot; /&gt;</code></pre>
<p>
Then apply the following classes to the <code>&lt;html&gt;</code> element:
</p>
<pre><code class="language-html">&lt;html class=&quot;wa-theme-{{ theme.filename | stripExtension }} wa-palette-{{ theme.palette.filename | stripExtension }} wa-brand-{{ theme.colorBrand.color}}&quot;&gt;</code></pre>
</wa-tab-panel>
</wa-tab-group>
{% endfor %}
<wa-tab-panel name="self-hosted">
<p>
To use this theme, import the theme's stylesheet:
</p>
<pre><code class="language-html">&lt;link rel=&quot;stylesheet&quot; href=&quot;/dist/styles/themes/{{ theme.filename }}&quot; /&gt;</code></pre>
<p>
Then apply the following classes to the <code>&lt;html&gt;</code> element:
</p>
<pre><code class="language-html">&lt;html class=&quot;wa-theme-{{ theme.filename | stripExtension }} wa-palette-{{ theme.palette.filename | stripExtension }} wa-brand-{{ theme.colorBrand.color}}&quot;&gt;</code></pre>
</wa-tab-panel>
</wa-tab-group>
</div>
{% endfor %}
</div>
<script type="module">