Skip to content

fix: use themed colors in actions panel for dark mode support#858

Merged
dannyhw merged 2 commits intonextfrom
dannyhw/fix/actions-colors
Feb 28, 2026
Merged

fix: use themed colors in actions panel for dark mode support#858
dannyhw merged 2 commits intonextfrom
dannyhw/fix/actions-colors

Conversation

@dannyhw
Copy link
Member

@dannyhw dannyhw commented Feb 28, 2026

Summary

  • Replaces hardcoded light-mode RGB colors in ActionLogger/Inspect.tsx with styled components from @storybook/react-native-theming
  • Adds @storybook/react-native-theming as a dependency to @storybook/addon-ondevice-actions
  • Uses theme colors (secondary, orange, green, seafoam, purple, textMutedColor, defaultText) that are readable on both light and dark backgrounds

Problem

The actions panel inspector used hardcoded light-mode colors (dark purple, dark blue, dark red) that were unreadable against a dark background in dark mode.

Test plan

  • Run the expo example in dark mode
  • Trigger actions and verify the action log text is readable
  • Verify light mode still looks good
  • Check all value types render with distinct colors: strings, numbers, booleans, null, functions, objects

Replace hardcoded light-mode colors in ActionLogger with styled
components from @storybook/react-native-theming so the actions
panel is readable in both light and dark mode.
@changeset-bot
Copy link

changeset-bot bot commented Feb 28, 2026

🦋 Changeset detected

Latest commit: e12e4cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 9 packages
Name Type
@storybook/addon-ondevice-actions Patch
@storybook/react-native Patch
@storybook/react-native-ui Patch
@storybook/react-native-ui-lite Patch
@storybook/react-native-ui-common Patch
@storybook/react-native-theming Patch
@storybook/addon-ondevice-backgrounds Patch
@storybook/addon-ondevice-controls Patch
@storybook/addon-ondevice-notes Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dannyhw dannyhw merged commit ca065b5 into next Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant