Skip to content

Commit

Permalink
feat: add option to center container class unocss/unocss#1180
Browse files Browse the repository at this point in the history
  • Loading branch information
MellowCo committed Jul 9, 2022
1 parent 67d7362 commit f3dbdc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Expand Up @@ -11,6 +11,8 @@ export { parseColor } from './utils'

export type { ThemeAnimation, Theme }

// v0.41.2

export interface PresetMiniOptions extends PresetOptions {
/**
* @default 'class'
Expand Down
4 changes: 4 additions & 0 deletions src/theme/types.ts
Expand Up @@ -52,6 +52,10 @@ export interface Theme {
gridRow?: Record<string, string>
gridTemplateColumn?: Record<string, string>
gridTemplateRow?: Record<string, string>
// container
container?: {
center?: boolean
}
// vars
/** Used to generate CSS variables placeholder in preflight */
preflightBase?: Record<string, string | number>
Expand Down

0 comments on commit f3dbdc1

Please sign in to comment.