/* ==UserStyle==
@name Google Gemini Catppuccin
@namespace github.com/catppuccin/userstyles/styles/google-gemini
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/google-gemini
@version 2025.03.24
@updateURL https://github.com/keonly/userstyles/raw/main/styles/google-gemini/catppuccin.user.less
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Agoogle-gemini
@description Soothing pastel theme for Google Gemini
@author Catppuccin
@license MIT
@preprocessor less
@var select lightFlavor "Light Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire", "sky:Sky", "lavender:Lavender", "subtext0:Gray*"]
==/UserStyle== */
@-moz-document domain("gemini.google.com") {
@import url("https://unpkg.com/@catppuccin/highlightjs@1.0.0/css/catppuccin-variables.important.css");
:root .dark-theme {
#catppuccin(@darkFlavor);
}
:root .light-theme {
#catppuccin(@lightFlavor);
}
#catppuccin(@flavor) {
@rosewater: @catppuccin[@@flavor][@rosewater];
@flamingo: @catppuccin[@@flavor][@flamingo];
@pink: @catppuccin[@@flavor][@pink];
@mauve: @catppuccin[@@flavor][@mauve];
@red: @catppuccin[@@flavor][@red];
@maroon: @catppuccin[@@flavor][@maroon];
@peach: @catppuccin[@@flavor][@peach];
@yellow: @catppuccin[@@flavor][@yellow];
@green: @catppuccin[@@flavor][@green];
@teal: @catppuccin[@@flavor][@teal];
@sky: @catppuccin[@@flavor][@sky];
@sapphire: @catppuccin[@@flavor][@sapphire];
@blue: @catppuccin[@@flavor][@blue];
@lavender: @catppuccin[@@flavor][@lavender];
@text: @catppuccin[@@flavor][@text];
@subtext1: @catppuccin[@@flavor][@subtext1];
@subtext0: @catppuccin[@@flavor][@subtext0];
@overlay2: @catppuccin[@@flavor][@overlay2];
@overlay1: @catppuccin[@@flavor][@overlay1];
@overlay0: @catppuccin[@@flavor][@overlay0];
@surface2: @catppuccin[@@flavor][@surface2];
@surface1: @catppuccin[@@flavor][@surface1];
@surface0: @catppuccin[@@flavor][@surface0];
@base: @catppuccin[@@flavor][@base];
@mantle: @catppuccin[@@flavor][@mantle];
@crust: @catppuccin[@@flavor][@crust];
@accent: @catppuccin[@@flavor][@@accentColor];
--ctp-rosewater: @rosewater;
--ctp-flamingo: @flamingo;
--ctp-pink: @pink;
--ctp-mauve: @mauve;
--ctp-red: @red;
--ctp-maroon: @maroon;
--ctp-peach: @peach;
--ctp-yellow: @yellow;
--ctp-green: @green;
--ctp-teal: @teal;
--ctp-sky: @sky;
--ctp-sapphire: @sapphire;
--ctp-blue: @blue;
--ctp-lavender: @lavender;
--ctp-text: @text;
--ctp-subtext1: @subtext1;
--ctp-subtext0: @subtext0;
--ctp-overlay2: @overlay2;
--ctp-overlay1: @overlay1;
--ctp-overlay0: @overlay0;
--ctp-surface2: @surface2;
--ctp-surface1: @surface1;
--ctp-surface0: @surface0;
--ctp-base: @base;
--ctp-mantle: @mantle;
--ctp-crust: @crust;
color-scheme: if(@flavor = latte, light, dark);
::selection {
background-color: fade(@accent, 30%);
}
input,
textarea {
&::placeholder {
color: @subtext0 !important;
}
}
--bard-color-neutral-90: @mantle;
--bard-color-on-selected-conversation-metadata-v2: @text;
--bard-color-surface-container: @mantle;
--bard-color-on-surface-opacity-38: @surface2 !important;
--bard-color-surface-container-highest: lighten(@base, 5%);
--bard-color-response-container-flipped-background: @surface0;
--bard-color-inverse-on-surface: darken(@mantle, 1%);
--bard-color-sidenav-mobile-controls: @text;
--bard-color-main-container-background: @base;
--bard-color-main-container-background-rgb: #rgbify(@base)[];
--bard-color-window-container-background: @base;
--bard-color-response-container-background: @base;
--bard-color-response-container-background-rgb: #rgbify(@base)[];
--bard-color-onhover-conversation-metadata-button-v2: @surface1;
--bard-color-selected-conversation-metadata-button-v2: fade(
@accent,
40%
);
--bard-color-new-conversation-button: @surface0;
--bard-color-on-new-conversation-button: @text;
--bard-color-onhover-conversation-metadata-v2: @surface0;
--bard-color-sidenav-upgrade-button: @surface0;
--bard-color-form-field-placeholder: @subtext0;
--bard-color-discovery-carousel-background: @mantle;
--bard-color-discovery-carousel-icon: @accent;
--bard-color-example-prompt-background: @crust;
--bard-color-bard-mode-logo-prefix: @subtext1;
--bard-color-neutral-96: @crust;
--bard-color-adv-marketing-basic-background: @surface0;
--bard-color-adv-marketing-product-background: @surface0;
--bard-color-adv-marketing-disclaimer: @subtext0;
--bard-color-input-area-buttons-selected-background: fade(
@accent,
70%
);
--bard-color-zero-state-card-selected: fade(@accent, 30%);
--bard-color-zero-state-prompt-chip-background: fade(@accent, 50%);
--bard-color-zero-state-prompt-chip-text: lighten(@accent, 5%);
--bard-color-regular-banner: @accent;
--bard-color-regular-banner-text: @crust;
--bard-color-skeleton-loader-background-1-rgb: #rgbify(@mantle)[];
--bard-color-skeleton-loader-background-2-rgb: #rgbify(@accent)[];
--bard-color-skeleton-loader-background-3-rgb: #rgbify(@accent)[];
--bard-color-brand-text-gradient-stop-1: @blue;
--bard-color-brand-text-gradient-stop-2: @sapphire;
--bard-color-brand-text-gradient-stop-3: @peach;
--bard-color-on-surface-opacity-12: fade(@teal, 10%);
--bard-color-footer-background: @mantle;
--bard-color-draft-chip-background: @surface0;
--bard-color-processing-animation-color-1: @surface1;
--bard-color-processing-animation-color-2: @crust;
--bard-color-tunable-selection-button: @mantle;
--bard-color-tunable-selection-button-icon: @text;
--bard-color-feedback-form-container-background: @mantle;
--bard-color-fact-check-tooltip-entailed-highlight: fade(@green, 25%);
--bard-color-fact-check-tooltip-entailed-selected: fade(@green, 35%);
--bard-color-fact-check-tooltip-contradictory-highlight: fade(@red, 25%);
--bard-color-fact-check-tooltip-contradictory-selected: fade(@red, 40%);
--bard-color-factuality-form-background: @mantle;
--bard-color-fact-check-button-complete: @surface0;
--bard-color-fact-check-button-loading: @surface1;
--bard-color-tunable-selection-menu-text: @text;
--bard-color-tunable-selection-menu-background: @mantle;
--bard-color-tunable-selection-textarea-background: @base;
--bard-color-tunable-selection-shimmer-non-advanced: @accent;
--bard-color-onegooglebar-product-controls: @text;
--bard-color-adv-marketing-check: @text;
--mdc-switch-selected-hover-handle-color: lighten(@accent, 10%);
--mdc-switch-selected-focus-handle-color: lighten(@accent, 10%);
--mdc-switch-selected-pressed-handle-color: lighten(@accent, 15%);
--mdc-switch-selected-track-color: fade(@accent, 50%);
--mdc-switch-selected-hover-track-color: fade(@accent, 50%);
--mdc-switch-selected-focus-track-color: fade(@accent, 50%);
--mdc-switch-selected-pressed-track-color: fade(@accent, 50%);
--mdc-switch-selected-handle-color: @accent;
--mdc-switch-unselected-handle-color: @subtext0;
--mdc-switch-unselected-hover-handle-color: @subtext1;
--mdc-switch-unselected-focus-handle-color: @text;
--mdc-switch-unselected-pressed-handle-color: @text;
--mdc-switch-unselected-track-color: @surface2;
--mdc-switch-unselected-hover-track-color: @surface2;
--mdc-switch-unselected-pressed-track-color: @surface2;
--mdc-switch-unselected-focus-track-color: @surface2;
--mdc-checkbox-selected-icon-color: @accent;
--mdc-checkbox-selected-checkmark-color: var(--gem-sys-color--on-primary);
--mdc-checkbox-selected-hover-icon-color: @accent;
--mdc-checkbox-selected-pressed-icon-color: @accent;
--mdc-checkbox-selected-focus-icon-color: @accent;
--mdc-checkbox-selected-focus-state-layer-color: @accent;
--mdc-checkbox-selected-hover-state-layer-color: @accent;
--mdc-checkbox-selected-pressed-state-layer-color: @text;
--mdc-checkbox-unselected-pressed-state-layer-color: @accent;
--mdc-checkbox-unselected-focus-state-layer-color: @text;
--mdc-checkbox-unselected-hover-state-layer-color: @text;
--mdc-checkbox-unselected-focus-icon-color: @text;
--mdc-checkbox-unselected-icon-color: @subtext1;
--mdc-checkbox-unselected-hover-icon-color: @text;
--mdc-text-button-label-text-color: @subtext1;
--mdc-text-button-hover-label-text-color: @overlay2;
--mdc-list-list-item-hover-label-text-color: @text;
--mdc-filled-button-label-text-color: @crust;
--mdc-circular-progress-active-indicator-color: @accent;
--mdc-outlined-button-focus-outline-color: @text;
--mdc-outlined-button-hover-label-text-color: @subtext1;
--mdc-list-list-item-focus-label-text-color: @text;
--mdc-icon-button-disabled-icon-color: @surface2;
--mdc-outlined-text-field-input-text-color: @text;
--mdc-outlined-text-field-focus-outline-color: @accent;
--mdc-outlined-text-field-outline-color: @overlay1;
--mat-app-text-color: @text;
--mat-text-button-state-layer-color: @overlay2;
--mat-sidenav-container-text-color: @text;
--mat-expansion-header-text-color: @text;
--mat-expansion-header-indicator-color: @text;
--mat-expansion-container-text-color: @text;
--mat-checkbox-label-text-color: @text;
--mat-bottom-sheet-container-text-color: @text;
--mat-bottom-sheet-container-background-color: @base;
--mat-menu-item-hover-state-layer-color: @surface0;
--mat-menu-item-focus-state-layer-color: @surface0;
--mat-menu-item-label-text-color: @text;
--mat-menu-container-color: @base;
--mat-menu-item-icon-color: @text;
--mat-filled-button-state-layer-color: @overlay2;
--mat-focus-indicator-border-color: @accent;
--mat-fab-small-hover-state-layer-opacity: 1;
--mat-divider-color: @overlay2;
--gm-outlinedtextfield-outline-color: @subtext0;
--gm-outlinedtextfield-outline-color--stateful: @accent;
--gm-outlinedtextfield-ink-color: @text;
--gm3-sys-color-on-secondary-container: @crust;
--gm3-sys-color-secondary-container: @text;
--gem-sys-color--surface: @base;
--gem-sys-color--surface-container: @mantle;
--gem-sys-color--surface--rgb: #rgbify(@base)[];
--gem-sys-color--on-surface: @text;
--gem-sys-color--on-surface-variant: @subtext1;
--gem-sys-color--outline-variant: @surface1;
--gem-sys-color--surface-container-high: @surface0;
--gem-sys-color--surface-container-low: lighten(@mantle, 2%);
--gem-sys-color--outline: @subtext0;
--gem-sys-color--on-primary-container: @text;
--gem-sys-color--on-primary-fixed: darken(@accent, 40%);
--gem-sys-color--on-primary: darken(@accent, 60%);
--gem-sys-color--primary: @accent;
--gem-sys-color--primary-container: fade(@accent, 60%);
--gem-sys-color--on-surface--rgb: #rgbify(@subtext0)[];
--gem-sys-color--surface-dim--rgb: #rgbify(@crust)[];
--gem-sys-color--surface-container-highest: @surface0;
--gem-sys-color--primary-fixed: @text;
--gem-sys-color--on-secondary: fade(@accent, 30%);
--gem-sys-color--surface-variant: @surface0;
--og-theme-color: @text;
.action-icon {
--gem-sys-color--on-primary: @accent;
--gem-sys-color--on-surface-variant: @mantle;
}
.draft-preview-label-chip.selected {
color: @crust;
}
.buttons-container-link-button {
color: @crust;
}
.mdc-text-field--outlined:hover:not(
.mdc-text-field--disabled,
.mdc-text-field--focused
) {
.mdc-notched-outline__leading,
.mdc-notched-outline__trailing {
border-color: @text !important;
}
}
.gmat-mdc-dialog .mat-mdc-dialog-container {
.mdc-dialog__content {
color: @subtext0;
}
.mdc-dialog__title {
color: @text;
}
}
.gmat-mdc-button.mat-mdc-outlined-button.mat-unthemed {
--mdc-outlined-button-outline-color: @overlay0;
--mdc-outlined-button-label-text-color: @subtext0;
}
.gmat-mdc-button.mat-mdc-outlined-button {
--mat-outlined-button-state-layer-color: @overlay2;
}
.gmat-mdc-button.mat-mdc-outlined-button:not(
.mat-mdc-button-disabled,
[disabled],
:disabled
).mdc-ripple-upgraded--background-focused,
.gmat-mdc-button.mat-mdc-outlined-button:not(
.mat-mdc-button-disabled,
[disabled],
:disabled,
.mdc-ripple-upgraded
):focus {
color: @text;
}
.gmat-mdc-chip {
--mdc-chip-label-text-color: @subtext0;
}
.gmat-mdc-chip.gmat-hairline-chip {
--mdc-chip-outline-color: @subtext0;
}
.gmat-mdc-chip.cdk-focused {
--mdc-chip-label-text-color: @text;
}
.mat-mdc-standard-chip {
--mdc-chip-hover-state-layer-color: @overlay1;
--mdc-chip-focus-state-layer-color: @overlay2;
}
.mdc-tooltip__surface {
--mdc-plain-tooltip-container-color: @overlay0;
--mdc-plain-tooltip-supporting-text-color: @text;
}
.mdc-form-field {
--mdc-form-field-label-text-color: @text;
}
.mdc-icon-button {
--mdc-icon-button-icon-color: @text !important;
}
.mdc-dialog__surface {
background-color: @base !important;
}
.expandable-button:disabled {
color: rgba(var(--gem-sys-color--on-surface--rgb), 0.38);
}
.mat-mdc-progress-bar {
--mdc-linear-progress-active-indicator-color: @accent;
--mdc-linear-progress-track-color: fade(@accent, 50%);
}
.mdc-list-item,
.gmat-mdc-list {
--mdc-list-list-item-hover-state-layer-color: @overlay1;
--mdc-list-list-item-label-text-color: @text;
--mdc-list-list-item-leading-icon-color: @text;
--mdc-list-list-item-focus-state-layer-color: @overlay2;
}
.gmat-mdc-button.mat-mdc-button.mat-primary {
--mdc-text-button-label-text-color: @accent;
--mdc-text-button-hover-label-text-color: lighten(@accent, 5%);
--mdc-text-button-focus-label-text-color: lighten(@accent, 8%);
}
.gmat-mdc-button.mat-mdc-button.mat-unthemed {
--mat-text-button-state-layer-color: @overlay2;
}
.gmat-mdc-button.mat-mdc-icon-button {
--mat-icon-button-state-layer-color: @overlay2;
}
.gmat-mdc-button.mat-mdc-fab:not(
.mat-mdc-button-disabled
).mat-primary.gmat-mdc-fab-fill {
--mdc-fab-container-color: @accent;
--mat-fab-foreground-color: @crust;
}
.gmat-mdc-button.mat-mdc-mini-fab:not(
.mat-mdc-button-disabled
).mat-primary.gmat-mdc-fab-outline {
--mat-fab-small-state-layer-color: @surface0;
}
.mat-mdc-fab:not(.mdc-riple-upgraded):focus::before,
.mat-mdc-mini-fab:not(.mdc-riple-upgraded):focus::before {
background: @surface2;
}
.mat-mdc-menu-panel {
background-color: @base !important;
}
.mat-mdc-fab.mat-accent {
--mat-fab-foreground-color: @text;
}
.xap-count-badge-dot {
background-color: @red;
}
& when (@flavor = latte) {
--gem-sys-color--on-primary-fixed: @accent;
--gem-sys-color--on-primary: @mantle;
--gem-sys-color--primary-fixed: @crust;
}
[data-mat-icon-name="search"] svg {
> path:nth-child(1) {
fill: @blue;
}
> path:nth-child(2) {
fill: @green;
}
> path:nth-child(3) {
fill: @yellow;
}
> path:nth-child(4) {
fill: @red;
}
}
.google-logo img {
@svg: escape(
''
);
content: url("data:image/svg+xml,@{svg}");
}
[src="https://www.gstatic.com/lamda/images/replit_dark_24px_7d0347bf84c2570074db9.svg"],
[src="https://www.gstatic.com/lamda/images/replit_light_24px_3a2ee6003110f3c8460c9.svg"] {
@svg: escape(
''
);
content: url("data:image/svg+xml,@{svg}");
}
/* Gemini Advanced shadows */
chat-window > div > input-container {
background: unset;
}
input-container::before {
background: unset;
}
}
}
#rgbify(@color) {
@rgb: red(@color), green(@color), blue(@color);
}
/* deno-fmt-ignore */
@catppuccin: {
@latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
@frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; };
@macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; };
@mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #f4f4f4; @subtext1: #e0e0e0; @subtext0: #c6c6c6; @overlay2: #a8a8a8; @overlay1: #8d8d8d; @overlay0: #6f6f6f; @surface2: #525252; @surface1: #393939; @surface0: #262626; @base: #161616; @mantle: #0b0b0b; @crust: #000000; };
};