LEGO color definitions for lightningcss-plugin-extended-colors
npm install @lightningcss-plugin-extended-colors/legoLEGO color definitions for lightningcss-plugin-extended-colors. This collection includes 265 named colors from the LEGO brand.
``bash`
npm install lightningcss-plugin-extended-colors @lightningcss-plugin-extended-colors/lego
`ts
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] })
])
});
See the full color chart for all 265 colors.
- Lego - Collection of named colors from the LEGO brand