Skip to content

feat: add Hack font#14

Merged
devDariush merged 2 commits into
mainfrom
feat/add-hack-font
Mar 5, 2026
Merged

feat: add Hack font#14
devDariush merged 2 commits into
mainfrom
feat/add-hack-font

Conversation

@devDariush

Copy link
Copy Markdown
Owner

This pull request introduces support for the custom Hack monospace font throughout the application, ensuring a consistent and privacy-friendly terminal appearance. It also adds comprehensive end-to-end (E2E) tests to verify font loading, fallback behavior, and updates documentation to reflect these enhancements and increased test coverage.

Font Styling Integration:

  • Adds the Hack font (with regular, bold, italic, and bold italic styles) to the codebase via new CSS files (hack.css, hack-subset.css, and their template variants), including proper licensing and font-face declarations. [1] [2] [3] [4]
  • Updates the global stylesheet (layout.css) to import the Hack font and sets the --font-mono CSS variable to use Hack with system fallbacks for maximum compatibility and privacy.

Testing Enhancements:

  • Adds a new E2E test suite to terminal.test.ts that verifies:
    • The Hack font is used in the terminal,
    • Font files are loaded correctly,
    • The application gracefully falls back to system fonts if custom fonts are blocked (e.g., in privacy browsers).
  • Updates test documentation and coverage to reflect the new tests and edge cases covered, including font loading and fallback scenarios.

Documentation Updates:

  • Updates the main documentation (DOCS_INDEX.md) to highlight the new Hack font integration, and revises the test count and testing approach to reflect the expanded coverage. [1] [2]
  • Specifies in the documentation that the terminal uses the Hack font with system fallbacks, and details the new E2E tests. [1] [2]

These changes together ensure a more consistent and robust terminal UI, with strong test coverage for font-related features and improved documentation.

… italic styles

- Introduced hack-subset.css and hack.css for the Hack typeface, including font-face definitions for regular, bold, italic, and bold italic styles.
- Created corresponding .in files for template processing with placeholder for versioning.
- Ensured proper licensing information is included in the CSS files.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
dariushdev-sveltekit c9d8aa9 Mar 05 2026, 08:39 PM

@devDariush devDariush marked this pull request as ready for review March 5, 2026 20:41
@devDariush devDariush merged commit 5a0de61 into main Mar 5, 2026
2 checks passed
@devDariush devDariush deleted the feat/add-hack-font branch March 5, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant