Skip to content

Commit

Permalink
refactor(shiraha-ve): πŸ’„ update text-wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Oct 26, 2023
1 parent 73467fc commit fdebe0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/shiraha-ve/src/base/html.global.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ globalStyle('html', {
lineHeight: 1.5,
overflowWrap: 'break-word',
tabSize: 4,
textWrap: 'pretty',
wordWrap: 'break-word',
})

Expand Down
17 changes: 5 additions & 12 deletions packages/shiraha-ve/src/typography/heading/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,11 @@ import type { ComplexStyleRule } from '@vanilla-extract/css'
import OP from 'open-props'

export const h = {
'@supports': {
'(text-wrap: pretty)': {
textWrap: 'pretty',
},
'not (text-wrap: pretty)': {
textWrap: 'balance',
},
},
'fontWeight': OP.fontWeight6,
'letterSpacing': '-0.025em',
'paddingBottom': 8,
'scrollMargin': 80,
fontWeight: OP.fontWeight6,
letterSpacing: '-0.025em',
paddingBottom: 8,
scrollMargin: 80,
textWrap: 'balance',
} as const satisfies ComplexStyleRule

export const h123NotFirstChild = {
Expand Down

0 comments on commit fdebe0d

Please sign in to comment.