Skip to content

Commit

Permalink
feat: ✨ section style
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Nov 13, 2023
1 parent 58881b1 commit daa85e4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/shiraha-ve/src/typography/section/global.css.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { globalStyle } from '@vanilla-extract/css'

import * as styles from './styles'

globalStyle(':where(section)', styles.section)

globalStyle(':where(section):children', styles.sectionChild)
13 changes: 13 additions & 0 deletions packages/shiraha-ve/src/typography/section/styles.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import type { ComplexStyleRule } from '@vanilla-extract/css'

/** {@link https://www.builder.io/blog/css-gap} */
export const section = {
display: 'flex',
flexDirection: 'column',
gap: 24,
} as const satisfies ComplexStyleRule

export const sectionChild = {
marginBottom: 0,
marginTop: 0,
} as const satisfies ComplexStyleRule

0 comments on commit daa85e4

Please sign in to comment.