UNPKG

hyper-ayu

Version:

Hyper theme based on Ayu Theme for Sublime Text

86 lines (79 loc) 1.9 kB
// Constants const backgroundColor = '#0F1419'; const inactiveTabBackgroundColor = '#0c0f12'; const foregroundColor = '#e6e1cf'; // Colors const RED = '#ff3333'; const GREEN = '#89b73d'; const YELLOW = '#f49c20'; const BLUE = '#3ea7dc'; const MAGENTA = '#b37ed0'; const LIGHT_GRAY = '#f2f2f2'; const DARK_GRAY = '#828c9a' // Mapped Colors const colors = { black: backgroundColor, red: RED, green: GREEN, yellow: YELLOW, blue: BLUE, magenta: MAGENTA, cyan: BLUE, white: LIGHT_GRAY, lightBlack: DARK_GRAY, lightRed: RED, lightGreen: GREEN, lightYellow: YELLOW, lightBlue: BLUE, lightMagenta: MAGENTA, lightCyan: BLUE, colorCubes: '#fff', grayscale: foregroundColor }; // Additional Constants const cursorColor = YELLOW; const borderColor = backgroundColor; exports.decorateConfig = (config) => { let windowControlsCSS if (config.showWindowControls) { windowControlsCSS = '.list_2902 { margin-left: 0 !important; }' } return Object.assign({}, config, { foregroundColor, backgroundColor, borderColor, cursorColor, colors, css: ` ${config.css || ''} .cursor-node { background-color: ${MAGENTA} !important; border-color: ${MAGENTA} !important; } .hyper_main { border: none !important; } .header_header { background: ${backgroundColor} !important; } .splitpane_divider { background-color: rgba(130, 128, 184, 0.5) !important; } .tab_tab { border: 0; background: ${inactiveTabBackgroundColor}; } .tabs_list { background: ${inactiveTabBackgroundColor}; } .tab_active { background-color: ${backgroundColor}; } .tab_textActive { background-color: ${backgroundColor}; box-shadow: inset 2px 0 0 ${YELLOW}; } ${windowControlsCSS} ` }) }