Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate unique classNames #5

Merged
merged 1 commit into from
May 6, 2018
Merged

Generate unique classNames #5

merged 1 commit into from
May 6, 2018

Commits on May 6, 2018

  1. Generate unique classNames

    This update (super) enhances Fancy to with the CSS Modules-like feature of
    parsing and generating unique classNames.
    
    This is done by tapping into `stylis` with a custom plugin to identify
    and tokenize selector names. Several parsing steps have been adding to extract
    those classNames and create (short) uuid variants, which are then:
    
    1. rendered (with the original rules) into the `<style>` tag
    2. passed into the `ComposedComponent` as a `styles` prop for use
    
    The previous `StyleSheet` factory was converted into a simple Class for
    ease of understanding.
    ItsJonQ committed May 6, 2018
    Configuration menu
    Copy the full SHA
    4dcaa77 View commit details
    Browse the repository at this point in the history