Add a public API to return the definition for a style
- Dominant language
- JavaScript
- Stars
- 5.3k
- Forks
- 187
- PR merge metrics
- No merged PRs in 30d
Description
I was experimenting with Storybook's jsx addon. Here's its output for a component that's passed an aphrodite style as a prop:

I would like to update the plugin to handle aphrodite styles more gracefully by being display the definition for the rule instead of the aphrodite internals.
Proposed API:
```
function getStyleDefinition(style) => Object
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing Aphrodite's style representation and public exports, then compare the current object shown in the Storybook jsx addon output with the requested definition. Done means a public getStyleDefinition(style) API returns the rule definition rather than Aphrodite internals, with coverage for the relevant style forms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- css, javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100