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
Custom tokens need to be given to every component separately.
Proposed Solution
Component API has prop tokens as PartialTokens. Implement wrapper SuomifiTokensProvider with React context API - like Styled Components ThemeProvider.
Alternative Solutions
SuomifiThemeProvider containing also internal theme customizations? Might be too complicated to get working as theme is based on tokens and what tokens are passed to define what theme etc.
The Problem
Custom tokens need to be given to every component separately.
Proposed Solution
Component API has prop
tokens
asPartialTokens
. Implement wrapperSuomifiTokensProvider
with React context API - like Styled Components ThemeProvider.Alternative Solutions
SuomifiThemeProvider
containing also internal theme customizations? Might be too complicated to get working as theme is based on tokens and what tokens are passed to define what theme etc.Additional Info
Implement themeProvider #79
https://www.styled-components.com/docs/advanced
The text was updated successfully, but these errors were encountered: