@lightningcss-plugin-extended-colors/lego
v1.0.1
Published
LEGO color definitions for lightningcss-plugin-extended-colors
Readme
@lightningcss-plugin-extended-colors/lego
LEGO color definitions for lightningcss-plugin-extended-colors. This collection includes 265 named colors from the LEGO brand.
Installation
npm install lightningcss-plugin-extended-colors @lightningcss-plugin-extended-colors/legoUsage
import { transform, composeVisitors } from 'lightningcss';
import extendedColorsVisitor from 'lightningcss-plugin-extended-colors';
import lego from '@lightningcss-plugin-extended-colors/lego';
let res = transform({
filename: 'test.css',
minify: true,
code: Buffer.from(`
.foo {
color: brightred;
background: darkturquoise;
}
`),
visitor: composeVisitors([
extendedColorsVisitor({ colorspaces: [lego] })
])
});Available Colors
See the full color chart for all 265 colors.
Data Source
- Lego - Collection of named colors from the LEGO brand
