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 3 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
46 changes: 46 additions & 0 deletions chrome-store.tera
sgoudham marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
whiskers:
version: 2.0.0
matrix:
- flavor
filename: "themes/{{ flavor.identifier }}/google-store/manifest.json"
version: 4.1
---
{%- set palette = flavor.colors -%}
{%- set identCap = flavor.identifier | capitalize -%}
{%- macro rgb(c) -%}
[{{c.rgb.r}}, {{c.rgb.g}}, {{c.rgb.b}}]
{%- endmacro rgb -%}
{
"manifest_version": 3,
"name": "Catppuccin Chrome Theme - {{ identCap }}",
"description": "Soothing pastel theme for Google Chrome - Catppuccin {{ identCap }}",
"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) }},
}
}
}
48 changes: 48 additions & 0 deletions chrome.tera
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
whiskers:
version: 2.0.0
matrix:
- flavor
- accent
filename: "themes/{{ flavor.identifier }}/{{ accent }}/manifest.json"
version: 4.1
---
{%- set palette = flavor.colors -%}
{%- set identCap = flavor.identifier | capitalize -%}
{%- set accentCap = accent | capitalize -%}
{%- macro rgb(color) -%}
[{{ color.rgb.r }}, {{ color.rgb.g }}, {{ color.rgb.b }}]
{%- endmacro rgb -%}
{
"manifest_version": 3,
"name": "Catppuccin Chrome Theme - {{ identCap }} {{ accentCap }}",
"description": "Soothing pastel theme for Google Chrome - Catppuccin {{ identCap }}",
"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],
}
}
}
}
Loading