Ringtone app
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
687 B

  1. import { createGlobalStyle } from 'styled-components'
  2. const GlobalStyle = createGlobalStyle({
  3. ':root': {
  4. '--color-bg': 'white',
  5. '--color-fg': 'black',
  6. color: 'var(--color-fg, black)',
  7. backgroundColor: 'var(--color-bg, white)',
  8. fontFamily: 'system-ui, sans-serif',
  9. },
  10. 'body': {
  11. margin: 0,
  12. },
  13. 'a': {
  14. color: 'inherit',
  15. },
  16. '@media (prefers-color-scheme: dark)': {
  17. ':root': {
  18. '--color-bg': 'black',
  19. '--color-fg': 'white',
  20. color: 'var(--color-fg, white)',
  21. backgroundColor: 'var(--color-bg, black)',
  22. },
  23. },
  24. })
  25. const MyApp = ({Component, pageProps}) => {
  26. return (
  27. <>
  28. <GlobalStyle/>
  29. <Component {...pageProps} />
  30. </>
  31. )
  32. }
  33. export default MyApp;