🌐
npm
npmjs.com › package › css-validator
css-validator - npm
March 4, 2022 - Validate CSS via W3C's service. Latest version: 0.11.0, last published: 4 years ago. Start using css-validator in your project by running `npm i css-validator`. There are 7 other projects in the npm registry using css-validator.
      » npm install css-validator
    
Published   Mar 04, 2022
Version   0.11.0
Author   Todd Wolfson
🌐
npm
npmjs.com › package › csstree-validator
csstree-validator - npm
October 11, 2024 - CSS validator built on csstree. Latest version: 4.0.1, last published: a year ago. Start using csstree-validator in your project by running `npm i csstree-validator`. There are 17 other projects in the npm registry using csstree-validator.
      » npm install csstree-validator
    
Published   Oct 11, 2024
Version   4.0.1
Author   Roman Dvornov
🌐
GitHub
github.com › csstree › validator
GitHub - csstree/validator: CSS validator based on CSSTree
npm install -g csstree-validator · Run the validator on a CSS file: csstree-validator /path/to/style.css · Display help: csstree-validator -h ·
Starred by 73 users
Forked by 14 users
Languages   JavaScript 99.6% | CSS 0.4% | JavaScript 99.6% | CSS 0.4%
🌐
npm
npmjs.com › package › w3c-css-validator
w3c-css-validator - npm
A modern package for validating CSS using W3C’s public CSS validator service.
      » npm install w3c-css-validator
    
Published   Dec 02, 2025
Version   1.4.1
Author   Sparksuite
🌐
Snyk
snyk.io › snyk vulnerability database › npm
css-validator - npm Package Health Analysis
Further analysis of the maintenance status of css-validator based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
🌐
GitHub
github.com › sparksuite › w3c-css-validator
GitHub - sparksuite/w3c-css-validator: Easily validate CSS using W3C’s public CSS validator service
📦 Written entirely in TypeScript ... in Node.js and browsers · 📖 Well documented · Install with Yarn or npm: yarn add w3c-css-validator ·...
Starred by 18 users
Forked by 6 users
Languages   TypeScript 90.1% | JavaScript 6.1% | CSS 2.8% | HTML 1.0%
🌐
GitHub
github.com › twolfson › css-validator
GitHub - twolfson/css-validator: Validate CSS via W3C's service
This was created to validate CSS inside of the json2css test suite. Install the module with: npm install css-validator
Starred by 42 users
Forked by 8 users
Languages   JavaScript 99.5% | CSS 0.5% | JavaScript 99.5% | CSS 0.5%
🌐
npm
npmjs.com › package › scss-validator
scss-validator - npm
November 5, 2020 - This library will help to mandate rules for writing css in large enterprise UI component development.. Latest version: 2.0.0, last published: 5 years ago. Start using scss-validator in your project by running `npm i scss-validator`. There are ...
      » npm install scss-validator
    
Published   Nov 05, 2020
Version   2.0.0
Author   Niraj Kashyap
🌐
Reddit
reddit.com › r/webdev › recommendations for a css validator? the w3c validator appears to be outdated.
r/webdev on Reddit: Recommendations for a CSS validator? The W3C validator appears to be outdated.
November 23, 2023 -

My old standby, the W3C Validator, appears to be a bit out-of-date and doesn't support nested selectors.

I tried the csstree validator but it stops working when input contains CSS variables (e.g. --color: green).

I also tried the csstree-validator NPM package but it's choking on nested @media rules, which are a fairly recent addition.

What I'm really hoping for is an NPM package that can validate the CSS compiled by a static site generator, but even just something I could copy-paste into would be fine.

Any recommendations?

Edit: Actually, Stylelint seems like it'll do just fine, with the added advantage that we already use it in our projects for linting!

Find elsewhere
🌐
npm
npmjs.com › package › stylelint-csstree-validator
stylelint-csstree-validator - npm
June 13, 2023 - Stylelint plugin to validate CSS syntax. Latest version: 3.0.0, last published: 2 years ago. Start using stylelint-csstree-validator in your project by running `npm i stylelint-csstree-validator`. There are 29 other projects in the npm registry ...
      » npm install stylelint-csstree-validator
    
Published   Jun 13, 2023
Version   3.0.0
Author   Roman Dvornov
🌐
npm
npmjs.com › package › simple-css-validator
simple-css-validator - npm
November 25, 2020 - cssRules = { width: '100px'; 'background-color': 'cyan', }; validity = cssValidator(cssRules); /* Response is of the form { valid: true, error: [] } OR { valid: false, error: [ 'error-1', 'error-2' ] } */
      » npm install simple-css-validator
    
Published   Nov 25, 2020
Version   1.1.1
Author   Shama Khan
🌐
jsDelivr
jsdelivr.com › package › npm › css-validator
css-validator CDN by jsDelivr - A CDN for npm and GitHub
March 4, 2022 - Validate CSS via W3C's service · Version 0.11.0 · Keywords · cssvalidatew3c · INSTALL · Version: Static · Static · Latest Patch · Latest Minor · Latest Major · Learn more · Readme Files Statistics Browse CDN · Statistics · Requests 0 · Bandwidth 0 ·
Published   Nov 27, 2013
🌐
npm
npmjs.com › package › w3c-css
w3c-css - npm
Validate CSS using W3C CSS Validation Service. Latest version: 2.0.2, last published: 6 years ago. Start using w3c-css in your project by running `npm i w3c-css`. There are 2 other projects in the npm registry using w3c-css.
      » npm install w3c-css
    
Published   Jan 03, 2019
Version   2.0.2
Author   Grigoriy Chudnov
🌐
GitHub
github.com › gchudnov › w3c-css
GitHub - gchudnov/w3c-css: Validate CSS using W3C CSS Validation Service · GitHub
To deploy a private CSS Validator, use the following npm commands below to run a Docker-based instance locally or use an official guideline to download and install it.
Starred by 15 users
Forked by 2 users
Languages   JavaScript 91.0% | Dockerfile 8.3%
🌐
npm
npmjs.com › search
keywords:CSS validation - npm search
<div align="center"> <a ... version 1.0.0, 3 years ago102 dependents licensed under $MIT ... A Webpack plugin to optimize \ minimize CSS assets....
🌐
Snyk
security.snyk.io › snyk vulnerability database › npm
css-validator vulnerabilities | Snyk
An important project maintenance signal to consider for css-validator is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
🌐
jsDelivr
jsdelivr.com › package › npm › w3c-css-validator
w3c-css-validator CDN by jsDelivr - A CDN for npm and GitHub
April 9, 2025 - Easily validate CSS using W3C's public CSS validator service · Version 1.4.0 License MIT · Keywords · cssvalidatorvalidationw3c · INSTALL · Version: Static · Static · Latest Patch · Latest Minor · Latest Major · Learn more · Readme Files Statistics Browse CDN ·
Published   Feb 24, 2021
🌐
npm
npmjs.com › package › css-styleguide-validator
css-styleguide-validator - npm
October 2, 2017 - "use strict"; const unit = require('unit.js'); const styleguide = require('css-styleguide-validator'); let rules = { selector: { maxChainLength: 3, maxNameLength : 20, allowId : false }, attributes: {} }; styleguide.fromString('.test .test2 .test { width: 100%; } #id{background:blue;}', rules) .then((result) => { styleguide.render(result); }) .catch((e) => { unit.fail(e.message) });
      » npm install css-styleguide-validator
    
Published   Oct 02, 2017
Version   0.0.4
Author   faebeee