-
Notifications
You must be signed in to change notification settings - Fork 62
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
Add CSS Modules support #48
Conversation
Hi! Thanks for the contribution. CSS-modules are unknown to me, what is the use case? Is it a spec? |
CSS-Modules are new css architecture. CSS Modules mainly solves the problem of having difficult designing in the global namespace only in CSS, although not in JavaScript and other languages. I think it is common to use markdown as a component of a part of a Web site (the other part is React, jade, etc.). On this case, we would like to use CSS Modules inside of markdown as well as other parts already designed with CSS Modules. It is conceivable to use the class attribute as it is as the CSS Modules attribute name, but it is often when you want to use fixed and global class names at the same time. For this reason, I thought it appropriate to provide the css-modules attribute for CSS Modules separately from the class attribute. |
Ok, and .. is kind of standardized?
fre. 15. sep. 2017 kl. 07.49 skrev Narazaka <[email protected]>:
… CSS-Modules are new css architecture.
cf. https://glenmaddern.com/articles/css-modules
CSS Modules mainly solves the problem of having difficult designing in the
global namespace only in CSS, although not in JavaScript and other
languages.
It is often used with high affinity with React, but it is useful not only
for React but also for other componentizable templates.
I think it is common to use markdown as a component of a part of a Web
site (the other part is React, jade, etc.). On this case, we would like to
use CSS Modules inside of markdown as well as other parts already designed
with CSS Modules.
It is conceivable to use the class attribute as it is as a CSS Modules
attribute name, but it is often when we want to use a fixed and global
class name. For this reason, I thought it appropriate to provide the
css-modules attribute for CSS Modules separately from the class attribute.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AElnGRvE3E3Gby5GOYJoB_cvV3KSqzceks5sig_9gaJpZM4PK0bj>
.
|
It is not a recommendation of W3C or CSSWG, but it is a specification based on scoped css which is an obsolete working draft. |
I think you misunderstood me, I ment the |
Released in |
Oops, sorry. ".." is not a standard form in particular, but I thought that it is an easier to understand way from the class ".". |
This feature can work with posthtml-css-modules then we can use CSS Modules enabled markdown.