You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get rid of all the style={{ color: theme.text.sectionText }} (for example) in our components. They are used almost everywhere and can replaced with a reference to one Sass module file.
The idea would be to import a global .module.scss file; declare const { name } = useContext(themeContext), then replace style={{...}} with className={...classNames, {...styles.light}} (pseudo-code) to element attributes.
Caveat, not worth it if it doesn't visibly reduce component complexity.
The text was updated successfully, but these errors were encountered:
Get rid of all the
style={{ color: theme.text.sectionText }}
(for example) in our components. They are used almost everywhere and can replaced with a reference to one Sass module file.The idea would be to import a global
.module.scss
file; declareconst { name } = useContext(themeContext)
, then replacestyle={{...}}
withclassName={...classNames, {...styles.light}}
(pseudo-code) to element attributes.Caveat, not worth it if it doesn't visibly reduce component complexity.
The text was updated successfully, but these errors were encountered: