Should the themed
function rely on global SCSS variables for validation?
#15
Labels
themed
function rely on global SCSS variables for validation?
#15
Currently, the
themed
function uses global SCSS variables toThis is nice, but requires the global SCSS variables to be defined in the current scope, meaning that each SCSS file needs to re-define themes by calling the
themes
mixin. This can easily be done with aglobal.scss
file, but it adds complexity.Question 1: Should this be the default behavior?
Question 2: Is the
$verify
argument of thethemed
function elegant enough to bypass this requirement, or should we rather add a secondthemed
-like function that doesn't do validation?Question 3: Should we remove the option to add custom prefixes, as this is also using a global SCSS variable?
Question 4: An alternative to this would be to return the
themed
function from athemes
function (like a factory pattern). Would this be a nice alternative?The text was updated successfully, but these errors were encountered: