-
-
Notifications
You must be signed in to change notification settings - Fork 486
Color Themes
WenHuxian edited this page Nov 20, 2024
·
20 revisions
Go to Surfingkeys' Options (right click its icon in Chrome), enable Advanced mode and add/replace settings.theme
with the one you want.
The original style is at master/src/content_scripts/ui/frontend.css. Feel free to add your own below!
settings.theme = `
.sk_theme {
background: #1F1F28;
color: #DCD7BA;
}
.sk_theme tbody {
color: #98BB6C;
}
.sk_theme input {
color: #D9DCE0;
}
.sk_theme .url {
color: #76946;
}
.sk_theme .annotation {
color: #957FB8;
}
.sk_theme .omnibar_highlight {
color: #333;
background: #DCD7BA;
}
.sk_theme #sk_omnibarSearchResult ul>li:nth-child(odd) {
background: #2D4F67;
}
.sk_theme #sk_omnibarSearchResult ul>li.focused {
background: #938AA9;
}`;
settings.theme = `
.sk_theme {
background: #100a14dd;
color: #4f97d7;
}
.sk_theme tbody {
color: #292d;
}
.sk_theme input {
color: #d9dce0;
}
.sk_theme .url {
color: #2d9574;
}
.sk_theme .annotation {
color: #a31db1;
}
.sk_theme .omnibar_highlight {
color: #333;
background: #ffff00aa;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #5d4d7a55;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #5d4d7aaa;
}
.sk_theme #sk_omnibarSearchResult .omnibar_folder {
color: #a31db1;
}
`;
/* set theme */
settings.theme = `
.sk_theme {
font-family: Input Sans Condensed, Charcoal, sans-serif;
font-size: 10pt;
background: #282828;
color: #ebdbb2;
}
.sk_theme tbody {
color: #b8bb26;
}
.sk_theme input {
color: #d9dce0;
}
.sk_theme .url {
color: #98971a;
}
.sk_theme .annotation {
color: #b16286;
}
.sk_theme .omnibar_highlight {
color: #ebdbb2;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #282828;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #d3869b;
}
#sk_status, #sk_find {
font-size: 20pt;
}`;
settings.theme = `
.sk_theme {
font-family: Input Sans Condensed, Charcoal, sans-serif;
font-size: 10pt;
background: #002B36;
color: #93A1A1;
}
.sk_theme input {
color: #93A1A1;
}
.sk_theme .url {
color: #268BD2;
}
.sk_theme .annotation {
color: #93A1A1;
}
.sk_theme kbd {
background: #EEE8D5;
color: #111;
}
.sk_theme .omnibar_highlight {
color: #CB4B16;
}
.sk_theme .omnibar_folder {
color: #2AA198;
}
.sk_theme .omnibar_timestamp {
color: #657B83;
}
.sk_theme .omnibar_visitcount {
color: #B58900;
}
.sk_theme .prompt, .sk_theme .resultPage {
color: #93A1A1;
}
.sk_theme .feature_name {
color: #859900;
}
.sk_theme .separator {
color: #859900;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #002F3B;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #083D4A;
}
#sk_status, #sk_find {
font-size: 12pt;
}
#sk_keystroke {
background: #002B36;
}
.expandRichHints span.annotation {
color: #93A1A1;
}`;
settings.theme = `
.sk_theme {
font-family: SauceCodePro Nerd Font, Consolas, Menlo, monospace;
font-size: 10pt;
background: #f0edec;
color: #2c363c;
}
.sk_theme tbody {
color: #f0edec;
}
.sk_theme input {
color: #2c363c;
}
.sk_theme .url {
color: #1d5573;
}
.sk_theme .annotation {
color: #2c363c;
}
.sk_theme .omnibar_highlight {
color: #88507d;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #f0edec;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #cbd9e3;
}
#sk_status,
#sk_find {
font-size: 10pt;
}
`;
const hintsCss =
"font-size: 10pt; font-family: SauceCodePro Nerd Font, Consolas, Menlo, monospace; border: 0px; color:#2c363c; background: initial; background-color: #f0edec;";
api.Hints.style(hintsCss);
api.Hints.style(hintsCss, "text");
const hintsCss =
"font-size: 12pt; font-family: JetBrains Mono NL, Cascadia Code, SauceCodePro Nerd Font, Consolas, Menlo, monospace; border: 0px; color: #0366d6; background: initial; background-color: #ffffff";
api.Hints.style(hintsCss);
api.Hints.style(hintsCss, "text");
settings.theme = `
.sk_theme {
font-family: JetBrains Mono NL, Cascadia Code, SauceCodePro Nerd Font, Consolas, Menlo, monospace;
font-size: 10pt;
background: #ffffff;
color: #24292f;
}
.sk_theme tbody {
color: #ffffff;
}
.sk_theme input {
color: #24292f;
}
.sk_theme .url {
color: #24292f;
}
.sk_theme .annotation {
color: #24292f;
}
.sk_theme .omnibar_highlight {
color: #24292f;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #ffffff;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #0598bc;
}
#sk_status,
#sk_find {
font-size: 10pt;
}
`;
Source code: https://github.com/rose-pine/surfingkeys
omni:
tabs: Hints:
Visual Hints:
code:
api.Hints.style('border: solid 1px #3D3E3E; color:#F92660; background: initial; background-color: #272822; font-family: Maple Mono Freeze; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);');
api.Hints.style("border: solid 1px #3D3E3E !important; padding: 1px !important; color: #A6E22E !important; background: #272822 !important; font-family: Maple Mono Freeze !important; box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8) !important;", "text");
api.Visual.style('marks', 'background-color: #A6E22E99;');
api.Visual.style('cursor', 'background-color: #F92660;');
/* set theme */
settings.theme = `
.sk_theme {
font-family: Maple Mono Freeze,Input Sans Condensed, Charcoal, sans-serif;
font-size: 10pt;
background: #282828;
color: #ebdbb2;
}
.sk_theme tbody {
color: #b8bb26;
}
.sk_theme input {
color: #d9dce0;
}
.sk_theme .url {
color: #38971a;
}
.sk_theme .annotation {
color: #b16286;
}
#sk_omnibar {
width: 60%;
left:20%;
box-shadow: 0px 30px 50px rgba(0, 0, 0, 0.8);
}
.sk_omnibar_middle {
top: 15%;
border-radius: 10px;
}
.sk_theme .omnibar_highlight {
color: #ebdbb2;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #282828;
}
.sk_theme #sk_omnibarSearchResult {
max-height: 60vh;
overflow: hidden;
margin: 0rem 0rem;
}
#sk_omnibarSearchResult > ul {
padding: 1.0em;
}
.sk_theme #sk_omnibarSearchResult ul li {
margin-block: 0.5rem;
padding-left: 0.4rem;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #181818;
border-color: #181818;
border-radius: 12px;
position: relative;
box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.8);
}
#sk_omnibarSearchArea > input {
display: inline-block;
width: 100%;
flex: 1;
font-size: 20px;
margin-bottom: 0;
padding: 0px 0px 0px 0.5rem;
background: transparent;
border-style: none;
outline: none;
padding-left: 18px;
}
#sk_tabs {
position: fixed;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0);
overflow: auto;
z-index: 2147483000;
box-shadow: 0px 30px 50px rgba(0, 0, 0, 0.8);
margin-left: 1rem;
margin-top: 1.5rem;
border: solid 1px #282828;
border-radius: 15px;
background-color: #282828;
padding-top: 10px;
padding-bottom: 10px;
}
#sk_tabs div.sk_tab {
vertical-align: bottom;
justify-items: center;
border-radius: 0px;
background: #282828;
//background: #181818 !important;
margin: 0px;
box-shadow: 0px 0px 0px 0px rgba(245, 245, 0, 0.3);
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.8) !important;
/* padding-top: 2px; */
border-top: solid 0px black;
margin-block: 0rem;
}
#sk_tabs div.sk_tab:not(:has(.sk_tab_hint)) {
background-color: #181818 !important;
box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.8) !important;
border: 1px solid #181818;
border-radius: 20px;
position: relative;
z-index: 1;
margin-left: 1.8rem;
padding-left: 0rem;
margin-right: 0.7rem;
}
#sk_tabs div.sk_tab_title {
display: inline-block;
vertical-align: middle;
font-size: 10pt;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
padding-left: 5px;
color: #ebdbb2;
}
#sk_tabs.vertical div.sk_tab_hint {
position: inherit;
left: 8pt;
margin-top: 3px;
border: solid 1px #3D3E3E; color:#F92660; background: initial; background-color: #272822; font-family: Maple Mono Freeze;
box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
}
#sk_tabs.vertical div.sk_tab_wrap {
display: inline-block;
margin-left: 0pt;
margin-top: 0px;
padding-left: 15px;
}
#sk_tabs.vertical div.sk_tab_title {
min-width: 100pt;
max-width: 20vw;
}
#sk_usage, #sk_popup, #sk_editor {
overflow: auto;
position: fixed;
width: 80%;
max-height: 80%;
top: 10%;
left: 10%;
text-align: left;
box-shadow: 0px 30px 50px rgba(0, 0, 0, 0.8);
z-index: 2147483298;
padding: 1rem;
border: 1px solid #282828;
border-radius: 10px;
}
#sk_keystroke {
padding: 6px;
position: fixed;
float: right;
bottom: 0px;
z-index: 2147483000;
right: 0px;
background: #282828;
color: #fff;
border: 1px solid #181818;
border-radius: 10px;
margin-bottom: 1rem;
margin-right: 1rem;
box-shadow: 0px 30px 50px rgba(0, 0, 0, 0.8);
}
#sk_status {
position: fixed;
/* top: 0; */
bottom: 0;
right: 39%;
z-index: 2147483000;
padding: 8px 8px 4px 8px;
border-radius: 5px;
border: 1px solid #282828;
font-size: 12px;
box-shadow: 0px 20px 40px 2px rgba(0, 0, 0, 1);
/* margin-bottom: 1rem; */
width: 20%;
margin-bottom: 1rem;
}
#sk_omnibarSearchArea {
border-bottom: 0px solid #282828;
}
#sk_omnibarSearchArea .resultPage {
display: inline-block;
font-size: 12pt;
font-style: italic;
width: auto;
}
#sk_omnibarSearchResult li div.url {
font-weight: normal;
white-space: nowrap;
color: #aaa;
}
.sk_theme .omnibar_highlight {
color: #11eb11;
font-weight: bold;
}
.sk_theme .omnibar_folder {
border: 1px solid #188888;
border-radius: 5px;
background: #188888;
color: #aaa;
box-shadow: 1px 1px 5px rgba(0, 8, 8, 1);
}
.sk_theme .omnibar_timestamp {
background: #cc4b9c;
border: 1px solid #cc4b9c;
border-radius: 5px;
color: #aaa;
box-shadow: 1px 1px 5px rgb(0, 8, 8);
}
#sk_omnibarSearchResult li div.title {
text-align: left;
max-width: 100%;
white-space: nowrap;
overflow: auto;
}
.sk_theme .separator {
color: #282828;
}
.sk_theme .prompt{
color: #aaa;
background-color: #181818;
border-radius: 10px;
padding-left: 22px;
padding-right: 21px;
/* padding: ; */
font-weight: bold;
box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.8);
}
#sk_status, #sk_find {
font-size: 10pt;
font-weight: bold;
text-align: center;
padding-right: 8px;
}
#sk_status span[style*="border-right: 1px solid rgb(153, 153, 153);"] {
display: none;
}
`;