For Readable HTML
<p>π«</p> {/* this_is_a_delicious_olive */}
vs
<p class='this_is_not_a_delicious_olive'>π«</p>
export default function App() {
return (
<div>
<h1>Hello Olive!</h1> {/* text-5xl font-bold text-green-600 */}
</div>
)
}
Hello Olive!
Vite
OliveCSS works well with Vite.
Tailwind
OliveCSS also works well with Tailwind.
Supports React, Vue, Svelte, Astro, Solid, Preact, Lit, ...
React Island
Key Features:
- πAutomatic conversion
- πSupports major frameworks
- πEasy to integrate
Example:
{/* color:white; */}
style="color:white;"
{/* text-white */}
className="text-white"
{/* // double-slash for a comment */}
{/* double-slash for a comment */}
Vue Island
Key Features:
- π Automatic conversion
- π Supports major frameworks
- π Easy to integrate
Example:
<!-- color:white; -->
style="color:white;"
<!-- text-white -->
class="text-white"
<!-- // double-slash for a comment -->
<!-- double-slash for a comment -->
Svelte Island
Key Features:
- π Automatic conversion
- π Supports major frameworks
- π Easy to integrate
Example:
<!-- color:white; -->
style="color:white;"
<!-- text-white -->
class="text-white"
<!-- // double-slash for a comment -->
<!-- double-slash for a comment -->
Comment-based Syntax
OliveCSS lets you write CSS utilities directly in comments inside your HTML, JSX, or Svelte files. Simple and intuitive β no need for heavy configuration.
Zero Runtime Overhead
OliveCSS transforms your source code at build time. That means no runtime cost, smaller bundles, and faster rendering.
Framework Agnostic
Works with React, Vue, Svelte, SolidJS, and more. Just install and use.
Lightweight & Fast
Tiny package size with blazing fast transformation β optimized for developer productivity.
Open Source
Free, open source, and community-driven. Contribute and shape the future of CSS utilities.
GitHub β