Skip to content

Commit

Permalink
refactor(shiraha-ve): πŸ’„ update styles
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Sep 28, 2023
1 parent 60d3ea4 commit 5f56e3c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/shiraha-ve/src/typography/paragraph/global.css.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { globalStyle } from '@vanilla-extract/css'
import OP from 'open-props'

globalStyle('p', {
fontSize: OP.fontSize1,
// TODO: margin
})
import * as styles from './style'

globalStyle('p', styles.p)

globalStyle('p:not(:first-child)', styles.pNotFirstChild)
11 changes: 11 additions & 0 deletions packages/shiraha-ve/src/typography/paragraph/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { ComplexStyleRule } from '@vanilla-extract/css'

import OP from 'open-props'

export const p = {
fontSize: OP.fontSize1,
} as const satisfies ComplexStyleRule

export const pNotFirstChild = {
marginTop: 16,
} as const satisfies ComplexStyleRule
10 changes: 10 additions & 0 deletions packages/shiraha-ve/src/typography/paragraph/vanilla.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { style } from '@vanilla-extract/css'

import * as styles from './style'

export const p = style({
...styles.p,
selectors: {
'&:not(:first-child)': styles.pNotFirstChild,
},
})

0 comments on commit 5f56e3c

Please sign in to comment.