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
Description
Right now, most of our styling elements are coded as inline styling on the Chakra element's style={}. However, many of them are the same and we want to remove the repetition. We would prefer to separate the styling elements (for all files) into a const that can be exported in. We can do this in the same file as the component, for example: export const cardStyles = { p: 4, … }; <Box {...cardStyles}> If you notice common styling across multiple files/components, then make a separate file for the styling that the other files can import. Let us know if you have any questions!
The text was updated successfully, but these errors were encountered:
Description
Right now, most of our styling elements are coded as inline styling on the Chakra element's style={}. However, many of them are the same and we want to remove the repetition. We would prefer to separate the styling elements (for all files) into a const that can be exported in. We can do this in the same file as the component, for example:
export const cardStyles = { p: 4, … }; <Box {...cardStyles}>
If you notice common styling across multiple files/components, then make a separate file for the styling that the other files can import. Let us know if you have any questions!The text was updated successfully, but these errors were encountered: