I'm writing a reusable Javascript snippet (jQuery plugin) that involves DOM CSS styling. Since it's supposed to be usable by anyone, I'd like to avoid conflicts between its CSS classes names and other existing classes on a document. That's why I'm using a namespace string as a prefix for all of its class names (e.g. class grid becomes prfx-grid if my prefix is prfx-). To respect DRY, and have it easily changeable, I'd like to declare my prefix only once, and access it from both the CSS spreadsheet (possibly using Sass) and the Javascript code. If possible, I'd also like to go on with only 2 files (my .js and my .css).
Is there a way to declare such a prefix/namespace constant so it can be accessed from both (S)CSS and Javascript ?