diff --git a/.changeset/grumpy-turkeys-crash.md b/.changeset/grumpy-turkeys-crash.md new file mode 100644 index 00000000..4515bd12 --- /dev/null +++ b/.changeset/grumpy-turkeys-crash.md @@ -0,0 +1,5 @@ +--- +'@jpmorganchase/mosaic-theme': patch +--- + +Reduce the size of the baseline CSS file diff --git a/packages/theme/src/baseline/baseline.css.ts b/packages/theme/src/baseline/baseline.css.ts index 5f0a1edb..7e09bc12 100644 --- a/packages/theme/src/baseline/baseline.css.ts +++ b/packages/theme/src/baseline/baseline.css.ts @@ -1,5 +1,5 @@ import { globalStyle } from '@vanilla-extract/css'; -import { ssrClassName } from '../index'; +import { ssrClassName } from '../ssrClassName'; globalStyle('html, body', { fontFamily: 'var(--salt-text-fontFamily, "Open Sans")', diff --git a/packages/theme/src/index.ts b/packages/theme/src/index.ts index 8821dbec..a0228d1c 100644 --- a/packages/theme/src/index.ts +++ b/packages/theme/src/index.ts @@ -11,7 +11,7 @@ import { import { shadow } from './shadow'; import { vars } from './vars.css'; -export const ssrClassName = 'mosaic-ssr'; +export * from './ssrClassName'; export { themeClassName, vars } from './vars.css'; export * from './animation'; export * from './blockquote'; diff --git a/packages/theme/src/ssrClassName.ts b/packages/theme/src/ssrClassName.ts new file mode 100644 index 00000000..e1734c00 --- /dev/null +++ b/packages/theme/src/ssrClassName.ts @@ -0,0 +1 @@ +export const ssrClassName = 'mosaic-ssr';