├── .editorconfig ├── LICENSE ├── README.md ├── assets ├── .gitkeep └── preview.png └── bookmarklet.js /.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig helps developers define and maintain consistent 2 | # coding styles between different editors and IDEs 3 | # EditorConfig is awesome: https://EditorConfig.org 4 | 5 | root = true 6 | 7 | [*] 8 | charset = utf-8 9 | indent_size = 2 10 | indent_style = space 11 | end_of_line = lf 12 | insert_final_newline = true 13 | trim_trailing_whitespace = true 14 | 15 | # go 16 | [*.go] 17 | indent_style = tab 18 | indent_size = 4 19 | 20 | # python 21 | [*.{ini,py,py.tpl,rst}] 22 | indent_size = 4 23 | 24 | # rust 25 | [*.rs] 26 | indent_size = 4 27 | 28 | # documentation, utils 29 | [*.{md,mdx,diff}] 30 | trim_trailing_whitespace = false 31 | 32 | # windows shell scripts 33 | [*.{cmd,bat,ps1}] 34 | end_of_line = crlf 35 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Catppuccin 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

🚧 This repository has moved to catppuccin/userstyles 🚧

2 | 3 |

4 |

Copyright © 2021-present Catppuccin Org 5 | -------------------------------------------------------------------------------- /assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catppuccin/duckduckgo/564f098c1bcd58a90f73fb8df0a9e0ae2ac61fc9/assets/.gitkeep -------------------------------------------------------------------------------- /assets/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/catppuccin/duckduckgo/564f098c1bcd58a90f73fb8df0a9e0ae2ac61fc9/assets/preview.png -------------------------------------------------------------------------------- /bookmarklet.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | const colors = { 3 | latte: { 4 | base: "#eff1f5", 5 | blue: "#1e66f5", 6 | lavender: "#7287fd", 7 | mantle: "#e6e9ef", 8 | rosewater: "#dc8a78", 9 | text: "#4c4f69", 10 | }, 11 | frappe: { 12 | base: "#303446", 13 | blue: "#8caaee", 14 | lavender: "#babbf1", 15 | mantle: "#292c3c", 16 | rosewater: "#f2d5cf", 17 | text: "#c6d0f5", 18 | }, 19 | macchiato: { 20 | base: "#24273a", 21 | blue: "#8aadf4", 22 | lavender: "#b7bdf8", 23 | mantle: "#1e2030", 24 | rosewater: "#f4dbd6", 25 | text: "#cad3f5", 26 | }, 27 | mocha: { 28 | base: "#1e1e2e", 29 | blue: "#89b4fa", 30 | lavender: "#b4befe", 31 | mantle: "#181825", 32 | rosewater: "#f5e0dc", 33 | text: "#cdd6f4", 34 | } 35 | }; 36 | const flavour = window.prompt("Choose a theme:", "mocha"); 37 | const blueLinks = confirm("Use blue links?"); 38 | 39 | const ct = colors[flavour]; 40 | const theme = [ 41 | `21=${ct.mantle}`, 42 | `7=${ct.base}`, 43 | `8=${ct.text}`, 44 | `9=${blueLinks ? ct.blue : ct.rosewater}`, 45 | `aa=${ct.lavender}`, 46 | `ae=${flavour == "latte" ? -1 : ct.base}`, 47 | `j=${ct.mantle}`, 48 | `x=${blueLinks ? ct.blue : ct.rosewater}`, 49 | ]; 50 | 51 | for (const item of theme) { 52 | document.cookie = `${item}; max-age=126144000; samesite=lax; secure`; 53 | } 54 | })(); 55 | --------------------------------------------------------------------------------