Skip to content

Separate React from Bulma #61

@chrissimon-au

Description

@chrissimon-au

On #60 I had some questions about implementing with tailwind - this ticket is more a longer term speculative thought inspired by considering that issue.

Looking at the structure, it seems that it might be nice to evolve towards separating between React and Bulma - the html structures in the Bulma assembly generally look fine, but the hard coded bulma classes make it hard to use with other css frameworks.

I was wondering it could evolve like so:

  1. Rename Fable.Forms.Simple.Bulma to Fable.Forms.Simple.React, remove all the hard coded css class names and make classNames available as a base attribute value (appreciate it might require a few different attribute properties in some cases, as some Fields encapsulate multiple html elements that you might like to add classNames to).
  2. Implement Fable.Forms.Simple.Bulma as a wrapper around Fable.Forms.Simple.React that passes in the bulma css class names

Then someone using, e.g. tailwind, could just use Fable.Forms.Simple.React and pass in the tailwind classes, and someone using Bulma could use it and it would be backwards compatible.

Once I get through my current task I'd be happy to take a look at helping with that if there is interest? And if so - any thoughts on recommendations?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions