From d89db3d170e0e305fb274d2b47fb1841eeb95b5b Mon Sep 17 00:00:00 2001 From: Bryan Young Date: Fri, 14 Apr 2023 13:16:17 -0700 Subject: [PATCH] feat: added roles for louder errors --- packages/theme-data/src/baseTheme/components/input.js | 9 +++++++++ packages/theme-data/src/baseTheme/system/colorScheme.js | 9 +++++++++ .../src/colorSchemes/darkBlue/components/input.js | 5 +++++ .../src/colorSchemes/darkBlue/system/colorScheme.js | 5 +++++ 4 files changed, 28 insertions(+) diff --git a/packages/theme-data/src/baseTheme/components/input.js b/packages/theme-data/src/baseTheme/components/input.js index ff2a8b6266..cd12ed4b70 100644 --- a/packages/theme-data/src/baseTheme/components/input.js +++ b/packages/theme-data/src/baseTheme/components/input.js @@ -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: { diff --git a/packages/theme-data/src/baseTheme/system/colorScheme.js b/packages/theme-data/src/baseTheme/system/colorScheme.js index dfeaa9691e..382fc00fb0 100644 --- a/packages/theme-data/src/baseTheme/system/colorScheme.js +++ b/packages/theme-data/src/baseTheme/system/colorScheme.js @@ -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", diff --git a/packages/theme-data/src/colorSchemes/darkBlue/components/input.js b/packages/theme-data/src/colorSchemes/darkBlue/components/input.js index ce79905eae..e2b5e570b0 100644 --- a/packages/theme-data/src/colorSchemes/darkBlue/components/input.js +++ b/packages/theme-data/src/colorSchemes/darkBlue/components/input.js @@ -35,4 +35,9 @@ export default { ref: "basics.colors.secondary.darkBlue.200", }, }, + "input.value.error.highlightColor": { + transform: { + alpha: 0.35, + }, + }, }; diff --git a/packages/theme-data/src/colorSchemes/darkBlue/system/colorScheme.js b/packages/theme-data/src/colorSchemes/darkBlue/system/colorScheme.js index 02d5262762..224f516037 100644 --- a/packages/theme-data/src/colorSchemes/darkBlue/system/colorScheme.js +++ b/packages/theme-data/src/colorSchemes/darkBlue/system/colorScheme.js @@ -258,6 +258,11 @@ export default { alpha: 0.25, }, }, + "halo.error": { + transform: { + alpha: 0.35, + }, + }, "indicator.default": { value: { ref: "colorScheme.reference.base",