Skip to content

Commit

Permalink
Baseline css size (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavieReid authored Aug 20, 2024
1 parent d138bcf commit e610431
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-turkeys-crash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@jpmorganchase/mosaic-theme': patch
---

Reduce the size of the baseline CSS file
2 changes: 1 addition & 1 deletion packages/theme/src/baseline/baseline.css.ts
Original file line number Diff line number Diff line change
@@ -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")',
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions packages/theme/src/ssrClassName.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const ssrClassName = 'mosaic-ssr';

0 comments on commit e610431

Please sign in to comment.