The Open Standard for Generative UI
Adding new background colour variable 'bg-highlight-strong' (#218)
subhamc6e6171ddf7e
diff --git a/js/packages/react-ui/src/components/ThemeProvider/ThemeProvider.tsx b/js/packages/react-ui/src/components/ThemeProvider/ThemeProvider.tsxindex 0f2d6cc30..a5d4789db 100644--- a/js/packages/react-ui/src/components/ThemeProvider/ThemeProvider.tsx+++ b/js/packages/react-ui/src/components/ThemeProvider/ThemeProvider.tsx@@ -48,6 +48,7 @@ const lightTheme: ColorTheme = {elevatedFills: "rgba(255, 255, 255, 0.6)",sunkBgFills: "rgba(0, 0, 0, 0.04)",highlightSubtle: "rgba(0, 0, 0, 0.02)",+ highlightStrong: "rgba(0, 0, 0, 0.08)",// Border colorsstrokeDefault: "rgba(0, 0, 0, 0.06)",@@ -122,6 +123,7 @@ const darkTheme: ColorTheme = {invertedFills: "rgba(253, 253, 253, 1)",sunkBgFills: "rgba(0, 0, 0, 0.16)",highlightSubtle: "rgba(255, 255, 255, 0.03)",+ highlightStrong: "rgba(255, 255, 255, 0.10)",// Border colorsstrokeDefault: "rgba(255, 255, 255, 0.06)",@@ -357,6 +359,7 @@ export const ThemeProvider = ({--crayon-interactive-destructive-accent-pressed: ${theme.interactiveDestructiveAccentPressed};--crayon-interactive-destructive-accent-disabled: ${theme.interactiveDestructiveAccentDisabled};--crayon-highlight-subtle: ${theme.highlightSubtle};+ --crayon-highlight-strong: ${theme.highlightStrong};--crayon-stroke-default: ${theme.strokeDefault};--crayon-stroke-interactive-el: ${theme.strokeInteractiveEl};diff --git a/js/packages/react-ui/src/components/ThemeProvider/themePresets.ts b/js/packages/react-ui/src/components/ThemeProvider/themePresets.tsindex 5a0ed7600..f9cba5c87 100644--- a/js/packages/react-ui/src/components/ThemeProvider/themePresets.ts+++ b/js/packages/react-ui/src/components/ThemeProvider/themePresets.ts@@ -46,6 +46,7 @@ export const themePresets = {elevatedFills: "rgba(255, 255, 255, 0.6)",sunkBgFills: "rgba(0, 0, 0, 0.04)",highlightSubtle: "rgba(0, 0, 0, 0.02)",+ highlightStrong: "rgba(0, 0, 0, 0.08)",// Border colorsstrokeDefault: "rgba(0, 0, 0, 0.06)",@@ -149,7 +150,7 @@ export const themePresets = {invertedFills: "rgba(253, 253, 253, 1)",sunkBgFills: "rgba(0, 0, 0, 0.16)",highlightSubtle: "rgba(255, 255, 255, 0.03)",-+ highlightStrong: "rgba(255, 255, 255, 0.10)",// Border colorsstrokeDefault: "rgba(255, 255, 255, 0.06)",strokeInteractiveEl: "rgba(255, 255, 255, 0.12)",diff --git a/js/packages/react-ui/src/components/ThemeProvider/types.ts b/js/packages/react-ui/src/components/ThemeProvider/types.tsindex 29bc9c528..400c915b0 100644--- a/js/packages/react-ui/src/components/ThemeProvider/types.ts+++ b/js/packages/react-ui/src/components/ThemeProvider/types.ts@@ -106,6 +106,7 @@ export interface ColorTheme extends ChartColorPalette {interactiveDestructiveAccentPressed?: string;interactiveDestructiveAccentDisabled?: string;highlightSubtle?: string;+ highlightStrong?: string;// chat colorschatContainerBg?: string;diff --git a/js/packages/react-ui/src/cssUtils.scss b/js/packages/react-ui/src/cssUtils.scssindex 6286802f3..32c266702 100644--- a/js/packages/react-ui/src/cssUtils.scss+++ b/js/packages/react-ui/src/cssUtils.scss@@ -14,6 +14,7 @@ $bg-alert: var(--crayon-alert-fills);$bg-inverted: var(--crayon-inverted-fills);$bg-sunk-bg: var(--crayon-sunk-bg-fills);$bg-highlight-subtle: var(--crayon-highlight-subtle);+$bg-highlight-strong: var(--crayon-highlight-strong);// Crayon Interactive Colors