import styled from 'styled-components'; export const color = { primary: '#0052cc', // Blue success: '#0B875B', // green danger: '#E13C3C', // red warning: '#F89C1C', // orange secondary: '#F4F5F7', // light grey textDarkest: '#172b4d', textDark: '#42526E', textMedium: '#5E6C84', textLight: '#8993a4', textLink: '#0052cc', backgroundDarkPrimary: '#0747A6', backgroundMedium: '#dfe1e6', backgroundLight: '#ebecf0', backgroundLightest: '#F4F5F7', backgroundLightPrimary: '#D2E5FE', backgroundLightSuccess: '#E4FCEF', borderLightest: '#dfe1e6', borderLight: '#C1C7D0', borderInputFocus: '#4c9aff', }; export const font = { regular: 'font-family: "Droid Sans", Roboto, sans-serif; font-weight: normal;', size: (size: number) => `font-size: ${size}px;`, bold: 'font-family: "Droid Sans", Roboto, sans-serif; font-weight: normal;', medium: 'font-family: "Droid Sans", Roboto, sans-serif; font-weight: normal;', }; export const markdownCSS = ` .mention { color: rgb(96 165 250); } .anchor { float: left; margin-left: -20px; padding-right: 4px; line-height: 1; } .anchor:focus { outline: none; } h1:hover .anchor, h2:hover .anchor, h3:hover .anchor, h4:hover .anchor, h5:hover .anchor, h6:hover .anchor { text-decoration: none; } details { display: block; } summary { display: list-item; } a { background-color: initial; } a:active, a:hover { outline-width: 0; } strong { font-weight: inherit; font-weight: bolder; } h1 { margin: 0.67em 0; font-size: 2em; } img { border-style: none; } code, kbd, pre { font-size: 1em; font-family: monospace, monospace; } hr { box-sizing: initial; height: 0; overflow: visible; } input { margin: 0; font: inherit; } input { overflow: visible; } [type='checkbox'] { box-sizing: border-box; padding: 0; } * { box-sizing: border-box; } input { font-size: inherit; font-family: inherit; line-height: inherit; } a { text-decoration: none; } a:hover { text-decoration: underline; } strong { font-weight: 600; } hr { height: 0; margin: 15px 0; overflow: hidden; background: transparent; border: 0; border-bottom: 1px solid #dfe2e5; } hr:after, hr:before { display: table; content: ''; } hr:after { clear: both; } table { border-collapse: collapse; border-spacing: 0; } td, th { padding: 0; } details summary { cursor: pointer; } h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0; } h1 { font-size: 32px; } h1, h2 { font-weight: 600; } h2 { font-size: 24px; } h3 { font-size: 20px; } h3, h4 { font-weight: 600; } h4 { font-size: 16px; } h5 { font-size: 14px; } h5, h6 { font-weight: 600; } h6 { font-size: 12px; } p { margin-top: 0; margin-bottom: 0; } blockquote { margin: 0; } ul { list-style-type: disc; } ol { list-style: decimal; } , ul { margin-top: 0; margin-bottom: 0; padding-left: 0; } ol ol, ul ol { list-style-type: lower-roman; } ol ol ol, ol ul ol, ul ol ol, ul ul ol { list-style-type: lower-alpha; } dd { margin-left: 0; } code, pre { font-size: 12px; font-family: SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace; } pre { margin-top: 0; margin-bottom: 0; } input::-webkit-inner-spin-button, input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; appearance: none; } :checked + .radio-label { position: relative; z-index: 1; border-color: #0366d6; } hr { border-bottom-color: var(--gray-100); } &:after, &:before { display: table; content: ''; } &:after { clear: both; } > :first-child { margin-top: 0 !important; } > :last-child { margin-bottom: 0 !important; } a:not([href]) { color: inherit; text-decoration: none; } blockquote, details, dl, ol, pre, table, ul { margin-top: 0; margin-bottom: 16px; } hr { height: 0.25em; margin: 24px 0; padding: 0; background-color: #e1e4e8; border: 0; } blockquote { padding: 0 1em; color: #6a737d; border-left: 0.25em solid #dfe2e5; } blockquote > :first-child { margin-top: 0; } blockquote > :last-child { margin-bottom: 0; } h1, h2, h3, h4, h5, h6 { margin-top: 24px; margin-bottom: 16px; font-weight: 600; line-height: 1.25; } h1 { font-size: 2em; } h1, h2 { padding-bottom: 0.3em; border-bottom: 1px solid #eaecef; } h2 { font-size: 1.5em; } h3 { font-size: 1.25em; } h4 { font-size: 1em; } h5 { font-size: 0.875em; } h6 { font-size: 0.85em; } ol, ul { padding-left: 2em; } ol ol, ol ul, ul ol, ul ul { margin-top: 0; margin-bottom: 0; } li { word-wrap: break-all; } li > p { margin-top: 16px; } li + li { margin-top: 0.25em; } dl { padding: 0; } dl dt { margin-top: 16px; padding: 0; font-weight: 600; font-size: 1em; font-style: italic; } dl dd { margin-bottom: 16px; padding: 0 16px; } table { display: block; width: 100%; overflow: auto; } table th { font-weight: 600; } table td, table th { padding: 6px 13px; border: 1px solid #dfe2e5; } table tr { background-color: #fff; border-top: 1px solid #c6cbd1; } table tr:nth-child(2n) { background-color: #f6f8fa; } img { box-sizing: initial; max-width: 100%; background-color: #fff; } img[align='right'] { padding-left: 20px; } img[align='left'] { padding-right: 20px; } code { margin: 0; padding: 0.2em 0.4em; font-size: 85%; background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; } pre { word-wrap: normal; } pre > code { margin: 0; padding: 0; font-size: 100%; white-space: pre; word-break: normal; background: transparent; border: 0; } .highlight { margin-bottom: 16px; } .highlight pre { margin-bottom: 0; word-break: normal; } .highlight pre, pre { padding: 16px; overflow: auto; font-size: 85%; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; } pre code { display: inline; max-width: auto; margin: 0; padding: 0; overflow: visible; line-height: inherit; word-wrap: normal; background-color: initial; border: 0; } `; export const MarkdownStyle = styled.div` ${markdownCSS} `;