Skip to content

Commit

Permalink
feat(themes): add component level tokens for themeing
Browse files Browse the repository at this point in the history
  • Loading branch information
jason-capsule42 committed May 29, 2024
1 parent 6dcf1eb commit 78e7180
Show file tree
Hide file tree
Showing 16 changed files with 1,390 additions and 1,473 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ docTemplates/
.cache/

## Demo support files
demo/*.css
# demo/*.css
demo/*.css.map

## CSS built from Sass process
Expand Down
18 changes: 11 additions & 7 deletions apiExamples/onDark.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<auro-icon ondark category="interface" name="pin-trip"></auro-icon>
<auro-icon ondark category="interface" name="pin-trip" emphasis></auro-icon>
<auro-icon ondark category="interface" name="pin-trip" accent></auro-icon>
<auro-icon ondark category="interface" name="pin-trip" disabled></auro-icon>
<auro-icon ondark category="interface" name="pin-trip" error></auro-icon>
<auro-icon ondark category="interface" name="pin-trip" success></auro-icon>
<auro-icon ondark category="interface" name="pin-trip" advisory></auro-icon>
<auro-icon category="interface" name="pin-trip" onDark>default</auro-icon> <span style="color: var(--ds-color-base-white)">default</span><br />
<auro-icon category="interface" name="pin-trip" onDark accent></auro-icon> <span style="color: var(--ds-color-base-white)">accent</span><br />
<auro-icon category="interface" name="pin-trip" onDark disabled></auro-icon> <span style="color: var(--ds-color-base-white)">disabled</span><br />
<auro-icon category="interface" name="pin-trip" onDark emphasis></auro-icon> <span style="color: var(--ds-color-base-white)">emphasis</span><br />
<auro-icon category="interface" name="pin-trip" onDark error></auro-icon> <span style="color: var(--ds-color-base-white)">error</span><br />
<auro-icon category="interface" name="pin-trip" onDark info></auro-icon> <span style="color: var(--ds-color-base-white)">info</span><br />
<auro-icon category="interface" name="pin-trip" onDark secondary></auro-icon> <span style="color: var(--ds-color-base-white)">secondary</span><br />
<auro-icon category="interface" name="pin-trip" onDark subtle></auro-icon> <span style="color: var(--ds-color-base-white)">subtle</span><br />
<auro-icon category="interface" name="pin-trip" onDark success></auro-icon> <span style="color: var(--ds-color-base-white)">success</span><br />
<auro-icon category="interface" name="pin-trip" onDark tertiary></auro-icon><span style="color: var(--ds-color-base-white)">tertiary</span><br />
<auro-icon category="interface" name="pin-trip" onDark warning></auro-icon> <span style="color: var(--ds-color-base-white)">warning</span>
20 changes: 13 additions & 7 deletions apiExamples/visualState.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
<auro-icon category="interface" name="pin-trip"></auro-icon>
<auro-icon category="interface" name="pin-trip" emphasis></auro-icon>
<auro-icon category="interface" name="pin-trip" accent></auro-icon>
<auro-icon category="interface" name="pin-trip" disabled></auro-icon>
<auro-icon category="interface" name="pin-trip" error></auro-icon>
<auro-icon category="interface" name="pin-trip" success></auro-icon>
<auro-icon category="interface" name="pin-trip" advisory></auro-icon>
<auro-icon category="logos" name="tail-AS"></auro-icon> default<br />

<auro-icon category="interface" name="pin-trip"></auro-icon> default<br />
<auro-icon category="interface" name="pin-trip" accent></auro-icon> accent<br />
<auro-icon category="interface" name="pin-trip" disabled></auro-icon> disabled<br />
<auro-icon category="interface" name="pin-trip" emphasis></auro-icon> emphasis<br />
<auro-icon category="interface" name="pin-trip" error></auro-icon> error<br />
<auro-icon category="interface" name="pin-trip" info></auro-icon> info<br />
<auro-icon category="interface" name="pin-trip" secondary></auro-icon> secondary<br />
<auro-icon category="interface" name="pin-trip" subtle></auro-icon> subtle<br />
<auro-icon category="interface" name="pin-trip" success></auro-icon> success<br />
<auro-icon category="interface" name="pin-trip" tertiary></auro-icon>tertiary<br />
<auro-icon category="interface" name="pin-trip" warning></auro-icon> warning
48 changes: 48 additions & 0 deletions demo/alaska.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<!--
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
See LICENSE in the project root for license information.
HTML in this document is standardized and NOT to be edited.
All demo code should be added/edited in ./demo/index.md
With the exception of adding custom elements if needed for the demo.
----------------------- DO NOT EDIT -----------------------------
-->

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Auro Web Component Generator | auro-icon custom element</title>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
</head>
<body class="auro-markdown">
<main></main>

<script type="module">
import 'https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js';
import 'https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js';
fetch('/demo/alaska.md')
.then((response) => response.text())
.then((text) => {
const rawHtml = marked.parse(text);
document.querySelector('main').innerHTML = rawHtml;
Prism.highlightAll();
});
</script>
<script type="module" data-demo-script="true" src="../src/auro-alaska.js"></script>

<!-- If additional elements are needed for the demo, add them here. -->
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
</body>
</html>
12 changes: 6 additions & 6 deletions demo/alaska.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import "@alaskaairux/auro-icon/dist/auro-alaska";
<auro-alaska style="width: 192px"></auro-alaska>
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>

```html
Expand All @@ -27,7 +27,7 @@ import "@alaskaairux/auro-icon/dist/auro-alaska";
<auro-alaska onDark style="width: 192px"></auro-alaska>
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>

```html
Expand All @@ -44,7 +44,7 @@ Using the `official` property will display the Alaska Airlines logo with the off
<auro-alaska official style="width: 192px"></auro-alaska>
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>

```html
Expand All @@ -57,7 +57,7 @@ Using the `official` property will display the Alaska Airlines logo with the off
<auro-alaska official ondark style="width: 192px"></auro-alaska>
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>

```html
Expand All @@ -77,7 +77,7 @@ The Alaska Airline logo has a preferred version of the logo depending in the siz
<auro-alaska style="width: 528px"></auro-alaska>
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>

```html
Expand All @@ -96,7 +96,7 @@ The Alaska Airline logo has a preferred version of the logo depending in the siz
<auro-alaska official style="width: 528px"></auro-alaska>
</div>

<auro-accordion lowProfile justifyRight>
<auro-accordion alignRight>
<span slot="trigger">See code</span>

```html
Expand Down
Loading

0 comments on commit 78e7180

Please sign in to comment.