https://github.com/fpapado/lightning-css-oklch-downleveling
lightning-css-oklch-downleveling
https://github.com/fpapado/lightning-css-oklch-downleveling
Last synced: 5 months ago
JSON representation
lightning-css-oklch-downleveling
- Host: GitHub
- URL: https://github.com/fpapado/lightning-css-oklch-downleveling
- Owner: fpapado
- Created: 2023-03-17T13:57:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-17T13:57:36.000Z (over 3 years ago)
- Last Synced: 2025-06-22T08:44:58.621Z (12 months ago)
- Language: HTML
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `oklch()`/`oklab()` downleveling with lightningcss
This repo contains some examples (WIP) of downleveling/transpiling the numeric and percentage values of the `oklch()`/`oklab()` CSS colour functions.
## Prerequisites
You will need [node](https://nodejs.org/en) and [npm](https://www.npmjs.com/).
Then, in a terminal:
```shell
# Install dependencies
npm ci
# Run the matrix test with the syntaxes
npm test
```