properties
changelog

Maks Image Size

Set mask image size.

Usage:

  • @mask size-*;

Reference

shilp.config.js
/** @type {import('shilpcss/types').ShilpConfig} */
const shilpConfig = {
  source: "react",

  properties: {
    mask: {
      size: {
        property: "mask-size: <v><i>;",
        resolve: "spacing",
        themeKey: "spacing",
        values: {
          // mask-size: v | x y;
          auto: "auto",
          contain: "contain",
          cover: "cover",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: