Sample CSS files for testing parsers and build tools — free, CC0

Stylesheets are parsed by more things than browsers: build tools, minifiers, linters, editors and anything that rewrites asset URLs. These files give those tools something real to read without pulling in a framework.

css/basic.css is a small stylesheet that uses the features a modern parser has to understand: custom properties, a grid layout, a media query for dark mode, and a feature query. It is short enough to read in full, so when a tool mangles it you can see exactly what changed.

Nothing here reaches the network. There is no @import, no web font and no background image pointing at another host, which means the file behaves identically offline and cannot quietly become a request you did not expect. A validator checks that on every build.

Use it to test CSS parsers, bundlers, style sanitisers and upload forms that accept .css. It is served as text/css with UTF-8. Related formats: HTML and JavaScript.

1 file. The same list as JSON: https://loremfile.dev/css/index.json

CSS files
FileSizePropertiesDescription
basic.css 579 B A small stylesheet with custom properties, a grid layout, a media query for dark mode and a feature query.
Snippets
curl -O https://loremfile.dev/css/basic.css
<a href="https://loremfile.dev/css/basic.css">download</a>

File names follow the naming grammar. Verify a download against sha256sums.txt.