Skip to content

Commit

Permalink
Adjust docs colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jxnblk committed Jun 23, 2018
1 parent 30bac08 commit aab0226
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
10 changes: 8 additions & 2 deletions docs/_build.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ${props.map(prop => (
`)).join('\n')}
`.replace(/\n\n+/g, '\n\n')

const blacklist = {
const propBlacklist = {
m: true,
mt: true,
mr: true,
Expand All @@ -66,7 +66,13 @@ const blacklist = {
f: true,
}

const moduleBlacklist = {
createColors: true,
invertTheme: true,
}

const components = keys
.filter(key => !moduleBlacklist[key])
.map(key => {
const Component = Rebass[key]
const {
Expand All @@ -87,7 +93,7 @@ const components = keys
}

const props = Object.keys(propTypes)
.filter(key => !blacklist[key])
.filter(key => !propBlacklist[key])
.map(key => ({
name: key
}))
Expand Down
10 changes: 5 additions & 5 deletions docs/colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,20 +28,20 @@ export default props =>
Theming can be completely customized using the <Link href='theming'>Provider</Link> component.
</P>
<Flex
mx={-3}
mx={-2}
justifyContent='space-between'
flexWrap='wrap'>
{keys.map(key => (
<Box key={key} p={3}>
<Box key={key} p={2}>
<Box
p={[ 4, 5 ]}
width={128}
p={5}
bg={colors[key]}
/>
<Text fontSize={1}>
{key}
{' '}
<Code fontSize={10}>{colors[key]}</Code>
</Text>
<Pre fontSize={10}>{colors[key]}</Pre>
</Box>
))}
</Flex>
Expand Down
3 changes: 0 additions & 3 deletions docs/components/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<ul>
<li><a href='#flex'>Flex</a></li>
<li><a href='#box'>Box</a></li>
<li><a href='#createcolors'>createColors</a></li>
<li><a href='#base'>Base</a></li>
<li><a href='#css'>CSS</a></li>
<li><a href='#root'>Root</a></li>
Expand Down Expand Up @@ -122,8 +121,6 @@
- `order`
- `alignSelf`

## createColors

## Base

### Props
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"devDependencies": {
"@compositor/kit": "^1.0.43",
"@compositor/kit-snapshot": "^1.0.24",
"@compositor/x0": "^6.0.0-3",
"@compositor/x0": "^6.0.0-4",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-plugin-transform-rename-import": "^2.2.0",
Expand Down

0 comments on commit aab0226

Please sign in to comment.