diff --git a/.jest.config.js b/.jest.config.js index 9966cc8..a02add0 100644 --- a/.jest.config.js +++ b/.jest.config.js @@ -19,6 +19,7 @@ module.exports = { '!components/**/styles.{ts,tsx}', '!components/styles/*', '!components/index.ts', + '!components/utils/*', ], "moduleNameMapper": { diff --git a/components/styles/__tests__/__snapshots__/baseline.test.tsx.snap b/components/styles/__tests__/__snapshots__/baseline.test.tsx.snap index b525e59..cb089f2 100644 --- a/components/styles/__tests__/__snapshots__/baseline.test.tsx.snap +++ b/components/styles/__tests__/__snapshots__/baseline.test.tsx.snap @@ -248,6 +248,23 @@ initialize { list-style: none; } + blockquote { + padding: calc(.667 * 16pt) 16pt; + color: #666; + background-color: #fafafa; + border-radius: 5px; + margin: 1.5rem 0; + border: 1px solid #eaeaea; + } + + blockquote :global(*:first-child) { + margin-top: 0; + } + + blockquote :global(*:last-child) { + margin-bottom: 0; + } + ::selection { background-color: #79ffe1; color: #000; @@ -541,6 +558,23 @@ initialize { list-style: none; } + blockquote { + padding: calc(.667 * 16pt) 16pt; + color: #888; + background-color: #111; + border-radius: 5px; + margin: 1.5rem 0; + border: 1px solid #333; + } + + blockquote :global(*:first-child) { + margin-top: 0; + } + + blockquote :global(*:last-child) { + margin-bottom: 0; + } + ::selection { background-color: #f81ce5; color: #fff; diff --git a/components/styles/css-baseline/css-baseline.tsx b/components/styles/css-baseline/css-baseline.tsx index 4f47588..53230f1 100644 --- a/components/styles/css-baseline/css-baseline.tsx +++ b/components/styles/css-baseline/css-baseline.tsx @@ -253,6 +253,23 @@ const CSSBaseline: React.FC> = React.memo(({ list-style: none; } + blockquote { + padding: calc(.667 * ${theme.layout.gap}) ${theme.layout.gap}; + color: ${theme.palette.accents_5}; + background-color: ${theme.palette.accents_1}; + border-radius: ${theme.layout.radius}; + margin: 1.5rem 0; + border: 1px solid ${theme.palette.border}; + } + + blockquote :global(*:first-child) { + margin-top: 0; + } + + blockquote :global(*:last-child) { + margin-bottom: 0; + } + ::selection { background-color: ${theme.palette.selection}; color: ${theme.palette.foreground}; diff --git a/components/text/__tests__/__snapshots__/index.test.tsx.snap b/components/text/__tests__/__snapshots__/index.test.tsx.snap index f6ef3ae..82f9922 100644 --- a/components/text/__tests__/__snapshots__/index.test.tsx.snap +++ b/components/text/__tests__/__snapshots__/index.test.tsx.snap @@ -81,11 +81,7 @@ exports[`Text the specified element should be rendered 1`] = ` p { color: inherit; } - test-valuetest-value