@redis-ui/styles 21.15.0 → 21.15.2

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.
package/README.md CHANGED
@@ -85,7 +85,12 @@ const Panel = styled.div`
85
85
  background: ${({ theme }) => theme.semantic.color.background.neutral100};
86
86
  `;
87
87
 
88
- const { mode } = useTheme(); // 'light' | 'dark'
88
+ // useTheme is a hook: call it inside a component or custom hook
89
+ const ModeLabel = () => {
90
+ const { mode } = useTheme(); // 'light' | 'dark'
91
+
92
+ return <span>Current mode: {mode}</span>;
93
+ };
89
94
  ```
90
95
 
91
96
  Use tokens instead of hard-coded values, so your UI follows both themes and both modes.
package/dist/index.js CHANGED
@@ -9869,8 +9869,8 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
9869
9869
  toggleStates: {
9870
9870
  on: {
9871
9871
  normal: {
9872
- bgColor: "#0F6FB8",
9873
- borderColor: "#0F6FB8",
9872
+ bgColor: V.semantic.color.background.primary400,
9873
+ borderColor: V.semantic.color.border.primary400,
9874
9874
  thumbColor: V.semantic.color.icon.secondary0,
9875
9875
  textColor: V.semantic.color.text.secondary950
9876
9876
  },
@@ -12957,8 +12957,8 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
12957
12957
  toggleStates: {
12958
12958
  on: {
12959
12959
  normal: {
12960
- bgColor: K.semantic.color.background.informative300,
12961
- borderColor: K.semantic.color.border.informative300,
12960
+ bgColor: K.semantic.color.background.primary400,
12961
+ borderColor: K.semantic.color.border.primary400,
12962
12962
  thumbColor: K.semantic.color.icon.secondary0,
12963
12963
  textColor: K.semantic.color.text.secondary0
12964
12964
  },