/* ==UserStyle==
@name Mastodon Catppuccin
@namespace github.com/catppuccin/userstyles/styles/mastodon
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/mastodon
@version 2025.09.06
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/mastodon/catppuccin.user.less
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Amastodon
@description Soothing pastel theme for Mastodon
@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== */
@import "https://userstyles.catppuccin.com/lib/lib.less";
@-moz-document domain("mastodon.social"),
domain("social.catppuccin.com"),
domain("fosstodon.org") {
.theme-mastodon-light,
.skin-modern-light,
.skin-mastodon-light {
#catppuccin(@lightFlavor);
}
.theme-contrast,
.skin-modern-dark,
.skin-contrast {
#catppuccin(@darkFlavor);
}
.theme-default,
.theme-system,
.skin-default,
.skin-system {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor);
}
}
#catppuccin(@flavor) {
#lib.palette();
#lib.defaults();
--background-color: @base;
--background-color-alt: @base;
--dropdown-border-color: @surface1;
--dropdown-background-color: @surface0;
--modal-background-color: @mantle;
--modal-border-color: @crust;
&,
.column-header__wrapper,
.column > *:not(.loading-indicator),
body.flavour-glitch.skin-default .column-header__wrapper {
--background-border-color: @surface0 !important;
}
&,
.tabs-bar__wrapper,
.admin-wrapper .sidebar-wrapper__inner,
.ui__header {
background: @crust;
color: @text;
}
.navigation-panel,
.column-link {
background: transparent;
}
.account__header__bio .account__header__fields dt {
background: transparent;
}
.search-popout,
.search-popout em,
.dismissable-banner__message,
.dismissable-banner__message h1,
.account__header__bio .account__header__fields dt,
.account__section-headline a.active,
.account__section-headline button.active,
.notification__filter-bar a.active,
.notification__filter-bar button.active,
.account__header__bio .account__header__content,
.navigation-bar,
.column-link__badge,
.display-name__html,
.column-subheading,
.account__display-name strong,
.status__display-name strong,
.notification__message,
.public-layout .public-account-bio .account__header__content,
.reply-indicator__content,
.status__content,
.status__content__text,
.card__bar .display-name strong,
.about__mail,
.about__domain-blocks__domain h6 {
color: @text;
}
.search-popout span,
.link-footer p,
.link-footer p a {
color: @subtext1;
}
.account__header__tabs__name h1 small,
.account__header__bio .account__header__fields dd,
.display-name__account,
.status__relative-time,
.empty-column-indicator,
.follow_requests-unlocked_explanation,
.account .account__display-name,
.label_input .search__input,
.search__input:focus,
.account__header__fields dt,
.rules-list__hint,
.about__domain-blocks__domain {
color: @subtext0;
}
.compose-panel hr,
.navigation-panel hr {
border-top-color: @surface2;
}
.mention,
.icon-button.inverted,
.icon-button.inverted:focus,
.icon-button.inverted:hover .account__header__tabs__name h1,
.account__header__content a,
.account__header__bio .account__header__fields a,
.empty-column-indicator a,
.follow_requests-unlocked_explanation a,
.column-back-button,
.text-icon-button,
.icon-button.star-icon.active,
.public-layout .public-account-bio .account__header__fields a,
.column-header__back-button,
.navigation-bar strong,
.reply-indicator__content a.unhandled-link,
.status__content a.unhandled-link,
.announcements__item__content a.unhandled-link,
.reactions-bar__item.active .reactions-bar__item__count,
.column-header.active .column-header__icon,
.about__section__title {
color: @accent;
}
button.icon-button i.fa-retweet {
@svg: escape(
''
);
background-image: url("data:image/svg+xml,@{svg}");
}
.prose {
h1,
h2,
h3,
h4,
strong {
color: @text;
}
color: @subtext0;
}
.rules-list {
color: @text;
li::before {
background-color: @accent;
color: @crust;
}
}
.about__domain-blocks__domain:nth-child(2n) {
background-color: @surface0;
}
.icon-button.active.inverted {
color: @mantle;
}
.display-name strong {
color: @text !important;
}
.boost-modal__action-bar {
span {
color: @subtext1;
}
background: @mantle;
}
.emoji-mart-anchor-selected,
.reply-indicator__content a {
color: @accent !important;
}
.confirmation-modal {
background-color: @base;
color: @text;
}
.confirmation-modal__action-bar {
background-color: @mantle;
}
.privacy-dropdown__option {
background: @surface0;
.privacy-dropdown__option__content,
strong,
i {
color: @text;
}
&:hover,
&.active {
background: @accent !important;
.privacy-dropdown__option__content,
strong,
i {
color: @crust;
}
}
}
.privacy-dropdown.active .privacy-dropdown__value {
background: @accent !important;
}
.privacy-dropdown.active .privacy-dropdown__value > button,
.privacy-dropdown__value-icon.active > i {
color: @crust !important;
}
.emoji-mart-search > input {
color: @text !important;
}
.emoji-mart-search,
.language-dropdown__dropdown__results {
background: @surface0;
}
.language-dropdown__dropdown {
background: @surface1 !important;
}
.language-dropdown__dropdown__results__item {
> span {
color: @text;
}
&:hover,
&.active {
background: @accent;
> span {
color: @crust;
}
}
}
.conversation__unread,
.emoji-mart-anchor-bar,
.compose-form__actions .icon-button.active,
.react-toggle--checked .react-toggle-track,
.react-toggle--checked:hover .react-toggle-track,
.pillbar-button:not([disabled]).active,
.pillbar-button:not([disabled]).active:focus,
.pillbar-button:not([disabled]).active:hover,
.radio-button__input.checked {
background-color: @accent;
}
.reactions-bar__item.active {
background-color: fade(@accent, 25%);
}
.trends__item__sparkline path:last-child {
stroke: @accent !important;
}
.trends__item__sparkline path:first-child {
fill: fade(@accent, 25%) !important;
}
.icon-button,
.notification__message .fa {
color: @surface2;
}
.icon-button:active,
.icon-button.active,
.icon-button:focus,
.icon-button:hover,
.text-icon-button:active,
.text-icon-button:focus,
.text-icon-button:hover,
.public-layout .public-account-bio .account__header__fields a:hover {
color: @accent;
}
.account__domain-pill {
color: @accent;
background: fade(@accent, 20%);
}
.drawer__header,
.account__section-headline button,
.search__input,
.search__input:focus,
.column-link__badge,
.column-subheading,
.public-layout .header,
.public-layout .public-account-header__bar::before,
.account__header__fields,
.account__header__fields
dd:not(.account__header__bio .account__header__fields dd),
.admin-wrapper .sidebar ul .simple-navigation-active-leaf .selected,
.explore__search-header,
.column-inline-form,
.follow_requests-unlocked_explanation,
.conversation--unread,
.announcements,
.status-card__image {
background: @surface0 !important;
}
.account__section-headline {
background: @mantle;
}
.focusable:focus {
background: unset;
}
.admin-wrapper .sidebar ul a:hover,
.admin-wrapper .sidebar ul .simple-navigation-active-leaf a:hover,
.detailed-status,
.detailed-status__action-bar {
background: @surface0;
}
.admin-wrapper .sidebar ul .simple-navigation-active-leaf a,
.admin-wrapper .sidebar ul a:hover {
color: @text;
}
.dismissable-banner {
background: @base;
}
.column-header__wrapper.active {
box-shadow: 0 1px 0 fade(@accent, 30%);
}
.column-header__wrapper.active::before {
background: radial-gradient(
ellipse,
fade(@accent, 23%) 0,
rgba(99, 100, 255, 0) 60%
);
}
.account__header__bio .account__header__fields dl,
.account__header__bio .account__header__fields,
.boost-modal__container,
.empty-column-indicator,
.column > .scrollable,
.nothing-here,
.public-layout .public-account-bio,
.hero-widget__text,
&.admin,
.admin-wrapper .sidebar ul a.selected,
.admin-wrapper .sidebar ul ul {
background: @base;
}
.dropdown-button {
border-color: @accent;
color: @accent;
}
.public-layout .public-account-header__tabs__tabs .counter::after,
.public-layout .public-account-header__tabs__tabs .counter.active::after,
.react-toggle--checked .react-toggle-thumb,
.radio-button__input.checked,
.account__action-bar__tab.active {
border-color: @accent;
}
.account,
.load-gap {
border-color: @mantle;
}
.account__section-headline a.active::after {
border-color: transparent transparent @base;
}
.account__section-headline a.active::before,
.account__section-headline button.active::after,
.account__section-headline button.active::before {
border-color: transparent transparent @mantle;
}
.poll__chart {
background: @overlay0;
&.leading {
background: @accent;
}
}
.column-header__button {
background: @base;
color: @overlay2;
&:hover {
background: @surface0;
}
}
.search-popout,
.drawer__header a:hover,
.account__section-headline button:hover,
.account__section-headline a:hover {
background: @surface0;
}
.prose a,
.column-link .active,
.compose-form__poll__select__value,
.column-link--transparent.active,
.column-link--transparent:focus,
.column-link:focus,
.column-link--transparent:hover,
.column-link:hover {
color: @accent;
}
.status.collapsed .status__content::after {
background: linear-gradient(fade(@base, 0%), @base);
}
.button.button-tertiary:focus,
.button.button-tertiary:hover,
.button.button-tertiary:active {
color: @base;
}
.button.button-tertiary {
border-color: @accent;
}
.button,
.button.button-tertiary,
.button.logo-button,
.icon-with-badge__badge {
background: @accent;
color: @base;
}
.button.logo-button svg {
fill: currentcolor;
}
.public-layout .header .nav-button {
background-color: @surface1;
}
.public-layout .header .nav-button:hover {
background-color: @surface2;
}
.button.button-secondary {
background-color: transparent;
color: @text;
border-color: @accent;
}
.button.button-secondary:active,
.button.button-secondary:focus,
.button.button-secondary:hover {
border-color: @accent;
color: @base;
transition: 0.2s;
}
.button:active,
.button:focus,
.button:hover,
.button.button-tertiary:active,
.button.button-tertiary:focus,
.button.button-tertiary:hover,
.button.logo-button:active,
.button.logo-button:focus,
.button.logo-button:hover,
.announcements__item__unread {
background: @accent;
}
select {
background-color: @mantle;
color: @text;
}
.mute-modal__cancel-button {
background-color: @base;
color: @text;
&:hover {
background-color: @surface0;
}
}
.drawer__inner,
.drawer__inner__mastodon,
.compose-form__highlightable,
.compose-form__highlightable .autosuggest-textarea__textarea,
.column-header,
.column-back-button,
.boost-modal,
.mute-modal,
.privacy-dropdown__dropdown,
.explore__search-header .search__input {
background-color: @base;
}
.mute-modal__action-bar {
background-color: @mantle;
}
.mute-modal__container {
background-color: @base;
color: @text;
}
.compose-form .compose-form__modifiers,
.compose-form .compose-form__autosuggest-wrapper,
.autosuggest-textarea__suggestions,
.compose-form .spoiler-input__input {
background: @surface0 !important;
color: @text !important;
}
.compose-form .compose-form__buttons-wrapper {
background: @surface0;
}
.load-more:hover {
background-color: @mantle;
}
.character-counter {
color: @subtext0;
}
.public-layout .header,
.hero-widget,
.public-layout .public-account-header,
.public-layout .public-account-bio,
.nothing-here {
box-shadow: none;
}
.dropdown-menu__item--dangerous a {
color: @red;
}
.search__popout,
.dropdown-menu__arrow::before,
.dropdown-menu__item button,
.dropdown-menu__container__list,
.dropdown-menu.bottom {
background: @surface0;
color: @text;
}
.dropdown-menu__item a:hover,
.dropdown-menu__item button:hover {
background: @surface1;
}
.input-copy,
.simple_form input[type="text"],
.simple_form textarea,
.simple_form .block-button,
.notification__filter-bar button,
.simple_form .button,
.simple_form button {
background: @mantle;
color: @text;
}
.simple_form .block-button:hover,
.simple_form .button:hover,
.notification__filter-bar button:hover,
.simple_form button:hover {
background: @surface0;
}
.simple_form .input.with_label .label_input > label,
.simple_form select,
.accounts-table__count,
.simple_form textarea {
color: @text;
}
.simple_form textarea,
.simple_form input[type="password"],
.simple_form input[type="number"],
.simple_form input[type="text"] {
border-color: @crust;
}
.simple_form input[type="email"]:required:valid {
border-color: @green;
}
.simple_form input[type="password"],
.simple_form input[type="number"],
.simple_form input[type="email"]:required:valid,
.simple_form
input[type="password"]:required:invalid:not(:placeholder-shown) {
color: @text;
background: @mantle;
}
.simple_form
input[type="password"]:required:invalid:not(:placeholder-shown) {
border-color: @red;
}
.simple_form select {
@svg: escape(
''
);
background: @mantle url("data:image/svg+xml,@{svg}") no-repeat right 8px
center/auto 16px;
border-color: @crust;
}
.poll__option input[type="text"]:focus,
.simple_form input[type="datetime-local"]:active,
.simple_form input[type="datetime-local"]:focus,
.simple_form input[type="email"]:active,
.simple_form input[type="email"]:focus,
.simple_form input[type="number"]:active,
.simple_form input[type="number"]:focus,
.simple_form input[type="password"]:active,
.simple_form input[type="password"]:focus,
.simple_form input[type="text"]:active,
.simple_form input[type="text"]:focus,
.simple_form input[type="url"]:active,
.simple_form input[type="url"]:focus,
.simple_form textarea:active,
.simple_form textarea:focus {
border-color: @accent !important;
background: @mantle !important;
color: @text !important;
}
.table > thead > tr > th,
.setting-text:active,
.setting-text:focus {
border-color: @accent !important;
}
.batch-table__toolbar,
.table > thead > tr > th {
background: @surface0 !important;
color: @text !important;
}
.simple_form input[type="datetime-local"]:hover,
.simple_form input[type="email"]:hover,
.simple_form input[type="number"]:hover,
.simple_form input[type="password"]:hover,
.simple_form input[type="text"]:hover,
.simple_form input[type="url"]:hover,
.simple_form textarea:hover {
background: @mantle !important;
border-color: @accent !important;
transition: 0.4s;
}
.batch-table__row {
background: @surface1;
}
.batch-table__row:hover,
.batch-table__row:nth-child(2n):hover {
background: @surface2;
}
.batch-table__row:nth-child(2n),
.table > tbody > tr > td {
background: @surface0;
}
.table > thead > tr > th {
border-bottom-color: @surface0;
}
.positive-hint {
color: @green !important;
}
.card__bar {
background: @surface0;
}
.reply-indicator {
background: @surface1;
}
.getting-started,
.getting-started__wrapper {
background: @surface0;
}
.column-link {
color: @text;
&:hover {
color: @accent;
}
}
.search__popout h4 {
color: @subtext0;
}
.search__popout__menu__item mark {
color: @text;
}
.search__popout__menu__item.selected,
.search__popout__menu__item:active,
.search__popout__menu__item:focus,
.search__popout__menu__item:hover {
background: @surface1;
color: @text;
}
}
}