css-doodle
Advanced tools
Changelog
0.30.1
@m
function.
::after {
/* 5 4 3 2 1 */
content: @M5-1.@n;
}
<br /> <br />
Changelog
0.30.0
Add exports.
import CSSDoodle from 'css-doodle';
import { svg, shape } from 'css-doodle/generator';
import { tokenizer } from 'css-doodle/parser';
document.appendChild(CSSDoodle`
@grid: 10 / 200px;
background: @p(red, blue);
margin: 1px;
`);
let code = svg(`
viewBox: 0 0 10 10;
circle {
cx, cy, r: 5;
}
`);
let polygon = shape(`
points: 200;
r: sin(t);
`);
let tokens = tokenizer.scan(`
color: red
`);
<br /> <br />
Changelog
0.29.2
Plot
function for unitless points.times
operator.<br /> <br />
Changelog
0.29.1
use
attribute to support rules in pure string.
<css-doodle use="@grid: 5 / 200px"></css-doodle>
<br /> <br />
Changelog
0.29.0
Add Emmet-like syntax for generating SVG element.
line*10 {
}
Equals to
@M10(line {
})
<br /> <br />
Changelog
0.28.2
@place
alias for @position
.@svg-filter
to add blur
, erode
, and dilate
commands.<br /> <br />
Changelog
0.28.1
@doodle
function.<br /> <br />
Changelog
0.28.0
64x64
.
It can be up to 256x256
if the experimental
attribute is provided (#91)title
and desc
element (#92)@svg-filter
and @rn
(#95)<br /> <br />