diegohaz / diegohaz/styled-theme
Palette color by index
Open
- Dominant language
- JavaScript
- Stars
- 181
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Is there way to select palette color by index?
```js
// my theme
theme.palette = {
primary: [`#08C4FA`, `#34CEFA`, `#61D9FB`, `#8EE4FC`, `#BBEEFD`]
}
const Span = styled.span`
color: ${palette({grayscale: 0}, 0)};
font-family: ${font(`primary`)};
font-size: ${prop(`size`, `14px`)};
`
Text
// or
Text
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.