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

Bronnen en uitleg #1

Open
KoopReynders opened this issue Nov 3, 2022 · 0 comments
Open

Bronnen en uitleg #1

KoopReynders opened this issue Nov 3, 2022 · 0 comments

Comments

@KoopReynders
Copy link
Contributor

A Complete Guide to Custom Properties
https://css-tricks.com/a-complete-guide-to-custom-properties/

Why care about CSS Custom Properties?

  • They help DRY up your CSS. That is “Don’t Repeat Yourself.” Custom properties can make code easier to maintain because you can update one value and have it reflected in multiple places. Careful though, overdoing abstraction can make have the opposite effect and make code less understandable.
  • They are particularly helpful for things like creating color themes on a website.
  • They unlock interesting possibilities in CSS. In no small part because they cascade.
  • The fact that they can be updated in JavaScript opens up even more interesting possibilities.

Using CSS custom properties (variables)
https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties

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