Global CSS
Global CSS description.
styled-components
import * as styled from "styled-components"; const sizes = { mobileS: 320, mobileM: 375, mobileL: 500, tablet: 768, laptopS: 1024, laptopM: 1200, laptopL: 1440, }; export const device = Object.keys(sizes).reduce((acc, label) => { acc[label] = `only screen and (max-width: ${sizes[label]}px)`; return acc; }, {}); export const GlobalStyle = styled.createGlobalStyle` :root { /* COLOR PALETTE */ --primary: #03355a; --primary-100: #004a64; --primary-50: #d3e1fb; --teal: #0476a1; --background: #f1f6fc; --gray: #7a7a7a; --light-gray: #eaeaea; --black: #101010; --white: #ffffff; --transparent-white: rgba(255, 251, 255, 0.8); --bright-blue: #5acdf4; --placeholder-text: #a19e9e; /* SHADOWS */ --teal-shadow: 0px 5px 40px 0px var(--bright-blue); --gray-shadow: 0px 4px 8px -1px rgba(0, 0, 0, 0.1); --contact-form-shadow: 5px 7px 30px 0px rgba(72, 73, 121, 0.15); --grid-item-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5); --blog-post-shadow: 0px 6px 25px 0px rgba(0, 0, 0, 0.07); /* GRADIENTS */ --light-to-dark: linear-gradient(180deg, #0076a0 0%, #000f2e 100%); /* ANIMATIONS */ --fade-in: fadeIn 1s ease; @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* TYPOGRAPHY */ .poppins-500 { font-family: "Poppins", sans-serif; font-weight: 500; } .poppins-600 { font-family: "Poppins", sans-serif; font-weight: 600; } .poppins-700 { font-family: "Poppins", sans-serif; font-weight: 700; } .roboto-300 { font-family: "Roboto", sans-serif; font-weight: 300; } /* BASE */ .roboto-400 { font-family: "Roboto", sans-serif; font-weight: 400; } .roboto-500 { font-family: "Roboto", sans-serif; font-weight: 500; } .roboto-600 { font-family: "Roboto", sans-serif; font-weight: 600; } .roboto-700 { font-family: "Roboto", sans-serif; font-weight: 700; } .heading-lg { font-size: 2.875rem; @media ${device.mobileL} { font-size: 2.5rem; } } .heading-md { font-size: 2.5rem; @media ${device.mobileL} { font-size: 2.2rem; } } .heading-sm { font-size: 1.875rem; @media ${device.mobileL} { font-size: 1.575rem; } } .heading-xs { font-size: 1.5rem; @media ${device.mobileL} { font-size: 1.2rem; } } .body-lg { font-size: 1.275rem; @media ${device.mobileL} { font-size: 1.175rem; } } .body-rg { font-size: 1.125rem; @media ${device.mobileL} { font-size: 1rem; } } /* BASE */ .body-md { font-size: 1rem; } .body-sm { font-size: 0.875rem; } } * { margin: 0; padding: 0; } p { line-height: 160%; } body, button, textarea, input { padding: 0; font-family: "Roboto", sans-serif; font-weight: 400; font-size: 1rem; text-transform: inherit; } a, ol, ul, button, li { text-decoration: none; color: unset; background-color: unset; border: none; } button { line-height: 100%; } button, a, .hover { cursor: pointer; transition: all 0.3s; } a:hover, .hover:hover { color: var(--teal); } html { min-width: 100vw; overflow-x: hidden; } .width-wrapper { max-width: 83.5625rem; margin: 0 auto; padding: 0 5rem; @media ${device.mobileL} { padding: 0 2rem; } } .width-wrapper-left { max-width: 41.7813rem; padding: 0 5rem; margin: 0 0 0 auto; width: 100%; } .width-wrapper-right { max-width: 41.7813rem; padding: 0 5rem; margin: 0 auto 0 0; width: 100%; } #scroll-container.no-scroll { overflow: hidden; position: fixed; width: 100%; height: 100%; } `;