airbnb / javascript

JavaScript Style Guide
MIT License
144.08k stars 26.39k forks source link

Add Specificity, Responsiveness, and Common Pitfalls Sections to CSS-in-JavaScript Style Guide #3001

Open GifftyCode opened 1 month ago

GifftyCode commented 1 month ago

I propose adding the following sections to the Airbnb CSS-in-JavaScript Style Guide:

  1. Specificity:

    • Handling CSS specificity.
    • Avoiding the use of !important.
  2. Responsiveness:

    • Best practices for media queries.
    • Techniques for building responsive components.
  3. Common Pitfalls:

    • Common mistakes and how to avoid them.
    • Debugging tips for CSS-in-JavaScript issues.

These additions will provide valuable guidelines to help developers write more effective and maintainable styles.

Request:

I would like to contribute to the guide by drafting these sections. Please let me know if this aligns with the project’s goals and if I can proceed.

Thank you!

shivansh84ya commented 3 weeks ago

Could you assign this issue to me ??

speedywarp commented 1 day ago

Could you assign this issue to me ??

@shivansh84ya are you working on this issue?

ljharb commented 4 hours ago

Issues don’t get assigned in open source - if there’s a linked PR, great, if not, feel free to file one.