Re: [csswg-drafts] [css-nesting-1] Syntax Invites Errors (#7834)

> I think a common use case of this is theming

These days, theming is much better accomplished with variables (allows themes to be nested). But regardless, I find it easier to read if the nesting happens the other way (ie theme on the outside rather than nested within the component).

```css
/* base styles */
.button {
  color: red;
}

/* theme styles */
.theme {
  & . button {
    color: pink;
  }
}
```

-- 
GitHub Notification of comment by devongovett
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7834#issuecomment-1284187413 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 19 October 2022 15:22:27 UTC