properties
changelog

Width

Set element's width.

Usage:

  • @size w-*;

Reference

shilp.config.js
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;