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

[COMP] Use CSS @layer #186

Open
marlonmarcello opened this issue Apr 30, 2024 · 0 comments
Open

[COMP] Use CSS @layer #186

marlonmarcello opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
COMP Tickets related to wethegit-components enhancement New feature or request

Comments

@marlonmarcello
Copy link
Member

Description

CSS Layer is here and it's well supported. We should use it! It will give us even more control over specificity.

For starters, let's create 4 layers:
@layer reset, global, utility, component

  1. reset: as the name suggests, let's add our reset on this layer
  2. global: easy one too, adds any global stuff to this, like, setting html background color and what not
  3. utility: all utilities go here, colors, spacing, etc
  4. component: this one will require touching quite a few files, but the idea is to add component styles to this layer that way users of the component system can bump specificity with ease
@marlonmarcello marlonmarcello added enhancement New feature or request COMP Tickets related to wethegit-components labels Apr 30, 2024
@liamegan liamegan self-assigned this Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
COMP Tickets related to wethegit-components enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants