mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-21 07:19:28 +00:00
update theme styles
This commit is contained in:
parent
3620978f69
commit
575b1b507b
5 changed files with 14 additions and 6 deletions
|
|
@ -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'];
|
||||||
|
|
|
||||||
1
src/utils/index.ts
Normal file
1
src/utils/index.ts
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from './getProgrammingLanguageName';
|
||||||
Loading…
Reference in a new issue