Skip to content

Commit

Permalink
Fix graphs in docs, improve REPL colors (#5257)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukastaegert committed Nov 19, 2023
1 parent 86efc76 commit ce6f492
Show file tree
Hide file tree
Showing 4 changed files with 128 additions and 572 deletions.
2 changes: 1 addition & 1 deletion docs/repl/components/ReplModule.vue
Expand Up @@ -49,7 +49,7 @@ const selectName = (event: FocusEvent) => {
.module {
margin: 0 -16px 8px -16px;
border-radius: 0;
background-color: var(--vp-code-block-bg);
background-color: #161618;
color: var(--vp-c-text-1);
transition: all 0.2s;
}
Expand Down
14 changes: 10 additions & 4 deletions docs/repl/helpers/editor.ts
Expand Up @@ -54,7 +54,8 @@ const theme = EditorView.baseTheme({
outline: 'none'
},
'.cm-content': {
caretColor: 'var(--vp-c-neutral)',
caretColor: '#fff',
// caretColor: 'var(--vp-c-neutral)',
color: '#A6ACCD',
fontFamily: 'var(--vp-font-family-mono)',
fontSize: '14px',
Expand All @@ -63,12 +64,17 @@ const theme = EditorView.baseTheme({
padding: '8px'
},
'.cm-gutters': {
backgroundColor: 'var(--vp-code-block-bg)',
// we are hard-coding to dark mode colors until we figure out how to switch
// colors in code mirror
backgroundColor: '#161618',
// backgroundColor: 'var(--vp-code-block-bg)',
border: 'none',
borderBottomLeftRadius: '8px',
borderRight: '1px solid var(--vp-code-block-divider-color)',
borderRight: '#000',
// borderRight: '1px solid var(--vp-code-block-divider-color)',
borderTopLeftRadius: '8px',
color: 'var(--vp-code-line-number-color)',
color: 'rgba(235,235,245,0.38)',
// color: 'var(--vp-code-line-number-color)',
minWidth: '32px'
},
'.cm-gutters .cm-gutterElement': {
Expand Down

1 comment on commit ce6f492

@vercel
Copy link

@vercel vercel bot commented on ce6f492 Nov 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.