Skip to content

Commit 0dd85ce

Browse files
committed
First Commit
0 parents  commit 0dd85ce

104 files changed

Lines changed: 488 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Create New Release
2+
3+
on:
4+
workflow_dispatch: # This allows manual triggering via button click
5+
6+
# Add explicit permissions for the GITHUB_TOKEN
7+
permissions:
8+
contents: write # This permission is needed to create releases
9+
10+
jobs:
11+
create_release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0 # Fetch all history for proper versioning
18+
19+
- name: Get latest release version
20+
id: get_version
21+
run: |
22+
# Try to get the latest release from GitHub API
23+
latest_release=$(curl -s -H "Authorization: token ${{ github.token }}" \
24+
"https://api.github.com/repos/${{ github.repository }}/releases/latest" || echo '{"tag_name":"v0.0.0"}')
25+
26+
# Check if we got a valid response with a tag_name
27+
if [[ $latest_release == *'"tag_name"'* ]]; then
28+
latest_tag=$(echo $latest_release | grep -o '"tag_name":"[^"]*' | sed 's/"tag_name":"//')
29+
echo "Found latest release tag: $latest_tag"
30+
else
31+
# No releases yet or API call failed
32+
latest_tag="v0.0.0"
33+
echo "No previous releases found, starting with v1.0.0"
34+
fi
35+
36+
# If no releases yet or invalid format, start with v1.0.0
37+
if [[ ! $latest_tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
38+
new_tag="v1.0.0"
39+
echo "Invalid tag format or no previous releases, using: $new_tag"
40+
else
41+
# Extract version numbers
42+
major=$(echo $latest_tag | sed 's/v\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)/\1/')
43+
minor=$(echo $latest_tag | sed 's/v\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)/\2/')
44+
patch=$(echo $latest_tag | sed 's/v\([0-9]\+\)\.\([0-9]\+\)\.\([0-9]\+\)/\3/')
45+
46+
# Increment patch version
47+
patch=$((patch + 1))
48+
new_tag="v$major.$minor.$patch"
49+
echo "Incrementing from $latest_tag to $new_tag"
50+
fi
51+
52+
# Make sure we have a valid tag
53+
if [[ ! $new_tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
54+
new_tag="v1.0.0"
55+
echo "Failed to generate valid tag, falling back to: $new_tag"
56+
fi
57+
58+
# Set the environment variable for later steps
59+
echo "NEW_TAG=$new_tag" >> $GITHUB_ENV
60+
echo "Version for this release: $new_tag"
61+
62+
- name: Create chrome.zip archive
63+
run: |
64+
# Create a temporary directory for the content
65+
mkdir -p ./release_content
66+
67+
# Copy all repository content (excluding git files and the release directory itself)
68+
rsync -av --exclude='.git' --exclude='release_content' ./ ./release_content/
69+
70+
# Create the zip file
71+
cd release_content
72+
zip -r ../chrome.zip .
73+
cd ..
74+
75+
echo "Archive created: chrome.zip"
76+
77+
- name: Create GitHub Release
78+
id: create_release
79+
uses: softprops/action-gh-release@v1
80+
with:
81+
tag_name: ${{ env.NEW_TAG }}
82+
name: Release ${{ env.NEW_TAG }}
83+
draft: false
84+
prerelease: false
85+
files: chrome.zip
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<h1 align="center">
2+
🍵 Mintifier Firefox Theme 🍵
3+
</h1>
4+
5+
<h2 align="center">
6+
A Firefox user CSS theme that looks similar to Chrome.
7+
</h2>
8+
9+
<p align="center">
10+
<img src="docs/assets/New Tab Preview.png" alt="New Tab Preview" width="400" hspace="10" style="max-width: 100%;">
11+
<img src="docs/assets/Settings Preview.png" alt="Settings Preview" width="400" hspace="10" style="max-width: 100%;">
12+
</p>
13+
14+
# Mintifier-Firefox-Theme
15+
A custom Firefox theme for the Mintifier project based on [material-fox-updated](https://github.com/edelvarden/material-fox-updated/tree/main).
16+
17+
## ⚙️ Installation
18+
19+
To start using **Mintifier Firefox Theme**, follow these steps:
20+
21+
1. **Open** Firefox and type `about:config` in the address bar, then press <kbd>Enter</kbd>.
22+
2. If a warning page appears, **click** `Accept the Risk and Continue` to access the `about:config` page.
23+
3. **Search** for the following preferences using the search bar at the top of the `about:config` page, and **ensure** the following preferences are `true`:
24+
25+
- `toolkit.legacyUserProfileCustomizations.stylesheets`
26+
- `svg.context-properties.content.enabled`
27+
- `layout.css.color-mix.enabled`
28+
29+
4. **Type** `about:support` in the address bar and press <kbd>Enter</kbd>.
30+
5. **Scroll down** to the `Profile Folder` section and **click** `Open Folder`.
31+
6. **Download** the `chrome.zip` file from the [**latest release**](https://github.com/SpeeQz1/Mintifier-Firefox-Theme/releases/latest).
32+
7. **Extract** the contents of `chrome.zip` into your Firefox profile directory.
33+
8. **Restart** Firefox to apply the changes.

custom.css

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
:root,
2+
html,
3+
body {
4+
/* Mintifier custom variables */
5+
--mintifier-dark-1: rgb(16, 16, 19);
6+
--mintifier-dark-2: rgb(27, 28, 33);
7+
--mintifier-dark-3: rgb(40, 40, 45);
8+
--mintifier-white-1: rgb(255, 255, 255);
9+
--mintifier-white-2: rgb(200, 200, 200);
10+
--mintifier-green-1: rgb(70, 143, 74);
11+
--mintifier-green-2: rgb(91, 185, 95);
12+
--mintifier-green-3: rgb(122, 249, 129);
13+
--mintifier-green-2-20: rgba(70, 143, 74, 0.2);
14+
--mintifier-green-2-10: rgba(70, 143, 74, 0.1);
15+
--mintifier-green-2-80: rgba(70, 143, 74, 0.8);
16+
--mintifier-white-1-06: rgba(255, 255, 255, 0.06);
17+
--mintifier-white-1-10: rgba(255, 255, 255, 0.1);
18+
--mintifier-border: rgb(47, 84, 50);
19+
--mintifier-font-family: system-ui, -apple-system, "Roboto", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
20+
21+
/* Main UI colors */
22+
--md-toolbar-color: var(--mintifier-dark-2) !important;
23+
--md-toolbar-text-color: var(--mintifier-white-1) !important;
24+
--md-background-color-0: var(--mintifier-dark-1) !important;
25+
--md-background-color-50: var(--mintifier-dark-1) !important;
26+
--md-background-color-100: var(--mintifier-dark-2) !important;
27+
28+
/* Tab colors */
29+
--md-tab-text-color: var(--mintifier-white-1) !important;
30+
--md-tab-background-text: var(--mintifier-white-1) !important;
31+
--md-tab-label-color: var(--mintifier-white-1) !important;
32+
--md-tab-label-color-inactive: var(--mintifier-white-2) !important;
33+
--md-tab-line-color: var(--mintifier-green-2) !important;
34+
--md-tab-loading-color: var(--mintifier-green-2) !important;
35+
--md-tab-background-color-hover: var(--mintifier-green-2-80) !important;
36+
--md-tab-separator-color: var(--mintifier-white-1-10) !important;
37+
38+
/* URL/Search bar */
39+
--md-urlbar-background-color: var(--mintifier-dark-1) !important;
40+
--md-urlbar-background-color-hover: var(--mintifier-dark-2) !important;
41+
--md-urlbar-background-color-open: var(--mintifier-dark-2) !important;
42+
--md-toolbar-field: var(--mintifier-dark-1) !important;
43+
--md-toolbar-field-text: var(--mintifier-white-1) !important;
44+
--md-input-background-color: var(--mintifier-dark-1) !important;
45+
--md-input-text-color: var(--mintifier-white-1) !important;
46+
--md-input-focus-border-color: var(--mintifier-green-2) !important;
47+
--md-toolbar-field-border-focus: var(--mintifier-green-2) !important;
48+
49+
/* Popup and menu colors */
50+
--md-popup-background-color: var(--mintifier-dark-2) !important;
51+
--md-popup-text-color: var(--mintifier-white-1) !important;
52+
--md-menu-background-color: var(--mintifier-dark-2) !important;
53+
--md-popup-border-color: var(--mintifier-green-1) !important;
54+
--md-popup-highlight-color: var(--mintifier-green-1) !important;
55+
--md-menu-border-color: var(--mintifier-green-2) !important;
56+
--md-menu-background-color-hover: var(--mintifier-green-2-20) !important;
57+
58+
/* Icon colors */
59+
--md-icon-attention-color: var(--mintifier-green-3) !important;
60+
--md-icon-color: var(--mintifier-white-1) !important;
61+
--md-icon-color-primary: var(--mintifier-white-1) !important;
62+
--md-icon-color-secondary: var(--mintifier-white-2) !important;
63+
64+
/* Text colors */
65+
--md-text-primary: var(--mintifier-white-1) !important;
66+
--md-text-secondary: var(--mintifier-white-2) !important;
67+
68+
/* Accent and selection colors */
69+
--md-accent-color: var(--mintifier-green-2) !important;
70+
--md-accent-color-hover: var(--mintifier-green-2-80) !important;
71+
--md-accent-color-transparent: var(--mintifier-green-2-10) !important;
72+
--md-accent-color-transparent-active: var(--mintifier-green-2-20) !important;
73+
--md-selection-background-color: var(--mintifier-green-2) !important;
74+
--md-selection-text-color: var(--mintifier-white-1) !important;
75+
--md-secondary-button-text: var(--mintifier-green-2) !important;
76+
77+
/* Control and input styling */
78+
--md-control-background-color: var(--mintifier-white-1-06) !important;
79+
--md-control-border-color: var(--mintifier-white-1-06) !important;
80+
81+
/* Content and separator colors */
82+
--md-content-separator-color: var(--mintifier-dark-3) !important;
83+
84+
/* Default webpage colors */
85+
--in-content-page-background: var(--mintifier-dark-1) !important;
86+
--in-content-box-background: var(--mintifier-dark-2) !important;
87+
--in-content-border-color: var(--mintifier-border) !important;
88+
--in-content-table-header-background: var(--mintifier-green-1) !important;
89+
--newtab-background-color-secondary: var(--mintifier-dark-3) !important;
90+
}
91+
92+
/* Additional specificity for some problematic elements */
93+
94+
h1 {
95+
font-family: var(--mintifier-font-family) !important;
96+
}
97+
98+
#urlbar-background {
99+
background-color: var(--mintifier-dark-1) !important;
100+
}
101+
102+
.tab-background {
103+
background-color: var(--mintifier-dark-2) !important;
104+
border-top: 2px solid var(--mintifier-green-2) !important;
105+
}
106+
107+
.tab-background[selected="true"] {
108+
background-color: var(--mintifier-dark-1) !important;
109+
border-top: 2px solid var(--mintifier-green-2) !important;
110+
}
111+
112+
#navigator-toolbox {
113+
background-color: var(--mintifier-dark-1) !important;
114+
}
115+
116+
.tabbrowser-tab {
117+
color: var(--mintifier-white-1) !important;
118+
}
119+
120+
#search-box {
121+
background-color: var(--mintifier-dark-1) !important;
122+
color: var(--mintifier-white-1) !important;
123+
}
124+
125+
.outer-wrapper {
126+
background-image:
127+
linear-gradient(
128+
to top,
129+
rgba(16, 16, 19, 1), /* Mintifier dark-1 with opacity */
130+
rgba(16, 16, 19, 0.95) /* Mintifier dark-2 with opacity */
131+
),
132+
url("./images/New Tab Background.jpg") !important;
133+
background-size: cover !important;
134+
background-position: center center !important;
135+
background-repeat: no-repeat !important;
136+
}

docs/assets/New Tab Preview.png

547 KB
Loading

docs/assets/Settings Preview.png

152 KB
Loading

fonts/Roboto-Bold.ttf

163 KB
Binary file not shown.

fonts/Roboto-Medium.ttf

165 KB
Binary file not shown.

fonts/Roboto-Regular.ttf

164 KB
Binary file not shown.

icons/account.svg

Lines changed: 4 additions & 0 deletions
Loading

icons/arrow-back.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)