-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update Container, Section, Typography to new artifak api
- Loading branch information
Showing
3 changed files
with
90 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import { theme } from '../theme'; | ||
import { createBlockComponents } from 'artifak'; | ||
|
||
const styles = { | ||
const settings = { | ||
Container: { | ||
margin: '0 auto', | ||
maxWidth: theme.container | ||
styles: { | ||
margin: '0 auto', | ||
maxWidth: theme.container | ||
} | ||
} | ||
}; | ||
|
||
export const { Container } = createBlockComponents<typeof styles>(styles); | ||
export const { Container } = createBlockComponents<typeof settings>(settings); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import { createBlockComponents } from 'artifak'; | ||
|
||
const styles = { | ||
const settings = { | ||
Section: { | ||
marginBottom: ['1.5em', '5em'], | ||
as: 'section' | ||
styles: { | ||
marginBottom: ['1.5em', '5em'], | ||
as: 'section' | ||
} | ||
} | ||
}; | ||
|
||
export const { Section } = createBlockComponents<typeof styles>(styles); | ||
export const { Section } = createBlockComponents<typeof settings>(settings); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters