forest icon indicating copy to clipboard operation
forest copied to clipboard

Do not expose class names/IDs as vars

Open roman01la opened this issue 8 years ago • 1 comments

Hi! Thanks for this cool library. I wonder why you decided to expose class names and IDs as vars. Wouldn't it be less confusing to make a stylesheet var to be a map?

roman01la avatar Oct 07 '16 09:10 roman01la

I agree it's a bit magic that the class names become vars, but the purpose is to get as much help from the compiler as possible when maintaining the stylesheets: you get warnings when you reference classes that don't exist, or remove classes that are used by other parts of the code.

mhallin avatar Oct 09 '16 09:10 mhallin