From 9a2fc9d9bd240b81ec98b8415129f1d16cb59fcb Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 14 Sep 2023 10:26:20 -0500 Subject: [PATCH] add comments --- src/lib/design-system/themes.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/lib/design-system/themes.ts b/src/lib/design-system/themes.ts index eb73b8474e..3ae3bbc04b 100644 --- a/src/lib/design-system/themes.ts +++ b/src/lib/design-system/themes.ts @@ -49,6 +49,10 @@ export const light = create({ mr: ['marginRight'], my: ['marginTop', 'marginBottom'], mx: ['marginLeft', 'marginRight'], + /** + * Alias for `padding`, maps to all padding properties e.g. `paddingTop`, + * `paddingBottom`, etc. + */ pa: ['paddingTop', 'paddingBottom', 'paddingLeft', 'paddingRight'], pt: ['paddingTop'], pb: ['paddingBottom'], @@ -83,6 +87,9 @@ export const light = create({ tar: (_: boolean) => ({textAlign: 'right'}), mxa: (_: boolean) => ({marginLeft: 'auto', marginRight: 'auto'}), mya: (_: boolean) => ({marginTop: 'auto', marginBottom: 'auto'}), + /** + * Macro for applying `{ textTransform: 'uppercase' }` to a style. + */ caps: (_: boolean) => ({textTransform: 'uppercase'}), font(value: 'sans' | 'mono', tokens) { return {