These are chat archives for LearnBoost/stylus

26th
Jun 2016
Darius Tall
@kingdaro
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:
$colors
  @import '../styles/colors'

$layout
  @import '../styles/layout'

.app
  @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