Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
sastan committed Dec 9, 2020
1 parent d47a597 commit fc72613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/typography/src/index.ts
Expand Up @@ -6,7 +6,7 @@ export interface Options {

declare module '@tw-in-js/types' {
interface Theme {
typography: ThemeSection<{ css?: CSSRules }>
typography?: ThemeSection<{ css?: CSSRules }>
}
}

Expand All @@ -30,6 +30,7 @@ const typography = ({ className = 'prose' }: Options = {}): Record<string, Plugi
const { css } = config[parameters[0] || 'DEFAULT'] || {}

if (css) {
// TODO merge with styles from theme.typography
const rules: CSSRules = {}

css.forEach((css) =>
Expand All @@ -45,7 +46,6 @@ const typography = ({ className = 'prose' }: Options = {}): Record<string, Plugi
}),
)

console.log(rules)
return rules
}
},
Expand Down

0 comments on commit fc72613

Please sign in to comment.