Skip to content

Instantly share code, notes, and snippets.

@seanogdev
Created February 12, 2024 19:24
Show Gist options
  • Save seanogdev/ae1dfc8b7f304ec92c24c6c510957210 to your computer and use it in GitHub Desktop.
Save seanogdev/ae1dfc8b7f304ec92c24c6c510957210 to your computer and use it in GitHub Desktop.
Regex to find all CSS atoms
class(?=="(bg-size--cover|bg-size--contain|bg-position--center|bg-position--right|bg-position--bottom|bg-repeat--none|bg-repeat--y|bg-repeat--x|border--default|border-top--default|border-right--default|border-bottom--default|border-left--default|border--thick|border-top--thick|border-right--thick|border-bottom--thick|border-left--thick|border--none|border-top--none|border-right--none|border-bottom--none|border-left--none|border-color--default|border-color--accent|border-color--#fff|cursor--move|cursor--pointer|cursor--default|color--inherit|color--accent|color--muted|font-size--tiny|font-size--small|font-size--medium|font-size--large|font-size--default|font-size--inherit|font-weight--light|font-weight--semi-bold|font-weight--bold|font-weight--normal|flex|flex-inline|flex-column|flex-wrap|flex-items-start|flex-items-end|flex-items-center|flex-items-baseline|flex-items-stretch|flex-self-start|flex-self-end|flex-self-center|flex-self-baseline|flex-self-stretch|flex-justify-start|flex-justify-end|flex-justify-center|flex-justify-between|flex-justify-around|flex-content-start|flex-content-end|flex-content-center|flex-content-between|flex-content-around|flex-content-stretch|flex-auto|flex-none|flex-order--0|flex-order--1|flex-order--2|flex-order--last|height--100|height--50|height--inherit|inline|block|none|inline-block|border-box|content-box|max-width--100|max-width--50|width--100|width--50|width--inherit|m--tiny|mt--tiny|mr--tiny|mb--tiny|ml--tiny|my--tiny|mx--tiny|m--small|mt--small|mr--small|mb--small|ml--small|my--small|mx--small|m--medium|mt--medium|mr--medium|mb--medium|ml--medium|my--medium|mx--medium|m--large|mt--large|mr--large|mb--large|ml--large|my--large|mx--large|m--auto|mt--auto|mr--auto|mb--auto|ml--auto|my--auto|mx--auto|m--none|mt--none|mr--none|mb--none|ml--none|my--none|mx--none|p--tiny|pt--tiny|pr--tiny|pb--tiny|pl--tiny|py--tiny|px--tiny|p--small|pt--small|pr--small|pb--small|pl--small|py--small|px--small|p--medium|pt--medium|pr--medium|pb--medium|pl--medium|py--medium|px--medium|p--large|pt--large|pr--large|pb--large|pl--large|py--large|px--large|p--none|pt--none|pr--none|pb--none|pl--none|py--none|px--none|relative|absolute|fixed|radius--none|radius-top--none|radius-right--none|radius-bottom--none|radius-left--none|radius--tiny|radius-top--tiny|radius-right--tiny|radius-bottom--tiny|radius-left--tiny|radius--small|radius-top--small|radius-right--small|radius-bottom--small|radius-left--small|radius--medium|radius-top--medium|radius-right--medium|radius-bottom--medium|radius-left--medium|radius--circle|overflow-x--scroll|overflow-y--scroll|overflow-x--auto|overflow-y--auto|overflow--scroll|overflow--auto|overflow--hidden|text--left|text--center|text--right|text--justify|ellipsis|text-decoration--underline|text-decoration--none|list-reset|italic|lowercase|uppercase|capitalize|vertical-align--baseline|vertical-align--top|vertical-align--middle|vertical-align--middle|vertical-align--bottom|nowrap|z--negative|z--1|z--50|z--100|clearfix:after
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment