Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/userstyles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ userstyles:
categories: [productivity, photo_and_video]
color: text
current-maintainers: [*kerichdev]
copilot:
name: Copilot
link: https://copilot.microsoft.com
categories: [artificial_intelligence, productivity, development]
color: mauve
current-maintainers: [*ruiiiijiiiiang]
crates.io:
name: crates.io
link: https://crates.io
Expand Down
106 changes: 106 additions & 0 deletions styles/copilot/catppuccin.user.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
/* ==UserStyle==
@name Copilot Catppuccin
@namespace github.com/catppuccin/userstyles/styles/copilot
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/copilot
@version 2000.01.01
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/copilot/catppuccin.user.less
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Acopilot
@description Soothing pastel theme for Copilot
@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("copilot.microsoft.com") {
@import url("https://unpkg.com/@catppuccin/[email protected]/css/catppuccin-variables.important.css");

:root[data-theme="dark"] {
#catppuccin(@darkFlavor);
}
:root[data-theme="light"] {
#catppuccin(@lightFlavor);
}

#catppuccin(@flavor) {
#lib.palette();
#lib.defaults();
#lib.css-variables();

/* stylelint-disable function-no-unknown */
--color-background-100: .spaced-rgbify(@mantle) [];
--color-background-150: .spaced-rgbify(@base) [];
--color-background-200: .spaced-rgbify(@crust) [];
--color-background-250: .spaced-rgbify(@crust) [];
--color-background-650: .spaced-rgbify(@overlay1) [];
--color-background-700: .spaced-rgbify(@overlay1) [];
--color-background-800: .spaced-rgbify(@overlay0) [];
--color-background-850: .spaced-rgbify(@surface0) [];

--color-foreground-250: .spaced-rgbify(@text) [];
--color-foreground-450: .spaced-rgbify(@subtext0) [];
--color-foreground-550: .spaced-rgbify(@subtext1) [];
--color-foreground-600: .spaced-rgbify(@text) [];
--color-foreground-700: .spaced-rgbify(@text) [];
--color-foreground-750: .spaced-rgbify(@text) [];
--color-foreground-800: .spaced-rgbify(@text) [];
--color-foreground-900: .spaced-rgbify(@text) [];

--color-background-static-850: .spaced-rgbify(@crust) [];
--color-background-static-900: .spaced-rgbify(@crust) [];

--color-foreground-static-100: .spaced-rgbify(@text) [];
--color-foreground-static-150: .spaced-rgbify(@text) [];
--color-foreground-static-250: .spaced-rgbify(@subtext0) [];

--color-muted-200: .spaced-rgbify(@crust) [];
--color-muted-400: .spaced-rgbify(@mantle) [];
--color-muted-550: .spaced-rgbify(@crust) [];

--color-accent-150: .spaced-rgbify(@crust) [];
--color-accent-200: .spaced-rgbify(@crust) [];
--color-accent-250: .spaced-rgbify(@crust) [];
--color-accent-350: .spaced-rgbify(@accent) [];
--color-accent-550: .spaced-rgbify(@accent) [];
--color-accent-650: .spaced-rgbify(@accent) [];
--color-accent-850: .spaced-rgbify(@accent) [];
/* stylelint-enable function-no-unknown */

.dark\:text-white {
color: @text;
}

.dark\:fill-system-red-350:is([data-theme="dark"] *),
.fill-system-red-550,
.text-system-red-550 {
color: @red;
fill: @red;
}

.bg-gradient-authentication-dark,
.bg-gradient-authentication-light {
background-image: linear-gradient(180deg, @crust, @mantle, 50%, @base);
}

.text-black\/80 {
color: @text;
}

.bg-white\/70 {
background-color: @crust;
}

.safe-hover\:bg-black:hover {
background-color: @overlay2;
}
}
}

.spaced-rgbify(@color) {
@rgb: red(@color) green(@color) blue(@color);
}