Skip to content

Instantly share code, notes, and snippets.

@ademilter
Created March 9, 2020 16:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ademilter/4c35e0e54e545ea16fd7bf691d401b02 to your computer and use it in GitHub Desktop.
Save ademilter/4c35e0e54e545ea16fd7bf691d401b02 to your computer and use it in GitHub Desktop.
theme for styled-system
const toPx = value => `${value}px`
export const colors = {
dark: 'rgb(38, 49, 67)',
white: 'rgba(255, 255, 255, 1)',
black: 'rgba(0, 0, 0, 1)'
}
export const space = []
export const size = {
finger: 46
}
export const sizes = {
finger: toPx(size.finger)
}
export const fonts = {
// light: 'Custom-Typeface'
}
export const lineHeights = []
export const fontSize = {
small: 14,
normal: 16
}
export const fontSizes = {
small: toPx(fontSize.small),
normal: toPx(fontSize.normal)
}
export const radii = {
zero: 0,
normal: 3,
big: 10,
full: 9999,
}
export default {
space,
colors,
sizes,
fonts,
fontSizes,
lineHeights,
radii
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment