KScript docs
EN

Stylesheets

Sizes

@rem() turns pixels into rem. Its second argument sets the base, 16 unless you say:

CSS
.card { padding: {@rem(24)}; }   /* 1.5rem */

@fluid() scales a value across screen widths: @fluid(28, 48) grows from 28px on a 640px screen to 48px on a 1280px one. Name the end points to choose other widths:

CSS
h1 { font-size: {@fluid(28, 48)}; }
.hero { padding: {@fluid(16, 64, 'sm', 'xl')}; }