This release is 2 versions behind 1.0.4 — the latest version of @ryoppippi/unocss-preset. Jump to latest
@ryoppippi/unocss-preset@1.0.2Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
@ryoppippi's opinionated Unocss preset.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
76%
Published
a month ago (1.0.2)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667import { type Preset, definePreset } from 'npm:@unocss/core@^0.62.4'; export function presetRyoppippi(): Preset { return definePreset({ name: 'unocss-preset-starter', shortcuts: [ { fcol: 'flex flex-col', ...{ fxc: 'flex justify-center', fxs: 'flex justify-start', fxe: 'flex justify-end', fxb: 'flex justify-between', fxa: 'flex justify-around', }, ...{ fyc: 'flex items-center', fys: 'flex items-start', fye: 'flex items-end', fyb: 'flex items-baseline', }, fcc: 'flex justify-center items-center', ...{ fw: 'flex flex-wrap', fwr: 'flex flex-wrap-reverse', }, }, { gc: 'grid place-content-center', gcc: 'gc place-items-center', }, [/^fcol-(\w+)-row$/, ([_, size]) => `fcol ${size}:flex-row`], [/^gcc-(\w+)$/, ([_, flowDirection]) => `gcc grid-flow-${flowDirection}`], ], rules: [ [/^sliding-animation$/, function* ([,], { symbols }) { yield ` @keyframes enter { 0% { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } } `; yield { 'opacity': 0, 'animation': `enter 0.6s both`, 'animation-iteration-count': 1, 'animation-delay': `calc(var(--stagger, 0) * var(--delay, 80ms) + var(--start, 0ms))`, }; yield { [symbols.parent]: `@media (prefers-reduced-motion: reduce)`, animation: 'none', }; }], ], }); }