update theme styles

pull/26459/head^2
Paul Wackerow 2 years ago
parent 3620978f69
commit 575b1b507b
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
  1. 3
      src/constants.ts
  2. 4
      src/theme/foundations/textStyles.ts
  3. 9
      src/theme/index.ts
  4. 3
      src/utils/getProgrammingLanguageName.ts
  5. 1
      src/utils/index.ts

@ -102,3 +102,6 @@ export const WINDOWS_BINARY_BASE_URL =
export const LATEST_SOURCES_BASE_URL = 'https://github.com/ethereum/go-ethereum/archive/'; export const LATEST_SOURCES_BASE_URL = 'https://github.com/ethereum/go-ethereum/archive/';
export const RELEASE_NOTES_BASE_URL = 'https://github.com/ethereum/go-ethereum/releases/tag/'; export const RELEASE_NOTES_BASE_URL = 'https://github.com/ethereum/go-ethereum/releases/tag/';
// Code snippet class constants
export const CLASSNAME_PREFIX = 'language-';

@ -135,14 +135,14 @@ export const textStyles = {
fontSize: 'sm' fontSize: 'sm'
}, },
'inline-code-snippet': { 'inline-code-snippet': {
fontFamily: '"JetBrains Mono", monospace', fontFamily: 'heading',
fontWeight: 400, fontWeight: 400,
fontSize: 'md', fontSize: 'md',
lineHeight: 4, lineHeight: 4,
letterSpacing: '1%' letterSpacing: '1%'
}, },
'code-block': { 'code-block': {
fontFamily: '"JetBrains Mono", monospace', fontFamily: 'heading',
fontWeight: 400, fontWeight: 400,
fontSize: 'md', fontSize: 'md',
lineHeight: '21.12px', lineHeight: '21.12px',

@ -18,6 +18,9 @@ const overrides = {
body: { body: {
bg: 'bg', bg: 'bg',
transition: 'all 200ms linear !important' transition: 'all 200ms linear !important'
},
code: {
fontFamily: 'code !important'
} }
}) })
}, },
@ -29,9 +32,9 @@ const overrides = {
'button-bg': { _light: 'green.50', _dark: 'green.900' }, 'button-bg': { _light: 'green.50', _dark: 'green.900' },
body: { _light: 'gray.800', _dark: 'yellow.50' }, body: { _light: 'gray.800', _dark: 'yellow.50' },
'code-bg': { _light: 'gray.200', _dark: 'gray.700' }, 'code-bg': { _light: 'gray.200', _dark: 'gray.700' },
'code-bg-contrast': { _light: 'gray.800', _dark: 'gray.900' }, 'terminal-bg': { _light: 'gray.800', _dark: 'gray.900' },
'code-text': { _light: 'green.50', _dark: 'green.50' }, 'terminal-text': { _light: 'green.50', _dark: 'green.200' },
bg: { _light: 'yellow.50', _dark: 'gray.800' }, bg: { _light: 'yellow.50', _dark: 'gray.800' }
} }
} }
}; };

@ -1,4 +1,5 @@
const CLASSNAME_PREFIX = 'language-'; import { CLASSNAME_PREFIX } from '../constants';
const DEFAULT = 'bash'; const DEFAULT = 'bash';
const TERMINAL = 'terminal'; const TERMINAL = 'terminal';
const JS = ['javascript', 'js', 'jsx', 'ts', 'tsx']; const JS = ['javascript', 'js', 'jsx', 'ts', 'tsx'];

@ -0,0 +1 @@
export * from './getProgrammingLanguageName';
Loading…
Cancel
Save