atom / one-light-syntax

Atom One light syntax theme
MIT License
68 stars 72 forks source link

How do these Less imports work? #15

Closed zeke closed 8 years ago

zeke commented 8 years ago

I noticed that /index.less is referring to imports in a nested directory without specifying their path:

@import 'editor';
@import 'language';

That's pretty neat.

Does Less automatically traverse the directory looking for those files? Is a directory named /styles given special treatment by Less? I perused the Less documentation but didn't see anything about this behavior.

simurai commented 8 years ago

I think the /styles is just a convention in Atom and not part of Less.

Maybe this allows to skip the /styles to import other less files.

/cc @atom/feedback ?

zeke commented 8 years ago

Thanks @simurai! Pretty sure you're right. Tentatively closing.