This plugin for Framer allows you to effortlessly convert LaTeX expressions into beautiful SVG images for your Framer projects. It transforms your typed LaTeX formulas into high-quality SVG graphics using MathJax, perfect for enhancing websites with mathematical expressions, equations, and technical content.
The plugin supports both canvas and image modes, making it accessible from the canvas editor as well as from Framer's image picker throughout your design workflow.
- Instantly render LaTeX expressions as high-quality SVG images using MathJax
- Customize text color, background color, and output resolution
- Preview the rendered equation before adding it to the canvas
- Canvas Mode: Create frame elements with equation images directly on the canvas
- Image Mode: Use equations as image assets anywhere in Framer (image picker, CMS, localization)
- Seamlessly insert the final SVG image into your design with a single click
The TeX plugin can be used in two different modes:
- Open the TeX plugin from the canvas in Framer
- Type your LaTeX expression in the input field
- Customize the appearance:
- Adjust text color using the color picker
- Change background color or make it transparent
- Preview your rendered equation
- Click "Add to Canvas" to create a frame with the equation image
- Click on any image placeholder or use the image picker in Framer
- Select "TeX" from the available plugins
- Type your LaTeX expression in the input field
- Customize the appearance with color options
- Preview your rendered equation
- Click "Use Equation" to set it as the selected image
The plugin automatically adapts its interface and behavior based on how it's launched, providing a seamless experience in both contexts.
src/App.tsx— Main component that provides the UI and handles the rendering logicsrc/App.css— Styles for the plugin interfacesrc/ColorInput.tsx— Component for color input functionalitysrc/main.tsx— Entry point for the pluginpublic/— Contains static assets and imagesdist/— Contains the built plugin files
To develop and extend the plugin:
- Clone the repository
- Install dependencies:
npm install # or yarn install # or pnpm install
- Start the development server:
npm run dev # or yarn dev # or pnpm dev
The plugin uses:
- MathJax for LaTeX to SVG rendering
- TypeScript for type safety
- Vite for development and building
- ESLint for code quality
- Framer
- Node.js and npm (for development purposes)
Feel free to contribute to this project! You can submit issues or pull requests to help improve the plugin.
This project is licensed under the MIT License. See the LICENSE file for more information.
