Last active
February 21, 2024 13:02
-
-
Save emraher/2c071182ce0f04f3c69f6680de335029 to your computer and use it in GitHub Desktop.
Surfingkeys Dracula Theme Attempt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ----------------------------------------------------------------------------------------------------------------------- | |
// // Surfingkeys: https://github.com/brookhong/Surfingkeys#properties-list | |
// // Dracula Theme: https://github.com/dracula/dracula-theme#color-palette | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Map Keys | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change default search engine | |
//settings.defaultSearchEngine = "w"; | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change hints styles | |
// ----------------------------------------------------------------------------------------------------------------------- | |
api.Hints.characters = "asdfgqwertvbn"; | |
api.Hints.style('border: solid 1px #ff79c6; color:#44475a; background: #f1fa8c; background-color: #f1fa8c; font-size: 10pt; font-family: "Jetbrains Mono"'); | |
api.Hints.style('border: solid 8px #ff79c6;padding: 1px;background: #f1fa8c; font-family: "Jetbrains Mono"', "text");// ----------------------------------------------------------------------------------------------------------------------- | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change search marks and cursor | |
// ----------------------------------------------------------------------------------------------------------------------- | |
api.Visual.style('marks', 'background-color: #f1fa8c;'); | |
api.Visual.style('cursor', 'background-color: #6272a4; color: #f8f8f2'); | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change theme | |
// // Change fonts | |
// // Change colors | |
// ----------------------------------------------------------------------------------------------------------------------- | |
settings.theme = ` | |
.sk_theme input { | |
font-family: "Jetbrains Mono"; | |
} | |
.sk_theme .url { | |
font-size: 8px; | |
} | |
#sk_omnibarSearchResult li div.url { | |
font-weight: normal; | |
} | |
.sk_theme .omnibar_timestamp { | |
font-size: 9px; | |
font-weight: bold; | |
} | |
#sk_omnibarSearchArea input { | |
font-size: 10px; | |
} | |
.sk_theme .omnibar_visitcount { | |
font-size: 9px; | |
font-weight: bold; | |
} | |
body { | |
font-family: "Jetbrains Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace; | |
font-size: 10px; | |
} | |
kbd { | |
font: 11px "Jetbrains Mono", Consolas, "Liberation Mono", Menlo, Courier, monospace; | |
} | |
#sk_omnibarSearchArea .prompt, #sk_omnibarSearchArea .resultPage { | |
font-size: 10px; | |
} | |
.sk_theme { | |
background: #282a36; | |
color: #f8f8f2; | |
} | |
.sk_theme tbody { | |
color: #ff5555; | |
} | |
.sk_theme input { | |
color: #ffb86c; | |
} | |
.sk_theme .url { | |
color: #6272a4; | |
} | |
#sk_omnibarSearchResult>ul>li { | |
background: #282a36; | |
} | |
#sk_omnibarSearchResult ul li:nth-child(odd) { | |
background: #282a36; | |
} | |
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) { | |
background: #282a36; | |
} | |
.sk_theme .annotation { | |
color: #6272a4; | |
} | |
.sk_theme .focused { | |
background: #44475a !important; | |
} | |
.sk_theme kbd { | |
background: #f8f8f2; | |
color: #44475a; | |
} | |
.sk_theme .frame { | |
background: #8178DE9E; | |
} | |
.sk_theme .omnibar_highlight { | |
color: #8be9fd; | |
} | |
.sk_theme .omnibar_folder { | |
color: #ff79c6; | |
} | |
.sk_theme .omnibar_timestamp { | |
color: #bd93f9; | |
} | |
.sk_theme .omnibar_visitcount { | |
color: #f1fa8c; | |
} | |
.sk_theme .prompt, .sk_theme .resultPage { | |
color: #50fa7b; | |
} | |
.sk_theme .feature_name { | |
color: #ff5555; | |
} | |
.sk_omnibar_middle #sk_omnibarSearchArea { | |
border-bottom: 1px solid #282a36; | |
} | |
#sk_status { | |
border: 1px solid #282a36; | |
} | |
#sk_richKeystroke { | |
background: #282a36; | |
box-shadow: 0px 2px 10px rgba(40, 42, 54, 0.8); | |
} | |
#sk_richKeystroke kbd>.candidates { | |
color: #ff5555; | |
} | |
#sk_keystroke { | |
background-color: #282a36; | |
color: #f8f8f2; | |
} | |
kbd { | |
border: solid 1px #f8f8f2; | |
border-bottom-color: #f8f8f2; | |
box-shadow: inset 0 -1px 0 #f8f8f2; | |
} | |
#sk_frame { | |
border: 4px solid #ff5555; | |
background: #8178DE9E; | |
box-shadow: 0px 0px 10px #DA3C0DCC; | |
} | |
#sk_banner { | |
border: 1px solid #8be9fd; | |
background: rgb(139, 233, 253); | |
} | |
div.sk_tabs_bg { | |
background: #f8f8f2; | |
} | |
div.sk_tab { | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#6272a4), color-stop(100%,#44475a)); | |
} | |
div.sk_tab_title { | |
color: #f8f8f2; | |
} | |
div.sk_tab_url { | |
color: #8be9fd; | |
} | |
div.sk_tab_hint { | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f1fa8c), color-stop(100%,#ffb86c)); | |
color: #282a36; | |
border: solid 1px #282a36; | |
} | |
#sk_bubble { | |
border: 1px solid #f8f8f2; | |
color: #282a36; | |
background-color: #f8f8f2; | |
} | |
#sk_bubble * { | |
color: #282a36 !important; | |
} | |
div.sk_arrow[dir=down]>div:nth-of-type(1) { | |
border-top: 12px solid #f8f8f2; | |
} | |
div.sk_arrow[dir=up]>div:nth-of-type(1) { | |
border-bottom: 12px solid #f8f8f2; | |
} | |
div.sk_arrow[dir=down]>div:nth-of-type(2) { | |
border-top: 10px solid #f8f8f2; | |
} | |
div.sk_arrow[dir=up]>div:nth-of-type(2) { | |
border-bottom: 10px solid #f8f8f2; | |
} | |
#sk_omnibar { | |
width: 100%; | |
left: 0%; | |
} | |
}`; | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Change position | |
// ----------------------------------------------------------------------------------------------------------------------- | |
settings.omnibarPosition = "bottom"; | |
// ----------------------------------------------------------------------------------------------------------------------- | |
// Hints overlap | |
// ----------------------------------------------------------------------------------------------------------------------- | |
settings.hintAlign = "left"; |
Thanks for sharing this, looks great.
Is there any way to prevent the >
from being escaped? example
#sk_omnibarSearchResult
>
ul>
li:nth-child(odd) {...
Thanks for sharing this, looks great.
Is there any way to prevent the>
from being escaped? example#sk_omnibarSearchResult
>
ul>
li:nth-child(odd) {...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing this. I also noticed that
Visual.style('marks', 'background-color: #f1fa8c;');
didn't work. I think this is a bug insurfingkeys