// Auto-generated by: pnpm test:stylesheets:update import { join } from 'node:path'; import { compileLessWithTokens } from '../../../scripts/testStylesheets/compileLessWithTokens'; import { DEFAULT_LESS_PRELUDES, DEFAULT_TOKEN_CSS_FILES } from '../../../scripts/testStylesheets/config'; describe('components/Typography/headings.less stylesheet snapshot', () => { it('compiled CSS with tokens inlined', async () => { const css = await compileLessWithTokens(join(__dirname, 'headings.less'), DEFAULT_TOKEN_CSS_FILES, { lessPreludes: DEFAULT_LESS_PRELUDES, }); expect(css).toMatchTokensInlineSnapshot(` h1, h2, h3, h4, h5, h6 { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } h1 { clear: both; margin: 0 0 0.834em; font-family: 'Inter Display', 'Arial', sans-serif; font-size: 26px; font-weight: 400; line-height: 32px; color: oklch(0.7247 0.1478 233.0429); letter-spacing: 0px; } h1 strong { font-weight: 400; color: oklch(0.7249 0.1526 128.9646); } h1:nth-child(n+2) { margin-top: 0.834em; } @media only screen and (min-width: 576px) { h1 { font-family: 'Inter Display', 'Arial', sans-serif; font-size: 36px; font-weight: 400; line-height: 46px; letter-spacing: 0px; } } h2 { overflow: hidden; margin: 0 0 0.5em; font-family: 'Inter Display', 'Arial', sans-serif; font-size: 22px; font-weight: 400; line-height: 28px; color: oklch(0.7247 0.1478 233.0429); letter-spacing: 0px; } h2::after { content: ""; display: inline-block; width: 100%; margin-right: -100%; margin-left: 15px; vertical-align: middle; border-bottom: 1px solid oklch(0.8761 0 none); } h2:nth-child(n+2) { margin-top: 1.5em; } h3 { margin: 0 0 0.5em; font-family: 'Inter Display', 'Arial', sans-serif; font-size: 18px; font-weight: 400; line-height: 24px; color: oklch(0 0 none); letter-spacing: 0px; } h3:nth-child(n+2) { margin-top: 1.7em; } h4 { margin: 0 0 0.5em; font-family: 'Inter Display', 'Arial', sans-serif; font-size: 16px; font-weight: 400; line-height: 24px; color: oklch(0 0 none); letter-spacing: 0px; } h4:nth-child(n+2) { margin-top: 0.834em; } h5, h6 { margin: 0 0 0.5em; font-family: 'Inter Display', 'Arial', sans-serif; font-size: 12px; font-weight: 400; line-height: 14px; color: oklch(0 0 none); letter-spacing: 0px; } h5:nth-child(n+2), h6:nth-child(n+2) { margin-top: 1em; } `); }); });