Skip to content

Commit f87d421

Browse files
authored
Merge pull request #765 from hasparus/ts-size
fix(@theme-ui/css): add `size` to AliasesCSSProperties
2 parents 629b154 + 6b93a30 commit f87d421

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

packages/css/src/types.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,16 @@ interface AliasesCSSProperties {
299299
* @see https://developer.mozilla.org/docs/Web/CSS/padding-bottom
300300
*/
301301
paddingY?: StandardCSSProperties['paddingTop']
302+
// TODO: Move me to `MultiplesCSSProperties type and colocate it with the
303+
// multiples object possibly.
304+
/**
305+
* The **`size`** is a shorthand property for CSS properties **`width`** and **`height`**.
306+
*
307+
* @see https://theme-ui.com/sx-prop#theme-aware-properties
308+
* @see https://developer.mozilla.org/docs/Web/CSS/width
309+
* @see https://developer.mozilla.org/docs/Web/CSS/height
310+
*/
311+
size?: StandardCSSProperties['width']
302312
}
303313

304314
interface OverwriteCSSProperties {

0 commit comments

Comments
 (0)