@redis-ui/styles 19.0.0 → 20.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,16 @@ const bodyStyle = css `
12
12
  }
13
13
  }
14
14
  `;
15
+ const rsuiteStyle = css `
16
+ :root {
17
+ /* Override rsuite CSS variables to match Redis UI theme */
18
+ ${({ theme }) => theme.rsuite
19
+ ? Object.entries(theme.rsuite)
20
+ .map(([key, value]) => `${key}: ${value};`)
21
+ .join('\n ')
22
+ : ''}
23
+ }
24
+ `;
15
25
  const scrollbarStyle = css `
16
26
  @media (pointer: fine) {
17
27
  @-moz-document url-prefix() {
@@ -68,4 +78,5 @@ export const CommonStyles = createGlobalStyle `
68
78
  ${bodyStyle};
69
79
  ${scrollbarStyle};
70
80
  ${reducedMotionStyle};
81
+ ${rsuiteStyle};
71
82
  `;