Skip to content

Conversation

@alisonjlai
Copy link
Contributor

@alisonjlai alisonjlai commented Sep 15, 2025

  • Adds useThemeColors() hook for automatic theme color updates
  • Adds themeColors property on plugin instance, right now it has two fields: backgroundColor and textColor. We can expand in the future.
  • Will update readme when this is finalized.

Sample plugin app:

function App() {
  const themeColors = useThemeColors();

  return (
    <div
      style={{ backgroundColor: themeColors?.backgroundColor }}
    >
      <p style={{ color: themeColors?.textColor }}>
        ...
      </p>
    </div>
  );
}

@alisonjlai alisonjlai marked this pull request as ready for review September 16, 2025 16:17
@alisonjlai alisonjlai closed this Sep 25, 2025
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.

2 participants