Skip to content

Commit 1739414

Browse files
committed
chore: Update SCSS variables for color contrast settings and upgrade package dependencies
1 parent a45973c commit 1739414

File tree

3 files changed

+21
-16
lines changed

3 files changed

+21
-16
lines changed

assets/scss/common/_variables.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ $pink-500: #d32e9d;
2727
$primary: $purple;
2828
$secondary : $pink-500;
2929

30+
// Bootstrap color contrast settings
31+
$min-contrast-ratio: 3; // Reduce from default 4.5 to 3 to prevent warnings
32+
$color-contrast-dark: $black;
33+
$color-contrast-light: $white;
34+
3035
$color-btn-bg: $primary;
3136
$color-btn-border: darken($primary, 5%);
3237
$color-btn-text: $white;

config/postcss.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
const autoprefixer = require('autoprefixer');
2-
const purgecss = require('@fullhuman/postcss-purgecss');
2+
const { purgeCSSPlugin } = require('@fullhuman/postcss-purgecss');
33
const whitelister = require('purgecss-whitelister');
44

55
module.exports = {
66
plugins: [
77
autoprefixer(),
8-
purgecss({
8+
purgeCSSPlugin({
99
content: [
1010
'./layouts/**/*.html',
1111
'./content/**/*.md',

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,31 @@
3434
"version": "auto-changelog -p && git add CHANGELOG.md"
3535
},
3636
"devDependencies": {
37-
"@babel/cli": "^7.25",
38-
"@babel/core": "^7.26",
39-
"@babel/preset-env": "^7.26",
40-
"@fullhuman/postcss-purgecss": "^6.0",
37+
"@babel/cli": "^7.28",
38+
"@babel/core": "^7.28",
39+
"@babel/preset-env": "^7.28",
40+
"@fullhuman/postcss-purgecss": "^7.0",
4141
"auto-changelog": "^2.5.0",
4242
"autoprefixer": "^10.4",
4343
"bootstrap": "^5.3",
4444
"clipboard": "^2.0",
45-
"eslint": "^9.16",
45+
"eslint": "^9.37",
4646
"exec-bin": "^1.0.0",
47-
"flexsearch": "^0.7.43",
48-
"highlight.js": "^11.10",
47+
"flexsearch": "^0.8.212",
48+
"highlight.js": "^11.11",
4949
"hugo-installer": "^4.0",
5050
"instant.page": "^5.2",
5151
"katex": "^0.16",
5252
"lazysizes": "^5.3",
53-
"markdownlint-cli": "^0.43.0",
54-
"mermaid": "^11.4",
53+
"markdownlint-cli": "^0.45",
54+
"mermaid": "^11.12",
5555
"node-fetch": "^3.3",
56-
"postcss": "^8.4",
57-
"postcss-cli": "^10.1",
56+
"postcss": "^8.5",
57+
"postcss-cli": "^11.0",
5858
"purgecss-whitelister": "^2.4",
59-
"shx": "^0.3.4",
60-
"stylelint": "^15.10",
61-
"stylelint-config-standard-scss": "^11.0"
59+
"shx": "^0.4.0",
60+
"stylelint": "^16.25",
61+
"stylelint-config-standard-scss": "^16.0"
6262
},
6363
"otherDependencies": {
6464
"hugo": "0.148.0"

0 commit comments

Comments
 (0)