Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor color tokens for theming capabilities #317

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion demo/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
</script>

<!-- If additional elements are needed for the demo, add them here. -->
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-radio@latest/dist/auro-radio__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/dist/auro-button__bundled.js" type="module"></script>
Expand Down
31 changes: 27 additions & 4 deletions demo/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ For use cases where the field is `required`, but live validation is not wanted,
<!-- AURO-GENERATED-CONTENT:END -->
</auro-accordion>

### Error support and HTML5 Validity
## Error support and HTML5 Validity

The `<auro-input>` component follows the HTML5 input `validity` and `validityState` [specification](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#client-side_validation).

Expand Down Expand Up @@ -718,7 +718,7 @@ export function customError() {
<!-- AURO-GENERATED-CONTENT:END -->
</auro-accordion>

### Types
## Types

### Password

Expand Down Expand Up @@ -1076,7 +1076,7 @@ Use the `type="year-month-day"` attribute for a date formatted input.
<!-- AURO-GENERATED-CONTENT:END -->
</auro-accordion>

### Additional Use Cases
## Additional Use Cases

### Swapping Values Between Inputs

Expand Down Expand Up @@ -1158,4 +1158,27 @@ export function swapInputValues() {
}
```
<!-- AURO-GENERATED-CONTENT:END -->
</auro-accordion>
</auro-accordion>

## Theme Support

The component may be restyled using the following code sample and changing the values of the following token(s).

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../src/tokens.scss) -->
<!-- The below code snippet is automatically added from ./../../src/tokens.scss -->
jason-capsule42 marked this conversation as resolved.
Show resolved Hide resolved

```scss
:host {
--ds-auro-input-alert-icon-color: var(--ds-color-alert-error-default, $ds-color-alert-error-default);
--ds-auro-input-background-color: var(--ds-color-background-primary-100-default, $ds-color-background-primary-100-default);
--ds-auro-input-border-color: var(--ds-color-border-secondary-default, $ds-color-border-secondary-default);
--ds-auro-input-caret-color: var(--ds-color-text-ui-focus-default, $ds-color-text-ui-focus-default);
--ds-auro-input-help-text-color: var(--ds-color-text-tertiary-default, $ds-color-text-tertiary-default);
--ds-auro-input-label-text-color: var(--ds-color-text-tertiary-default, $ds-color-text-tertiary-default);
--ds-auro-input-notification-icon-color: var(--ds-color-alert-error-default, $ds-color-alert-error-default);
--ds-auro-input-placeholder-text-color: transparent;
--ds-auro-input-text-color: var(--ds-color-text-primary-default, $ds-color-text-primary-default);
--ds-auro-input-type-icon-color: var(--ds-color-icon-primary-default, $ds-color-icon-primary-default);
}
```
<!-- AURO-GENERATED-CONTENT:END -->
1 change: 0 additions & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
</script>

<!-- If additional elements are needed for the demo, add them here. -->
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/dist/auro-icon__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/dist/auro-accordion__bundled.js" type="module"></script>
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-radio@latest/dist/auro-radio__bundled.js" type="module"></script>
</body>
Expand Down
13 changes: 10 additions & 3 deletions docs/partials/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ For use cases where the field is `required`, but live validation is not wanted,

</auro-accordion>

### Error support and HTML5 Validity
## Error support and HTML5 Validity

The `<auro-input>` component follows the HTML5 input `validity` and `validityState` [specification](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#client-side_validation).

Expand Down Expand Up @@ -367,7 +367,7 @@ Use the `error` attribute to apply a persistent custom error that supersedes the

</auro-accordion>

### Types
## Types

### Password

Expand Down Expand Up @@ -557,7 +557,7 @@ Use the `type="year-month-day"` attribute for a date formatted input.

</auro-accordion>

### Additional Use Cases
## Additional Use Cases

### Swapping Values Between Inputs

Expand All @@ -578,3 +578,10 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
<!-- AURO-GENERATED-CONTENT:END -->

</auro-accordion>

## Theme Support

The component may be restyled using the following code sample and changing the values of the following token(s).

<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../../src/tokens.scss) -->
<!-- AURO-GENERATED-CONTENT:END -->
Loading