Skip to content

Instantly share code, notes, and snippets.

@thibaultmol
Created December 11, 2024 09:40
Show Gist options
  • Save thibaultmol/d887aa03b36ebb127a73293dde7c971c to your computer and use it in GitHub Desktop.
Save thibaultmol/d887aa03b36ebb127a73293dde7c971c to your computer and use it in GitHub Desktop.
Bad kagi custom css for brutalist design
/* Brutalist Kagi Terminal Theme */
:root {
--bg-color: #1E1E1E;
--text-color: #E0E0E0;
--link-color: #6EA4FF;
--index-color: #6EA4FF;
--border-color: #333333;
}
/* Global reset for vertical spacing only */
* {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
line-height: 1.2 !important;
}
/* Base styles */
body, html {
background: var(--bg-color);
color: var(--text-color);
font-family: "Courier New", monospace;
font-size: 14px;
}
/* Preserve left padding for content */
.search-results,
.nav-tabs {
padding-left: 16px !important;
padding-right: 16px !important;
}
.app-header {
padding-left: 135px !important;
padding-right: 16px !important;
}
/* Remove vertical spacing */
input:where(:not([type=checkbox],[type=radio])),
textarea,
button,
ul,
.auto_suggestions,
.auto_suggestions .auto_item,
#additional_info,
.k_ui_toast,
.k_ui_toast_header,
.k_ui_toast_footer,
#help_modal,
.help-section,
.section-title,
.section-sub-title,
.k_ui_dropdown,
.k_ui_toggle_switch,
.auto_suggestions .auto_suggestions_footer,
.auto_suggestions .auto_suggestions_in,
h1, h2, h3, h4, h5, h6, p,
td, th,
form,
.main_lense_preselect_box,
._0_lenses,
.k_ui_dropdown_data_list,
.header_links,
.top_nav_links,
.auto_suggestions_lenses_box,
.auto_suggestions_lenses_edit_box,
.result-item,
.__srgi,
.__sri-title,
.widgetContent,
.search-results > *,
.__sri-body,
.__sri-desc {
margin-top: 0 !important;
margin-bottom: 0 !important;
padding-top: 0 !important;
padding-bottom: 0 !important;
}
/* Search input */
input[type="search"] {
background: var(--bg-color);
border: 0;
border-bottom: 1px solid var(--text-color);
color: var(--text-color);
font-family: "Courier New", monospace;
padding: 4px 8px !important;
width: calc(100% - 16px);
}
/* Results styling */
.result-item {
display: inline;
}
.result-item a {
color: var(--text-color);
text-decoration: none;
}
.result-item-url {
color: var(--link-color);
}
/* Hide unnecessary elements */
.result-item-description,
.result-item-favicon,
.result-item-thumbnail,
.auto_suggestions,
.filters_research,
#additional_info {
display: none !important;
}
/* Logo */
.app-logo {
display: block !important;
position: absolute;
left: 16px;
top: 16px;
}
.logo_kagi::after {
content: "KAGI";
font-family: "Courier New", monospace;
font-weight: normal;
}
.logo_kagi svg, .logo_kagi_small svg {
display: none;
}
/* Navigation tabs */
.nav-tabs {
border-top: 1px dashed var(--border-color);
border-bottom: 1px dashed var(--border-color);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment