Douro-ui / design-system

Douro UI is a Design System for all Metyis projects and partners
MIT License
2 stars 0 forks source link

Global context not setting new styles #122

Open joaoprcosta opened 1 month ago

joaoprcosta commented 1 month ago

Describe the bug When we define Global context on a project and try to assign new styles to the body, the defaults override the new ones. Even using 'injectGlobal' to force some styles to be injected is not working.

Expected behavior We should have defaultStyles but also we could inject new properties into the Global

Screenshots

const Global = () => {
  const theme = useTheme();
  const styles = css`
    body,
    html {
      color: ${theme.colors.neutral.silver.shade10};
      font-size: ${theme.fontSize};
      font-weight: 300;
      font-family: ${theme.fontFamily.display};
      -webkit-font-smoothing: antialiased;
    }
  `;

  return <GlobalStyles styles={styles} />;
};