properties
changelog

Width

Set element's width.

Usage:

  • @size w-*;

Reference

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

  properties: {
    size: {
      w: {
        property: "width: <v><i>;",
        resolve: "spacing",
        themeKey: "spacing",
        values: {
          min: "min-content",
          max: "max-content",
          fit: "fit-content",
          screen: "100vw",
          stretch: "stretch",
        },
      },
    },
  },
};

export default shilpConfig;

Published at:

Last updated at: