Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(apple-developer-documentation): init #1044

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 2 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
12 changes: 12 additions & 0 deletions scripts/userstyles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ collaborators:
- &NK308
url: https://github.com/NK308
name: NK308
- &AyaanAhmed25
name: Ayaan
url: https://github.com/AyaanAhmed25

userstyles:
advent-of-code:
Expand All @@ -146,6 +149,15 @@ userstyles:
> [!NOTE]
> This theme applies to [AniChart](https://anichart.net/) as well, which is an extension of AniList.
current-maintainers: [*anubisnekhet]
apple-developer:
name: Apple Developer
categories: [development, productivity]
AyaanAhmed25 marked this conversation as resolved.
Show resolved Hide resolved
icon: apple
color: text
readme:
app-link: "https://developer.apple.com/documentation"
usage: "Make sure stylus theme and website theme (all the way at the bottom of the webpage) match"
AyaanAhmed25 marked this conversation as resolved.
Show resolved Hide resolved
current-maintainers: [*AyaanAhmed25]
AyaanAhmed25 marked this conversation as resolved.
Show resolved Hide resolved
arch-wiki:
name: Arch Wiki
categories: [wiki, productivity]
Expand Down
283 changes: 283 additions & 0 deletions styles/apple-developer/catppuccin.user.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,283 @@
/* ==UserStyle==
@name apple-developer Catppuccin
@namespace github.com/catppuccin/userstyles/styles/apple-developer
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/apple-developer
@version 0.0.1
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/apple-developer/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Aapple-developer
@description Soothing pastel theme for apple-developer
@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 regexp("https://developer\\.apple\\.com/documentation.*") {
/* This section applies the light/dark themes automatically based on the user's system theme.
Use the below example CSS to start if the website you are theming doesn't have a light/dark mode toggle.
For an actual example of this, see https://github.com/catppuccin/userstyles/blob/39288b593278e5efa48007d5fc001292cf910672/styles/brave-search/catppuccin.user.css#L16-L29.
*/
@media (prefers-color-scheme: light) {
:root {
#catppuccin(@lightFlavor, @accentColor);
}
}
@media (prefers-color-scheme: dark) {
:root {
#catppuccin(@darkFlavor, @accentColor);
}
}

/* If the website you are theming *does* have a light/dark mode toggle,
you can conditionally enable light/dark flavors by targeting whatever
attribute that website uses to indicate the theme. *The example below gives you an idea of what
to look for. The website you are themeing may use a class-based approach (e.g. :root.theme-dark),
or any of the myriad of other methods like this.*
Use the below example CSS to start if this is the case.
For an actual example of this, see https://github.com/catppuccin/userstyles/blob/39288b593278e5efa48007d5fc001292cf910672/styles/youtube/catppuccin.user.css#L21-L30.
*/
:root[data-theme="dark"] {
#catppuccin(@darkFlavor, @accentColor);
}
:root[data-theme="light"] {
#catppuccin(@lightFlavor, @accentColor);
}
uncenter marked this conversation as resolved.
Show resolved Hide resolved

#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@flamingo: @catppuccin[@@lookup][@flamingo];
@pink: @catppuccin[@@lookup][@pink];
@mauve: @catppuccin[@@lookup][@mauve];
@red: @catppuccin[@@lookup][@red];
@maroon: @catppuccin[@@lookup][@maroon];
@peach: @catppuccin[@@lookup][@peach];
@yellow: @catppuccin[@@lookup][@yellow];
@green: @catppuccin[@@lookup][@green];
@teal: @catppuccin[@@lookup][@teal];
@sky: @catppuccin[@@lookup][@sky];
@sapphire: @catppuccin[@@lookup][@sapphire];
@blue: @catppuccin[@@lookup][@blue];
@lavender: @catppuccin[@@lookup][@lavender];
@text: @catppuccin[@@lookup][@text];
@subtext1: @catppuccin[@@lookup][@subtext1];
@subtext0: @catppuccin[@@lookup][@subtext0];
@overlay2: @catppuccin[@@lookup][@overlay2];
@overlay1: @catppuccin[@@lookup][@overlay1];
@overlay0: @catppuccin[@@lookup][@overlay0];
@surface2: @catppuccin[@@lookup][@surface2];
@surface1: @catppuccin[@@lookup][@surface1];
@surface0: @catppuccin[@@lookup][@surface0];
@base: @catppuccin[@@lookup][@base];
@mantle: @catppuccin[@@lookup][@mantle];
@crust: @catppuccin[@@lookup][@crust];
@accent-color: @catppuccin[@@lookup][@@accent];


AyaanAhmed25 marked this conversation as resolved.
Show resolved Hide resolved

color-scheme: if(@lookup = latte, light, dark);

::selection {
background-color: fade(@accent-color, 30%);
}

input,
textarea {
&::placeholder {
color: @subtext0 !important;
}
}

/* Start styling your website here: */
background-color: @base;


html,
body
{



--color-fill: @base;
--color-fill-secondary: @surface0;
--color-fill-tertiary: @crust;
--color-fill-quaternary: @surface2;
--color-fill-blue: @blue;
--color-fill-blue-secondary: @sapphire;
--color-fill-gray: @text;
--color-fill-gray-secondary: @surface1;
--color-fill-gray-tertiary: @surface2;
--color-fill-gray-quaternary: @surface0;
--color-fill-green-secondary: #f5fff6;
--color-fill-light-blue-secondary: #eaf3ff;
--color-fill-light-gray-secondary: #f5f5f7;
--color-fill-orange-secondary: @flamingo;
--color-fill-purple-secondary: #fcf8ff;
--color-fill-red-secondary: #fff2f4;
--color-fill-teal-secondary: #faffff;
--color-fill-yellow-secondary: #fffbf2;
--color-figure-blue: @blue;
--color-figure-gray: @text;
--color-figure-gray-secondary: @accent-color;
--color-figure-gray-secondary-alt: @subtext1;
--color-figure-gray-tertiary: @subtext1;
--color-figure-green: @green;
--color-figure-light-blue: @blue;
--color-figure-light-gray: #696969;
--color-figure-orange: @rosewater;
--color-figure-pink: @pink;
--color-figure-purple: @lavender;
--color-figure-red: @red;
--color-figure-teal: @teal;
--color-figure-yellow: @yellow;
--color-highlight-green: @green;
--color-highlight-red: lighten(@red, 40%);
--color-tutorials-teal: lighten(@teal, 40%);
--color-aside-deprecated: var(--color-figure-orange);
--color-aside-deprecated-background: @crust;
--color-aside-deprecated-border: var(--color-figure-orange);
--color-aside-experiment: var(--color-figure-purple);
--color-aside-experiment-background: var(--color-fill-purple-secondary);
--color-aside-experiment-border: var(--color-figure-purple);
--color-aside-important: var(--color-figure-yellow);
--color-aside-important-background: @crust;
--color-aside-important-border: var(--color-figure-yellow);
--color-aside-note: var(--color-figure-light-gray);
--color-aside-note-background: @crust;
--color-aside-note-border: var(--color-figure-light-gray);
--color-aside-tip: var(--color-figure-teal);
--color-aside-tip-background: @crust;
--color-aside-tip-border: var(--color-figure-teal);
--color-aside-warning: var(--color-figure-red);
--color-aside-warning-background: @crust;
--color-aside-warning-border: var(--color-figure-red);
--color-badge-beta: var(--color-figure-teal);
--color-badge-spi: var(--color-figure-pink);
--color-badge-dark-deprecated: var(--color-figure-orange);
--color-badge-dark-beta: var(--color-figure-teal);
--color-badge-dark-spi: var(--color-figure-pink);
--color-button-background-active: @accent-color;
--color-button-background-hover: @blue;
--color-changes-added: var(--color-figure-green);
--color-changes-added-hover: var(--color-fill-green-secondary);
--color-changes-deprecated: var(--color-figure-orange);
--color-changes-deprecated-hover: rgba(191,72,0,.05);
--color-changes-modified: var(--color-figure-purple);
--color-changes-modified-hover: var(--color-fill-purple-secondary);
--color-changes-modified-previous-background: var(--color-fill);
--color-code-background: var(--color-fill-tertiary);
--color-code-collapsible-background: var(--color-fill-gray-quaternary);
--color-code-line-highlight: var(--color-fill-light-blue-secondary);
--color-code-line-highlight-border: var(--color-figure-light-blue);
--color-code-plain: #000;
--color-dropdown-border: var(--color-fill-gray-tertiary);
--color-eyebrow: inherit;
--color-grid: var(--color-fill-gray-tertiary);
--color-hero-eyebrow: inherit;
--color-nav-outlines: var(--color-fill-gray-tertiary);
--color-nav-dark-outlines: #424245;
--color-nav-dark-solid-background: #2d2d2d;
--color-not-found-input-background: var(--color-fill-secondary);
--color-not-found-input-border: var(--color-fill-gray-tertiary);
--color-step-caption: var(--color-fill-gray-tertiary);
--color-step-focused: var(--color-figure-light-blue);
--color-step-text: var(--color-figure-gray);
--color-svg-icon: #86868b;
--color-tabnav-item-border-color: var(--color-fill-gray-tertiary);
--color-tutorial-navbar-dropdown-border: var(--color-dropdown-border);
--color-tutorials-overview-background: radial-gradient(circle at center 70%,#242424 0%,#0c0c0c 100%);
--color-tutorials-overview-content: #f5f5f7;
--color-tutorials-overview-content-alt: #a1a1a6;
--color-tutorials-overview-eyebrow: #a1a1a6;
--color-tutorials-overview-icon: #a1a1a6;
--color-tutorials-overview-navigation-link-active: #f5f5f7;
--color-tutorials-overview-navigation-link-hover: #a1a1a6;
--color-card-accent: var(--color-figure-blue);
--color-navigator-item-hover: rgba(0,113,227,.2);
--color-type-icon-orange: #947100;
--color-type-icon-green: #090;
--color-type-icon-blue: #272ad8;
--color-type-icon-sky: #06c;
--color-type-icon-pink: #d82797;
--color-type-icon-teal: #509ca3;
--color-type-icon-purple: #bf6af7;
--color-standard-red: var(--color-type-icon-pink);
--color-standard-orange: #ff5a00;
--color-standard-yellow: #ff9f2c;
--color-standard-blue: var(--color-type-icon-sky);
--color-standard-green: var(--color-type-icon-teal);
--color-standard-purple: var(--color-type-icon-purple);
--color-standard-gray: #afafaf;


--color-nav-link-color-hover: @accent-color;
--color-link-hover: @base;
--color-focus-color: @accent-color;

--color-aside-note-background: @crust;
--color-aside-note: @accent-color;



--color-syntax-attributes: @peach;
--color-syntax-characters: @yellow;
--color-syntax-comments: #7f8c98;
--color-syntax-documentation-markup: #7f8c98;
--color-syntax-documentation-markup-keywords: #a3b1bf;
--color-syntax-keywords: @red;
--color-syntax-marks: #fff;
--color-syntax-numbers: @pink;
--color-syntax-other-class-names: @flamingo;
--color-syntax-other-constants: #a7ebdd;
--color-syntax-other-declarations: #4eb0cc;
--color-syntax-other-function-and-method-names: @mauve;
--color-syntax-other-instance-variables-and-globals: @lavender;
--color-syntax-other-preprocessor-macros: @maroon;
--color-syntax-other-type-names: @flamingo;
--color-syntax-param-internal-name: #bfbfbf;
--color-syntax-plain-text: @text;
--color-syntax-preprocessor-statements: @maroon;
--color-syntax-project-class-names: @teal;
--color-syntax-project-constants: @green;
--color-syntax-project-function-and-method-names: @green;
--color-syntax-project-instance-variables-and-globals: @green;
--color-syntax-project-preprocessor-macros: @maroon;
--color-syntax-project-type-names: @teal;
--color-syntax-strings: @rosewater;
--color-syntax-type-declarations: @sky;
--color-syntax-urls: @blue;
--color-tutorial-background: var(--color-fill-tertiary);

}








/* If you need to specify an overwrite specific to a flavor
* (e.g. only when the flavor is set to latte), you can use a `when` guard clause. */
& when (@lookup = latte) {
/* ... */
}
/* You can also negate the statement above by using
* a `when not` guard clause. */
& when not (@lookup = latte) {
/* ... */
}
AyaanAhmed25 marked this conversation as resolved.
Show resolved Hide resolved
}
}

/* prettier-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: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; };
}

// vim:ft=less
3 changes: 3 additions & 0 deletions styles/apple-developer/preview.webp
Git LFS file not shown
Loading