Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom theme #406

Closed
appt2 opened this issue Nov 28, 2023 · 1 comment
Closed

Custom theme #406

appt2 opened this issue Nov 28, 2023 · 1 comment

Comments

@appt2
Copy link

appt2 commented Nov 28, 2023

hi how to make custom theme in Eruda.js?

@surunzi
Copy link
Member

surunzi commented Jul 15, 2024

Undocumented API, subject to change over time.

eruda.util.evalCss.setTheme({
    consoleWarnBackground: '#fffbe5',
    consoleWarnForeground: '#5c5c00',
    consoleWarnBorder: '#fff5c2',
    consoleErrorBackground: '#fff0f0',
    consoleErrorForeground: '#f00',
    consoleErrorBorder: '#ffd6d6',
    light: '#fff',
    dark: '#eee',
    darkerBackground: '#f3f3f3',
    background: '#fff',
    foreground: '#333',
    selectForeground: '#333',
    accent: '#1a73e8',
    highlight: '#eaeaea',
    border: '#ccc',
    primary: '#333',
    contrast: '#f2f7fd',
    varColor: '#c80000',
    stringColor: '#1a1aa6',
    keywordColor: '#881280',
    numberColor: '#1c00cf',
    operatorColor: '#808080',
    linkColor: '#1155cc',
    textColor: '#8097bd',
    tagNameColor: '#881280',
    functionColor: '#222',
    attributeNameColor: '#994500',
    commentColor: '#236e25',
    cssProperty: '#c80000',
})

@surunzi surunzi closed this as completed Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants