# All files / src/Pill Pill.colorPalette.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    5125x

    25x

     import { colors } from '../_styles/colors'
    import { PillColor } from './Pill.types'

    interface ColorField {
      backgroundColor: string
      borderColor: string
      color: string
    }
    export const PillColorPalets: Record<PillColor, ColorField> = {
      blue: {
        backgroundColor: colors.blue94,
        borderColor: colors.blue85,
        color: colors.blue45,
      },
      cyan: {
        backgroundColor: colors.cyan94,
        borderColor: colors.cyan85,
        color: colors.cyan30,
      },
      gray: {
        backgroundColor: colors.gray94,
        borderColor: colors.gray85,
        color: colors.gray30,
      },
      green: {
        backgroundColor: colors.green94,
        borderColor: colors.green70,
        color: colors.green30,
      },
      magenta: {
        backgroundColor: colors.magenta94,
        borderColor: colors.magenta85,
        color: colors.magenta40,
      },
      red: {
        backgroundColor: colors.red94,
        borderColor: colors.red85,
        color: colors.red45,
      },
      UNSAFE_orange: {
        backgroundColor: colors.orange98,
        borderColor: colors.orange85,
        color: colors.orange40,
      },
      yellow: {
        backgroundColor: colors.yellow90,
        borderColor: colors.yellow60,
        color: colors.orange30,
      },
    }