No description
  • JavaScript 47.6%
  • Rust 25%
  • CSS 20.3%
  • Shell 5.2%
  • HTML 1.9%
Find a file
2026-02-17 00:00:48 -07:00
.github/workflows Add Github workflow update 2025-12-15 22:54:08 -07:00
public project start 2025-12-15 22:48:17 -07:00
src project start 2025-12-15 22:48:17 -07:00
src-tauri Add Github workflow update 2025-12-15 22:54:08 -07:00
.gitignore project start 2025-12-15 22:48:17 -07:00
bun.lock project start 2025-12-15 22:48:17 -07:00
Cargo.lock project start 2025-12-15 22:48:17 -07:00
Cargo.toml project start 2025-12-15 22:48:17 -07:00
index.html project start 2025-12-15 22:48:17 -07:00
install.sh project start 2025-12-15 22:48:17 -07:00
jsconfig.json project start 2025-12-15 22:48:17 -07:00
LICENSE project start 2025-12-15 22:48:17 -07:00
package.json project start 2025-12-15 22:48:17 -07:00
README.md project start 2025-12-15 22:48:17 -07:00
rust-toolchain.toml project start 2025-12-15 22:48:17 -07:00
rustfmt.toml project start 2025-12-15 22:48:17 -07:00
vite.config.js project start 2025-12-15 22:48:17 -07:00

FocusType

A minimal, distraction-free Markdown editor built with Tauri 2, SolidJS, and Rust.

Features

  • Distraction-free writing — Clean interface with no clutter
  • Live Markdown preview — Toggle between editing and rendered preview
  • Custom caret — Styleable cursor with configurable thickness and color
  • Native file dialogs — Open and save files through OS-native dialogs
  • Typography-focused — iA Writer-inspired font stack and 72ch measure
  • Dark mode — Easy on the eyes

Tech Stack

  • Frontend: SolidJS + Vite
  • Backend: Rust + Tauri 2
  • Styling: Vanilla CSS with CSS variables

Development

# Install dependencies
bun install

# Run development server
bun run tauri dev

# Build for production
bun run tauri build

Project Structure

src/                    # SolidJS frontend
  components/           # UI components
  features/editor/      # Editor state management
  lib/                  # Utilities (Tauri IPC, caret positioning, theme)
  styles/               # CSS

src-tauri/              # Rust backend
  src/lib.rs            # Tauri commands and app setup

Customization

Edit CSS variables in src/styles/styles.css:

:root {
  --caret-color: oklch(58.8% 0.158 241.966);
  --caret-width: 2px;
  /* ... */
}

License

MIT