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

[feature request] Variables for media query breakpoints #172

Open
liquidvisual opened this issue Jul 29, 2022 · 0 comments
Open

[feature request] Variables for media query breakpoints #172

liquidvisual opened this issue Jul 29, 2022 · 0 comments

Comments

@liquidvisual
Copy link

liquidvisual commented Jul 29, 2022

Great library! I wish I'd found this sooner.

I'm using a lot of media queries for iPad layouts and it'd be really handy to be able to store breakpoints as variables like we can with values.

Example:

const styles = EStyleSheet.create({
  "@media (min-width: $md)": { // <-- $md instead of 744
    container: {
      borderWidth: 2,
      borderColor: "$danger",
    },
  }
EStyleSheet.build({
  $danger: "#fa3a52",
  $xs: 0,
  $sm: 375,
  $md: 744,
  $lg: 992,
  $xl: 1280,
  $xxl: 1440,
});
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