Skip to content

Instantly share code, notes, and snippets.

@koriner
Created February 8, 2016 20:41
Show Gist options
  • Select an option

  • Save koriner/b5e856557d54a4180c8d to your computer and use it in GitHub Desktop.

Select an option

Save koriner/b5e856557d54a4180c8d to your computer and use it in GitHub Desktop.
CSS modules + breakpoint values
/*
Breakpoints
*/
@value small: (max-width: 599px);
@value medium: (min-width: 600px) and (max-width: 959px);
@value large: (min-width: 960px);
/*
Some component
*/
@value large as bp-large from './breakpoints.css';
.normal {
background: yellow;
}
@media (bp-large) {
.normal {
background: blue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment