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

build: integrate whiskers #15

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ Install one of the themes from the store:
3. Type `chrome://extensions` in the address bar
4. Select the "Developer mode" checkbox
5. Click the "Load unpacked" button
6. Choose the selected accent from the theme directory from `src`:
- 🌻 Chrome-catppuccin-latte
- 🪴 Chrome-catppuccin-frappe
- 🌺 Chrome-catppuccin-macchiato
- 🌿 Chrome-catppuccin-mocha
6. Choose the selected accent from the theme directory from `themes`:
- 🌻 latte
- 🪴 frappe
- 🌺 macchiato
- 🌿 mocha

## 💝 Thanks to

Expand Down
45 changes: 45 additions & 0 deletions chrome-store.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
whiskers:
version: 2.0.0
matrix:
- flavor
filename: "themes/{{ flavor.identifier }}/google-store/manifest.json"
version: 4.1
---
{%- set palette = flavor.colors -%}
{%- macro rgb(c) -%}
[{{c.rgb.r}}, {{c.rgb.g}}, {{c.rgb.b}}]
{%- endmacro rgb -%}
{
"manifest_version": 3,
"name": "Catppuccin Chrome Theme - {{ flavor.identifier | capitalize }}",
"description": "Soothing pastel theme for Google Chrome - Catppuccin {{ flavor.identifier | capitalize }}",
"version": "{{ version }}",
"icons": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
},
"theme": {
"colors": {
"frame": {{ self::rgb(c=palette.crust) }},
"frame_inactive": {{ self::rgb(c=palette.crust) }},
"frame_incognito": {{ self::rgb(c=palette.surface1) }},
"frame_incognito_inactive": {{ self::rgb(c=palette.surface1) }},
"bookmark_text": {{ self::rgb(c=palette.text) }},
"tab_background_text": {{ self::rgb(c=palette.overlay0) }},
"tab_background_text_inactive": {{ self::rgb(c=palette.surface1) }},
"tab_background_text_incognito": {{ self::rgb(c=palette.text) }},
"tab_background_text_incognito_inactive": {{ self::rgb(c=palette.overlay0) }},
"tab_text": {{ self::rgb(c=palette.text) }},
"toolbar": {{ self::rgb(c=palette.base) }},
"toolbar_button_icon": {{ self::rgb(c=palette.text) }},
"omnibox_text": {{ self::rgb(c=palette.text) }},
"omnibox_background": {{ self::rgb(c=palette.crust) }},
"ntp_background": {{ self::rgb(c=palette.crust) }},
"ntp_link": {{ self::rgb(c=palette.text) }},
"ntp_text": {{ self::rgb(c=palette.text) }},
"button_background": {{ self::rgb(c=palette.crust) }},
}
}
}
46 changes: 46 additions & 0 deletions chrome.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
whiskers:
version: 2.0.0
matrix:
- flavor
- accent
filename: "themes/{{ flavor.identifier }}/{{ accent }}/manifest.json"
version: 4.1
---
{%- set palette = flavor.colors -%}
{%- macro rgb(c) -%}
[{{ c.rgb.r }}, {{ c.rgb.g }}, {{ c.rgb.b }}]
{%- endmacro rgb -%}
{
"manifest_version": 3,
"name": "Catppuccin Chrome Theme - {{ flavor.identifier | capitalize }} {{ accent | capitalize }}",
"description": "Soothing pastel theme for Google Chrome - Catppuccin {{ flavor.identifier | capitalize }}",
Comment on lines +16 to +17
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"name": "Catppuccin Chrome Theme - {{ flavor.identifier | capitalize }} {{ accent | capitalize }}",
"description": "Soothing pastel theme for Google Chrome - Catppuccin {{ flavor.identifier | capitalize }}",
"name": "Catppuccin Chrome Theme - {{ flavor.name }} {{ accent | capitalize }}",
"description": "Soothing pastel theme for Google Chrome - Catppuccin {{ flavor.name }}",

Same with the Google Store one if we are keeping that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had kept it this way to avoid the accent on Frappe, don't want to run the risk of breaking things.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think Chrome fully supports Unicode? Would be very surprised if they didn't lol.

"version": "{{ version }}",
"icons": {
"16": "images/icon16.png",
"48": "images/icon48.png",
"128": "images/icon128.png"
},
"theme": {
"colors": {
"frame": {{ self::rgb(c=palette.crust) }},
"frame_inactive": {{ self::rgb(c=palette.crust) }},
"frame_incognito": {{ self::rgb(c=palette.surface1) }},
"frame_incognito_inactive": {{ self::rgb(c=palette.surface1) }},
"bookmark_text": {{ self::rgb(c=palette.text) }},
"tab_background_text": {{ self::rgb(c=palette.overlay0) }},
"tab_background_text_inactive": {{ self::rgb(c=palette.surface1) }},
"tab_background_text_incognito": {{ self::rgb(c=palette.text) }},
"tab_background_text_incognito_inactive": {{ self::rgb(c=palette.overlay0) }},
"tab_text": {{ self::rgb(c=palette.text) }},
"toolbar": {{ self::rgb(c=palette.base) }},
"toolbar_button_icon": {{ self::rgb(c=palette[accent]) }},
"omnibox_text": {{ self::rgb(c=palette[accent]) }},
"omnibox_background": {{ self::rgb(c=palette.crust) }},
"ntp_background": {{ self::rgb(c=palette.crust) }},
"ntp_link": {{ self::rgb(c=palette[accent]) }},
"ntp_text": {{ self::rgb(c=palette.text) }},
"button_background": {{ self::rgb(c=palette.crust) }},
nullishamy marked this conversation as resolved.
Show resolved Hide resolved
}
}
}
33 changes: 0 additions & 33 deletions src/Chrome-catppuccin-frappe/Template/manifest.json

This file was deleted.

26 changes: 0 additions & 26 deletions src/Chrome-catppuccin-frappe/make-accents.sh

This file was deleted.

33 changes: 0 additions & 33 deletions src/Chrome-catppuccin-latte/Template/manifest.json

This file was deleted.

26 changes: 0 additions & 26 deletions src/Chrome-catppuccin-latte/make-accents.sh

This file was deleted.

33 changes: 0 additions & 33 deletions src/Chrome-catppuccin-macchiato/Template/manifest.json

This file was deleted.

26 changes: 0 additions & 26 deletions src/Chrome-catppuccin-macchiato/make-accents.sh

This file was deleted.

Binary file removed src/Chrome-catppuccin-mocha/Sky/images/icon128.png
Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Sky/images/icon16.png
Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Sky/images/icon48.png
Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Teal/images/icon128.png
Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Teal/images/icon16.png
Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Teal/images/icon48.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
33 changes: 0 additions & 33 deletions src/Chrome-catppuccin-mocha/Template/manifest.json

This file was deleted.

Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Yellow/images/icon16.png
Binary file not shown.
Binary file removed src/Chrome-catppuccin-mocha/Yellow/images/icon48.png
Binary file not shown.
26 changes: 0 additions & 26 deletions src/Chrome-catppuccin-mocha/make-accents.sh

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ntp_background": [35, 38, 52],
"ntp_link": [140, 170, 238],
"ntp_text": [198, 208, 245],
"button_background": [35, 38, 52]
"button_background": [35, 38, 52],
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ntp_background": [35, 38, 52],
"ntp_link": [238, 190, 190],
"ntp_text": [198, 208, 245],
"button_background": [35, 38, 52]
"button_background": [35, 38, 52],
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ntp_background": [35, 38, 52],
"ntp_link": [198, 208, 245],
"ntp_text": [198, 208, 245],
"button_background": [35, 38, 52]
"button_background": [35, 38, 52],
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"ntp_background": [35, 38, 52],
"ntp_link": [166, 209, 137],
"ntp_text": [198, 208, 245],
"button_background": [35, 38, 52]
"button_background": [35, 38, 52],
}
}
}
}
Loading