Our take
- Activity
- 19
- Community
- 4
- Issues
- 21
- Pull requests
- 20
+0 stars in the last 30 days
- Fewer contributors than 91% of the projects we track
Project history
Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.
Stars
61Forks
3Change since Nov 17, 2026: 0 stars·0 forks
Overview
CSSQL is an esoteric stylesheet language that uses SQL DDL-like commands to create, edit, combine, and nest CSS selectors. It transpiles those commands into ordinary CSS, offering a table-oriented way to organize style rules rather than writing CSS directly.
The project is primarily suited to experimentation with an unusual approach to stylesheet composition. It does not claim to make CSS easier to read; the README explicitly warns that the syntax can make styles more verbose.
Key Features
- Create selector tables and add or remove CSS properties.
- Define CSS variables with
CREATE VARIABLE. - Copy, rename, merge, and drop selectors.
- Nest selectors to represent nested CSS rules.
- Compile CSSQL source files into CSS with a Haskell transpiler.
- Call the transpiler from Node.js through the
node-cssqlpackage. - Includes examples in the repository's test folder.
Use Cases
- Explore an alternative, database-inspired model for composing CSS.
- Generate reusable utility selectors by merging property sets.
- Experiment with transpiler or domain-specific language design in Haskell.
- Integrate CSSQL compilation into a Node.js project when a project specifically benefits from this syntax.
Getting Started
For Node.js projects, install the package with:
npm install node-cssql
See the README for the Node API, syntax, and Haskell development instructions.
Considerations
- The README describes CSSQL as esoteric and acknowledges that its more verbose syntax may make styles harder to read.
- The transpiler is written in Haskell and distributed for JavaScript through GHCJS, so the implementation involves both Haskell and JavaScript tooling.
- The repository was last pushed on 2020-06-25, based on the supplied repository metadata. Check the current repository state and compatibility before adopting it for a new project.
Found this useful?
Share it with someone who would like cssql.