Skip to content

Commit

Permalink
perf: update tokens per new theme spec #44
Browse files Browse the repository at this point in the history
Changes to be committed:
modified:   demo/demo.md
modified:   demo/index.html
modified:   package-lock.json
modified:   package.json
modified:   src/style.scss
  • Loading branch information
irma-kurnia-alaska authored and blackfalcon committed Nov 10, 2023
1 parent f5e7e52 commit 6ecd079
Show file tree
Hide file tree
Showing 5 changed files with 5,155 additions and 3,924 deletions.
26 changes: 13 additions & 13 deletions demo/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The auro-header will default to the h1 element with the `header--display` style.
<auro-header>Hello World!</auro-header>
</div>

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

```html
Expand All @@ -34,7 +34,7 @@ Changing the header level does not change the header style. This example will ou
<auro-header level="3">Hello World!</auro-header>
</div>

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

```html
Expand All @@ -49,7 +49,7 @@ Or vice-versa. This example will output an h1 header element with the `header--8
<auro-header display="800">Hello World!</auro-header>
</div>

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

```html
Expand All @@ -64,7 +64,7 @@ Or vice-versa. This example will output an h1 header element with the `header--8
<auro-header level="2" display="700">Hello World!</auro-header>
</div>

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

```html
Expand All @@ -77,7 +77,7 @@ Or vice-versa. This example will output an h1 header element with the `header--8
<auro-header level="2" display="600">Hello World!</auro-header>
</div>

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

```html
Expand All @@ -90,7 +90,7 @@ Or vice-versa. This example will output an h1 header element with the `header--8
<auro-header level="3" display="500">Hello World!</auro-header>
</div>

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

```html
Expand All @@ -103,7 +103,7 @@ Or vice-versa. This example will output an h1 header element with the `header--8
<auro-header level="5" display="400">Hello World!</auro-header>
</div>

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

```html
Expand All @@ -128,7 +128,7 @@ Also note the use of the util_stackMarginNone--top utility selector on the ol
</ol>
</div>

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

```html
Expand All @@ -151,7 +151,7 @@ The following example shows how you can update `both` margins to use the `xl` si
</ol>
</div>

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

```html
Expand All @@ -174,7 +174,7 @@ If there is a CSS selector that has the color definition you want to use with th
</div>
</div>

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

```html
Expand All @@ -195,7 +195,7 @@ If it's preferred not to wrap the header component in another element, use the `
</auro-header>
</div>

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

```html
Expand All @@ -218,7 +218,7 @@ This feature should only to be used within environments where the REM values can
</auro-header>
</div>

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

```html
Expand Down Expand Up @@ -246,7 +246,7 @@ This will create a new custom element that you can use in your HTML that will fu
<custom-header display="display">Salutations World!</custom-header>
</div>

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

```html
Expand Down
17 changes: 10 additions & 7 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
<link
rel="stylesheet"
type="text/css"
href="../node_modules/prismjs/themes/prism.css"
href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
/>
<link rel="stylesheet" href="https://unpkg.com/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.css">
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@alaskaairux/webcorestylesheets@latest/dist/demoWrapper.css" />
<link rel="stylesheet" type="text/css" href="https://unpkg.com/@alaskaairux/webcorestylesheets@latest/dist/elementDemoStyles.css" />
<!-- legacy reference is still needed to support auro-accordion's use of legacy toke vales at this time -->
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.css">

<link rel="stylesheet" type="text/css" 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//@alaskaairux/webcorestylesheets@latest/dist/demoWrapper.css" />
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm//@alaskaairux/webcorestylesheets@latest/dist/elementDemoStyles.css" />
</head>
<body>
<main></main>

<script type="module">
import 'https://unpkg.com/marked@latest/marked.min.js';
import 'https://unpkg.com/prismjs@latest/prism.js';
import 'https://cdn.jsdelivr.net/npm//marked@latest/marked.min.js';
import 'https://cdn.jsdelivr.net/npm//prismjs@latest/prism.js';
fetch('/demo/demo.md')
.then((response) => response.text())
.then((text) => {
Expand All @@ -33,6 +36,6 @@
registerComponent('custom-header');
</script>

<script src="https://unpkg.com/@alaskaairux/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm//@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
</body>
</html>
Loading

0 comments on commit 6ecd079

Please sign in to comment.