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

Find a better replacement for StyleC #71

Open
japgolly opened this issue Jan 19, 2016 · 0 comments
Open

Find a better replacement for StyleC #71

japgolly opened this issue Jan 19, 2016 · 0 comments
Labels

Comments

@japgolly
Copy link
Owner

The StyleC experiment was meant to address the following:

  1. A logical/composite style (eg a style for an entire widget) can have multiple CSS styles that need to be applied.
  2. Adding a new sub-style to a composite style should result in a compilation error in all places that you don't update to use the new sub-style.
  3. Styles all have the same type. Adding/removing/reordering sub-styles shouldn't result in silent undetectable errors where the sub-style ends up being applied to the wrong part of HTML.

StyleC does actually solve those things. It's just a horrible pain in the ass to use. Anyway, a replacement will need to at least consider the above goals with the additional goal that it not be horrible to use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant