GitShow/sindresorhus/css-extras
sindresorhus

css-extras

Useful CSS custom functions using the new @​function rule

by sindresorhus
Star on GitHubFork

CSS

970 stars15 forks3 contributorsQuiet · 5mo agoSince 2025v0.4.0CC0-1.0

Meet the team

See all 3 on GitHub →
sindresorhus
sindresorhus14 contributions
AmeroHan
AmeroHan1 contribution
nathanstone
nathanstone1 contribution

Languages

View on GitHub →
CSS41.3%
HTML32.7%
JavaScript26%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
nathanstone
Add example outputs to functions docMergedPR

Each example now includes a comment showing what the CSS output would be or describing the behavior. The outputs help users understand: Exact values for mathematical functions (e.g., --negate(1em) → -1em) Color transformations with color space notation (e.g., oklab(), oklch(), rgb()) Responsive behaviors for fluid functions (e.g., viewport-based scaling) Descriptive outputs for complex functions (e.g., multi-layered shadows, elastic easing)

nathanstone · 7mo ago
The-Best-Codes
Demo site doesn't look good in dark mode 😢ClosedIssue

The demo site at https://sindresorhus.com/css-extras/example.html looks great in light mode but it has bad contrast in dark mode:

The-Best-Codes · 8mo ago
AmeroHan
feat: `--ratio()` - the ratio between two valuesMergedPR

This PR adds a function that calculates the proportion of two values (`calc( / )calc()transform: scale(tan(atan2(, )));viewBoxtan(atan2(, ))--proportion()` function in this PR does.

AmeroHan · 9mo ago
Structured data for AI agents

Repository: sindresorhus/css-extras. Description: Useful CSS custom functions using the new @​function rule Stars: 970, Forks: 15. Primary language: CSS. Languages: CSS (41.3%), HTML (32.7%), JavaScript (26%). License: CC0-1.0. Latest release: v0.4.0 (8mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 71%. Top contributors: sindresorhus, AmeroHan, nathanstone.

·@ofershap

Replace github.com with gitshow.dev