2 Commits

Author SHA1 Message Date
minori 6a91bc8a1d deps: update mermaid to 11.12.3
Node.js CI / CI (pull_request) Successful in 1m0s
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m11s
2026-02-27 07:00:23 -08:00
rain 8a811b87c3 fix(readable-background): add a translucent background to main content (#23)
Node.js CI / CI (push) Successful in 58s
Security Scan and Upload / Security & DefectDojo Upload (push) Successful in 2m5s
### Explanation

This makes the main content area readable.
![Screenshot 2026-02-03 at 12.10.01 PM.png](/attachments/5103926c-17a1-49b5-8594-2f985b6bb23d)

### Issue

22

### Attestations

- [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [x] I have pinned the dependencies to a specific patch version.

### Style

- [x] I have run the linter and resolved any errors.
- [x] My pull request uses an appropriate title, matching the conventional commit standards.
- [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [x] My contribution adds new code, and I have added tests to cover it.
- [x] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [x] All new and existing tests pass locally with my changes.
- [x] Code coverage remains at or above the configured threshold.

### Documentation

I have made the following PR to update the documentation site by adding a translucent background to main content sections to improve text readability against the background artwork.

### Versioning

Minor - My pull request introduces a new non-breaking feature.

Co-authored-by: Rain <rainkalugdan@gmail.com>
Reviewed-on: #23
Co-authored-by: rain <rain@nhcarrigan.com>
Co-committed-by: rain <rain@nhcarrigan.com>
2026-02-06 16:46:52 -08:00
3 changed files with 296 additions and 214 deletions
+2 -2
View File
@@ -14,9 +14,9 @@
"dependencies": { "dependencies": {
"@astrojs/check": "0.9.6", "@astrojs/check": "0.9.6",
"@astrojs/starlight": "0.37.1", "@astrojs/starlight": "0.37.1",
"astro": "5.17.1", "astro": "5.16.5",
"astro-mermaid": "1.2.0", "astro-mermaid": "1.2.0",
"mermaid": "11.12.2", "mermaid": "11.12.3",
"typescript": "5.9.3" "typescript": "5.9.3"
}, },
"devDependencies": { "devDependencies": {
+269 -201
View File
File diff suppressed because it is too large Load Diff
+24 -10
View File
@@ -1,13 +1,14 @@
:root { :root {
/* Witch color palette */ /* Witch color palette */
--witch-purple: #2B1B3D; --witch-purple: #2b1b3d;
--witch-plum: #44275A; --witch-purple-translucent: hsla(267, 40%, 17%, 0.597);
--witch-rose: #A8577E; --witch-plum: #44275a;
--witch-mauve: #D4A5C7; --witch-rose: #a8577e;
--witch-lavender: #E8D5E8; --witch-mauve: #d4a5c7;
--witch-black: #0A0009; --witch-lavender: #e8d5e8;
--witch-silver: #C0C0C0; --witch-black: #0a0009;
--witch-moon: #F5F5F5; --witch-silver: #c0c0c0;
--witch-moon: #f5f5f5;
--witch-shadow: rgba(10, 0, 9, 0.7); --witch-shadow: rgba(10, 0, 9, 0.7);
/* Light theme uses lighter colors for background, darker for text */ /* Light theme uses lighter colors for background, darker for text */
@@ -22,12 +23,19 @@
--sl-color-gray-4: var(--witch-rose); --sl-color-gray-4: var(--witch-rose);
--sl-color-gray-5: var(--witch-plum); --sl-color-gray-5: var(--witch-plum);
--sl-color-gray-6: var(--witch-purple); --sl-color-gray-6: var(--witch-purple);
/* Translucent background */
--content-bg: rgba(181, 185, 187, 0.543);
--content-blur: 8px;
} }
html[data-theme="dark"] { html[data-theme="dark"] {
/* Dark theme uses darker colors for background, lighter for text */ /* Dark theme uses darker colors for background, lighter for text */
.page {
--background-color: var(--witch-purple-translucent);
}
--primary-color: var(--witch-lavender); --primary-color: var(--witch-lavender);
--background-color: var(--witch-purple)ee;
--sl-color-text-accent: var(--witch-lavender); --sl-color-text-accent: var(--witch-lavender);
/* Additional Starlight overrides for dark theme */ /* Additional Starlight overrides for dark theme */
@@ -77,6 +85,11 @@ a {
color: var(--primary-color) !important; color: var(--primary-color) !important;
} }
.page {
background: var(--content-bg);
backdrop-filter: var(--content-blur);
}
a[aria-current="page"] { a[aria-current="page"] {
color: var(--background-color) !important; color: var(--background-color) !important;
background-color: var(--witch-rose) !important; background-color: var(--witch-rose) !important;
@@ -106,7 +119,8 @@ footer > div > p {
color: var(--primary-color) !important; color: var(--primary-color) !important;
} }
starlight-theme-select, starlight-theme-select > label { starlight-theme-select,
starlight-theme-select > label {
color: var(--primary-color) !important; color: var(--primary-color) !important;
} }