These are chat archives for LearnBoost/stylus

Jun 2016
Darius Tall
Jun 26 2016 09:57
Is there a somewhat elegant way of importing only specific classes from external style files? I'm styling my stylesheets with the mindset of css-modules, and this is essentially how I'm doing things:
  @import '../styles/colors'

  @import '../styles/layout'

  @extend $colors .dark
  @extend $layout .fullscreen
But it'd be nice if I could do something like @extend .dark from '../styles/colors' so I could forget about class conflicts altogether, and of course, without having to prefix my classes here