May 18, 2020

230 words 2 mins read



LaTeX.css is a CSS library that makes your website look like a LaTeX document

repo name vincentdoerig/latex-css
repo link
language HTML
size (curr.) 678 kB
stars (curr.) 1215
created 2020-05-18
license MIT License


License: MIT latex.css on NPM

LaTeX.css is a minimal, almost class-less CSS library which makes any website look like a LaTeX document. It is based on @davidrzs' latexCSS.

Getting Started

Add the following code in the head of your project.

<link rel="stylesheet" href="" />

or use a CDN like Unpkg:

<link rel="stylesheet" href="" />

Using NPM/Yarn


npm install latex.css


yarn add latex.css

Add any optional classnames to elements with special styles (author subtitle, abstract, lemmas, theorems, etc.). A list of supported class-based elements can be found here.


The labels of theorems, definitions, lemmas and proofs can be changed to other supported languages by including the following snippet in addition to the main CSS file.

<link rel="stylesheet" href="" />

and changing the html lang attribute:

<html lang="es">


Contributions, feedback and issues are welcome. Feel free to fork, comment, critique, or submit a pull request.


This project is based on David Zollikofer’s project latexCSS.

Most of the CSS reset is based on Andy Bell’s Modern CSS Reset.

The sample HTML5 markup test page is based on html5-test-page by @cbracco.


This project is open source and available under the MIT License.

comments powered by Disqus