Answers
- The file naming convention is
ComponentName.module.css
. For example,Footer.module.css
would be a CSS module for theFooter
component. - The problem is that the background color is set to the
'primaryAccent'
string rather than the constant. Thecss
prop should be set to the following:<button   css={css`     background-color: ${primaryAccent1};   `} >   {children} </button>
- We can use the
focus
pseudo-class as follows:<button   css={css`     background-color: ${primaryAccent1};     :focus {      outline: none;     }   `} >   {children} </button>
- We can use the following styled component:
export const PageTitle = styled.h2` Â Â font-size: 15px; Â Â font-weight: bold; Â Â margin: 10px 0px 5px; Â Â text-align: center; Â Â text-transform...