Skip to content

Commit

Permalink
perf(token): update token per new theming #15
Browse files Browse the repository at this point in the history
- also add scss fallback values
- keep old token npm package for the time being

Changes to be committed:
	modified:   demo/index.html
	modified:   package-lock.json
	modified:   package.json
	modified:   src/style.scss
  • Loading branch information
fajar-apri-alaska committed Nov 2, 2023
1 parent b627689 commit 3d773fa
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 67 deletions.
1 change: 1 addition & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
href="https://cdn.jsdelivr.net/npm/[email protected]/themes/prism.css"
/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alaskaairux/design-tokens@latest/dist/tokens/CSSCustomProperties.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>
Expand Down
81 changes: 19 additions & 62 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,14 @@
},
"peerDependencies": {
"@alaskaairux/design-tokens": "^3.14.0",
"@aurodesignsystem/webcorestylesheets": "^4.6.0"
"@aurodesignsystem/design-tokens": "^4.1.1",
"@aurodesignsystem/webcorestylesheets": "^5.0.4"
},
"devDependencies": {
"@alaskaairux/design-tokens": "^3.15.5",
"@aurodesignsystem/design-tokens": "^4.1.1",
"@aurodesignsystem/eslint-config": "^1.3.0",
"@aurodesignsystem/webcorestylesheets": "^4.8.0",
"@aurodesignsystem/webcorestylesheets": "^5.0.4",
"@commitlint/cli": "^17.7.0",
"@commitlint/config-conventional": "^17.7.0",
"@open-wc/testing": "^3.2.0",
Expand Down
9 changes: 6 additions & 3 deletions src/style.scss
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
// Copyright (c) 2021 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
// See LICENSE in the project root for license information.

// Support for fallback values
@import './../node_modules/@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables.scss';

:host {
position: fixed;
right: var(--auro-size-300);
bottom: var(--auro-size-300);
right: var(--ds-size-300, $ds-size-300);
bottom: var(--ds-size-300, $ds-size-300);
}

:host([hidden]) {
display: none;
}

auro-button {
box-shadow: var(--auro-elevation-300);
box-shadow: var(--ds-elevation-300, $ds-elevation-300);

&::part(button) {
transition-property: opacity;
Expand Down

0 comments on commit 3d773fa

Please sign in to comment.