properties
changelog

Size

Set elements size (width & height) including block and inline.

Usage:

  • @size is-*;
  • @size is-block-*;
  • @size is-inline-*;

Reference

shilp.config.js
const shilpConfig = {
	source: "react",

	properties: {
		size: {
			is: {
				DEFAULT: {
					property: `
						width: <v><i>;
						height: <v><i>;
					`,
					resolve: "spacing",
					themeKey: "spacing",
					values: {
						min: "min-content",
						max: "max-content",
						fit: "fit-content",
					},
				},

				block: {
					property: "block-size: <v><i>;",
					resolve: "spacing",
					themeKey: "spacing",
					values: {
						min: "min-content",
						max: "max-content",
						fit: "fit-content",
					},
				},

				inline: {
					property: "inline-size: <v><i>;",
					resolve: "spacing",
					themeKey: "spacing",
					values: {
						min: "min-content",
						max: "max-content",
						fit: "fit-content",
					},
				},
			},
		},
	},
};

export default shilpConfig;