-
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.
Merge pull request #12 from heyjul3s/documentation
Documentation
- Loading branch information
Showing
34 changed files
with
646 additions
and
524 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { systemExtensionUsage } from '../customisation/systemExtensionUsage'; |
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
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
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
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,3 +1,2 @@ | ||
export { createStyledComponentUsage } from './createStyledComponentUsage'; | ||
export { createBaseComponentsUsage } from './createBaseComponentsUsage'; | ||
export { systemExtensionUsage } from './systemExtensionUsage'; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const and = ` | ||
import { media, screen } from 'artifak'; | ||
import styled from 'styled-components'; | ||
const Badge = styled.div\` | ||
display: none; | ||
margin: 0 auto; | ||
width: 100%; | ||
media({ screen, width: '>= 768px' })\` | ||
display: block; | ||
\` | ||
\`; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export { min } from './min'; | ||
export { max } from './max'; | ||
export { minMax } from './minMax'; | ||
export { and } from './and'; | ||
export { or } from './or'; | ||
export { single } from './single'; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const max = ` | ||
import { media } from 'artifak'; | ||
import styled from 'styled-components'; | ||
const Badge = styled.div\` | ||
display: none; | ||
margin: 0 auto; | ||
width: 100%; | ||
media({ width: '<= 768px' })\` | ||
display: block; | ||
\` | ||
\`; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export const min = ` | ||
import { media } from 'artifak'; | ||
import styled from 'styled-components'; | ||
const Container = styled.div\` | ||
margin: 0 auto; | ||
width: 100%; | ||
media({ width: '>= 768px' })\` | ||
max-width: 680px; | ||
\` | ||
\`; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const minMax = ` | ||
import { media } from 'artifak'; | ||
import styled from 'styled-components'; | ||
const Container = styled.div\` | ||
margin: 0 auto; | ||
width: 100%; | ||
media({ width: '768px >= width <= 1200px' })\` | ||
max-width: 680px; | ||
background: red; | ||
\` | ||
\`; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const or = ` | ||
import { media, screen, landscape } from 'artifak'; | ||
import styled from 'styled-components'; | ||
const Badge = styled.div\` | ||
display: none; | ||
margin: 0 auto; | ||
width: 100%; | ||
media({ screen, width: '<= 768px' }, { landscape })\` | ||
display: block; | ||
\` | ||
\`; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export const single = ` | ||
import { media } from 'artifak'; | ||
import styled from 'styled-components'; | ||
const Badge = styled.div\` | ||
display: none; | ||
margin: 0 auto; | ||
width: 100%; | ||
media({ width: '768px' })\` | ||
display: block; | ||
\` | ||
\`; | ||
`; |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
export const generateWithVariants = ` | ||
import { createStyledComponent, createBaseComponents } from 'artifak'; | ||
import { position, PositionProps } from 'styled-system'; | ||
// if you have default styles you can declare like so: | ||
const baseStyles = { | ||
display: 'block', | ||
width: '100%', | ||
minHeight: '400px' | ||
}; | ||
// Usually you will have them declared in your theme, but as a short example... | ||
const variants = { | ||
variants: { | ||
primary: { | ||
color: 'red'; | ||
}, | ||
secondary: { | ||
color: 'blue'; | ||
} | ||
} | ||
}; | ||
// From here, you can use createStyledComponent to create your | ||
// base styled component with the variants you want. | ||
// "[position]" is a CSS property from styled-system and is included | ||
// here to demonstrate adding custom CSS properties. | ||
// Note that the last argument is optional and defaults to a "DIV" element | ||
const baseBackground = createStyledComponent<PositionProps>(baseStyles, variants, [position], 'div'); | ||
`; |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export { generateWithVariants } from './generateWithVariants'; |
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.