Skip to main content
This release is 2 versions behind 1.0.4 — the latest version of @ryoppippi/unocss-preset. Jump to latest

Built and signed on GitHub Actions

@ryoppippi's opinionated Unocss preset.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
76%
Published
a month ago (1.0.2)
Package root>src>index.ts
import { 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', }; }], ], }); }