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

JSON IR for icss #7

Open
DanielHeath opened this issue Sep 28, 2016 · 0 comments
Open

JSON IR for icss #7

DanielHeath opened this issue Sep 28, 2016 · 0 comments

Comments

@DanielHeath
Copy link

In order to make icss implementations reusable in a variety of languages and environments, it is desirable to have a standard way to store the mapping between logical and generated class names.

The obvious (to me) way would be to store <filename>.icss.json containing e.g.

{"button": "CONTACT__button__Xv7f2 CORE__typography-v8s8fj"}

Although I could be persuaded that it should instead be

{"button": ["CONTACT__button__Xv7f2", "CORE__typography-v8s8fj"]}

If the canonical implementations such as css-modules implemented something like this, it would become really easy to consume CSS modules from non-javascript projects.

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

No branches or pull requests

1 participant