Skip to content

Commit

Permalink
feat: added roles for louder errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-young committed Apr 14, 2023
1 parent d5b5c6c commit d89db3d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/theme-data/src/baseTheme/components/input.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,15 @@ export default {
alpha: 0.2,
},
},
"input.value.error.highlightColor": {
type: COLOR,
value: {
ref: "colorScheme.status.error",
},
transform: {
alpha: 0.25,
},
},
"input.value.lineHeight": {
type: LINE_HEIGHT,
value: {
Expand Down
9 changes: 9 additions & 0 deletions packages/theme-data/src/baseTheme/system/colorScheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ export default {
},
type: COLOR,
},
"halo.error": {
value: {
ref: "colorScheme.status.error",
},
transform: {
alpha: 0.25,
},
type: COLOR,
},
"halo.focus": {
value: {
ref: "colorScheme.reference.accent",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,9 @@ export default {
ref: "basics.colors.secondary.darkBlue.200",
},
},
"input.value.error.highlightColor": {
transform: {
alpha: 0.35,
},
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,11 @@ export default {
alpha: 0.25,
},
},
"halo.error": {
transform: {
alpha: 0.35,
},
},
"indicator.default": {
value: {
ref: "colorScheme.reference.base",
Expand Down

0 comments on commit d89db3d

Please sign in to comment.