yeun / open-color

Color scheme for UI design.
https://yeun.github.io/open-color/
MIT License
5.29k stars 243 forks source link

Typings for typescript #74

Closed Rokt33r closed 6 years ago

Rokt33r commented 7 years ago

I don't have a time to create a PR.(To be honest, I don't know how to test these types.) But, there should be someone need this!

type Color = string

declare module 'open-color' {
  interface OpenColor {
    white: Color
    black: Color
    gray: Color[]
    red: Color[]
    pink: Color[]
    grape: Color[]
    violet: Color[]
    indigo: Color[]
    blue: Color[]
    cyan: Color[]
    teal: Color[]
    green: Color[]
    lime: Color[]
    yellow: Color[]
    orange: Color[]
  }
  const OpenColor: OpenColor
  export default OpenColor
}