@coralogix/galeforcecss
Node API for GaleforceCSS, a Rust-powered Tailwind CSS v3-compatible compiler.
Most projects want
@coralogix/vite-plugin-galeforcecss
instead; this package is the programmatic surface underneath it.
Not an official Tailwind Labs project. GaleforceCSS is an independent port of Tailwind CSS v3, pinned to
[email protected]as its conformance oracle.
Install
npm install -D @coralogix/galeforcecss
The platform-specific native binary is pulled in automatically as an optional dependency. No build step.
Usage
import { compile } from '@coralogix/galeforcecss'
const result = await compile({
candidates: ['flex', 'hover:bg-blue-500', 'md:px-4'],
inputCss: '@tailwind utilities;\n',
config: { corePlugins: { preflight: false } },
})
console.log(result.css)
For long-running tooling, createCompileStream() keeps one compiler process
alive so per-call startup is amortised:
import { createCompileStream } from '@coralogix/galeforcecss'
const stream = createCompileStream()
const a = await stream.compile({ candidates: ['flex'] })
const b = await stream.compile({ candidates: ['block'] })
stream.close()
Documentation
License
Apache License 2.0. Copyright 2026 Coralogix Ltd.