123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- import { createGlobalStyle, css } from 'styled-components';
- export default createGlobalStyle(
- ({ theme }) => css`
- html {
- font-family: 'Inter', sans-serif;
- font-size: 14px;
- -webkit-font-smoothing: antialiased;
- -moz-osx-font-smoothing: grayscale;
- background-color: ${theme.layout.backgroundColor};
- overflow-x: hidden;
- overflow-y: scroll;
- text-rendering: optimizeLegibility;
- text-size-adjust: 100%;
- min-width: 300px;
- }
- #root,
- body {
- width: 100%;
- position: relative;
- margin: 0;
- font-family: 'Inter', sans-serif;
- font-size: 14px;
- font-weight: 400;
- line-height: 20px;
- }
- article,
- aside,
- figure,
- footer,
- header,
- hgroup,
- section {
- display: block;
- }
- body,
- button,
- input,
- optgroup,
- select,
- textarea {
- font-family: inherit;
- }
- code,
- pre {
- font-family: 'Roboto Mono', sans-serif;
- -moz-osx-font-smoothing: auto;
- -webkit-font-smoothing: auto;
- background-color: ${theme.code.backgroundColor};
- color: ${theme.code.color};
- font-size: 12px;
- font-weight: 400;
- padding: 2px 8px;
- border-radius: 5px;
- width: fit-content;
- }
- pre {
- overflow-x: auto;
- white-space: pre
- word-wrap: normal
- code {
- background-color: transparent;
- color: currentColor
- padding: 0
- }
- }
- a {
- color: ${theme.link.color};
- cursor: pointer;
- text-decoration: none;
- &:hover {
- color: ${theme.link.hoverColor};
- }
- }
- img {
- height: auto;
- max-width: 100%;
- }
- input[type='checkbox'],
- input[type='radio'] {
- vertical-align: baseline;
- }
- hr {
- background-color: ${theme.hr.backgroundColor};
- border: none;
- display: block;
- height: 1px;
- margin: 0;
- }
- fieldset {
- border: none;
- }
- @keyframes fadein {
- from {
- opacity: 0;
- }
- to {
- opacity: 1;
- }
- }
- `
- );
|