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

break: allow sizes to be themeable #7

Open
roydukkey opened this issue Apr 10, 2023 · 1 comment
Open

break: allow sizes to be themeable #7

roydukkey opened this issue Apr 10, 2023 · 1 comment

Comments

@roydukkey
Copy link
Owner

@use '@sass-fairy/break' with (
  $horizontal-sizes: (x-small: 0, medium: 680px, large: 960px, x-large: 1400px)
);

Forcing sizes to be definitive values, makes it impossible to created themed breakpoints. It would also be useful to describe sizes are custom properties.

@use '@sass-fairy/break' with (
  $horizontal-sizes: (x-small: 0, medium: var(--breakpoint-m), large: var(--breakpoint-l), x-large: var(--breakpoint-xl))
);
@roydukkey
Copy link
Owner Author

roydukkey commented Apr 13, 2023

Might need to wait on this since custom properties are not supported in media queries. https://bholmes.dev/blog/alternative-to-css-variable-media-queries/

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