(theme: DevtoolsStore['settings']['theme'])
| 80 | ` |
| 81 | |
| 82 | const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => { |
| 83 | const { colors, font, size, border } = tokens |
| 84 | const { fontFamily, size: fontSize } = font |
| 85 | const css = goober.css |
| 86 | const t = (light: string, dark: string) => (theme === 'light' ? light : dark) |
| 87 | |
| 88 | return { |
| 89 | seoTabContainer: css` |
| 90 | padding: 0; |
| 91 | margin: 0 auto; |
| 92 | background: ${t(colors.white, colors.darkGray[700])}; |
| 93 | border-radius: 8px; |
| 94 | box-shadow: none; |
| 95 | overflow-y: auto; |
| 96 | height: 100%; |
| 97 | display: flex; |
| 98 | flex-direction: column; |
| 99 | gap: 0; |
| 100 | width: 100%; |
| 101 | overflow-y: auto; |
| 102 | `, |
| 103 | seoTabTitle: css` |
| 104 | font-size: 1.25rem; |
| 105 | font-weight: 600; |
| 106 | color: ${t(colors.gray[900], colors.gray[100])}; |
| 107 | margin: 0; |
| 108 | padding: 1rem 1.5rem 0.5rem 1.5rem; |
| 109 | text-align: left; |
| 110 | border-bottom: 1px solid ${t(colors.gray[200], colors.gray[800])}; |
| 111 | `, |
| 112 | seoTabSection: css` |
| 113 | padding: 1.5rem; |
| 114 | background: ${t(colors.gray[50], colors.darkGray[800])}; |
| 115 | border: 1px solid ${t(colors.gray[200], colors.gray[800])}; |
| 116 | display: flex; |
| 117 | flex-direction: column; |
| 118 | gap: 0.5rem; |
| 119 | margin-bottom: 2rem; |
| 120 | border-radius: 0.75rem; |
| 121 | `, |
| 122 | seoSubNav: css` |
| 123 | display: flex; |
| 124 | flex-direction: row; |
| 125 | gap: 0; |
| 126 | margin-bottom: 1rem; |
| 127 | border-bottom: 1px solid ${t(colors.gray[200], colors.gray[800])}; |
| 128 | `, |
| 129 | seoSubNavLabel: css` |
| 130 | padding: 0.5rem 1rem; |
| 131 | font-size: 0.875rem; |
| 132 | font-weight: 500; |
| 133 | color: ${t(colors.gray[600], colors.gray[400])}; |
| 134 | background: none; |
| 135 | border: none; |
| 136 | border-bottom: 2px solid transparent; |
| 137 | margin-bottom: -1px; |
| 138 | cursor: pointer; |
| 139 | font-family: inherit; |
no test coverage detected