All files / packages/ui/src/themes colors.ts

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

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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 18624x         24x         24x         24x                               24x           24x         24x                                         24x             24x                     24x                                                                                                                                                                                                   24x         24x  
const redPallet = {
  red90: "#C93A3A",
  red80: "#F3513D",
};
 
const greenPallet = {
  green90: "#34A853",
  green80: "#0BBAA0",
};
 
const yellowPallet = {
  yellow90: "#FBBC05",
  yellow80: "#FFC36A",
};
 
const grayPallet = {
  gray100: "#000000", // Black
  gray90: "#383337", // Dark gray/black
  gray80: "#737373", // Medium gray
  gray70: "#817F7F", // Modal gray
  gray60: "#868686", // Medium gray badge
  gray50: "#959595", // Dark gray badge
  gray40: "#A1A1A1", // Light gray text
  gray30: "#ACACAC", // Button background
  gray25: "#C4C4C4",
  gray20: "#BFBFBF", // Main background gray
  gray15: "#EBEBEB", // Screen muted background
  gray10: "#D3D3D3", // Light gray
  gray5: "#D9D9D9", // Light gray
};
 
const bluePallet = {
  blue100: "#132b8c", // Dark blue
  blue90: "#1D3B79", // Dark blue border
  blue80: "#007AFF", // iOS blue
};
 
const whitePallet = {
  white: "#FFFFFF",
  white50: "#E9EAEB",
};
 
const slatePallet = {
  slate100: "#3E4555",
  slate97: "#404653",
  slate95: "#424959",
  slate90: "#434B5C",
  slate85: "#474E5E",
  slate80: "#4F5665",
  slate75: "#5A6170",
  slate70: "#606775",
  slate60: "#8D929D",
  slate50: "#A1A3A9",
  slate45: "#A4AAB5",
  slate40: "#B3B6BC",
  slate35: "#B6BAC2",
  slate30: "#C1C3C9",
  slate25: "#C3C5CB",
  slate20: "#C9CCD2",
  slate15: "#D0D3D9",
  slate10: "#F4F4F5",
} as const;
 
const requestCategoryPallet = {
  requestCategoryTimeOff: "#404653",
  requestCategoryBookRoom: "#C7C9CD",
  requestCategoryMaintenance: "#D7D7D7",
  requestCategoryReallocation: "#9FA1A6",
} as const;
 
export const pallets = {
  ...grayPallet,
  ...bluePallet,
  ...whitePallet,
  ...slatePallet,
  ...requestCategoryPallet,
  ...greenPallet,
  ...redPallet,
  ...yellowPallet,
} as const;
 
export const lightColors = {
  ...pallets,
  // Background colors
  background: {
    default: pallets.white,
    page: pallets.white,
    pageMuted: pallets.gray15,
    primary: pallets.gray20,
    secondary: pallets.white,
    tertiary: pallets.gray10,
    selectedStrong: pallets.slate97,
    card: pallets.slate10,
    selected: pallets.slate90,
    mask: pallets.slate60,
    error: pallets.red80,
    success: pallets.green80,
    warning: pallets.yellow80,
    info: pallets.blue80,
    dark: pallets.gray90,
    modal: pallets.gray70,
    disabled: pallets.white50,
    overlay: "rgba(129, 127, 127, 0.95)",
  },
  // Text colors
  text: {
    default: pallets.gray90,
    primary: pallets.gray90,
    secondary: pallets.gray100,
    tertiary: pallets.gray40,
    heading: pallets.slate97,
    muted: pallets.slate85,
    placeholder: pallets.slate50,
    disabledSoft: pallets.slate40,
    disabled: pallets.slate30,
    emphasis: pallets.slate100,
    white: pallets.white,
    dark: pallets.gray100,
    success: pallets.green90,
    error: pallets.red80,
    warning: pallets.yellow80,
    info: pallets.blue80,
  },
  // Badge/Button colors
  badge: {
    dark: pallets.gray50,
    light: pallets.gray10,
    medium: pallets.gray60,
    border: pallets.gray80,
    button: pallets.gray30,
    dot: pallets.gray5,
  },
  // Border colors
  border: {
    default: pallets.gray10,
    primary: pallets.gray90,
    secondary: pallets.gray100,
    tertiary: pallets.blue80,
    subtle: pallets.slate35,
    strong: pallets.slate70,
    divider: pallets.slate20,
    slot: pallets.slate25,
    slotDisabled: pallets.slate15,
    disabled: pallets.gray30,
  },
  // Shadow colors
  shadow: {
    black: pallets.gray100,
    default: pallets.gray100,
  },
  // UI colors
  ui: {
    blue: pallets.blue80,
    darkBlue: pallets.blue100,
  },
  // Icon colors
  icon: {
    default: pallets.gray90,
    primary: pallets.white,
    active: pallets.blue80,
    inactive: pallets.gray40,
    subtle: pallets.slate45,
    strong: pallets.slate75,
    emphasis: pallets.slate80,
    success: pallets.green80,
    error: pallets.red80,
  },
  requestCategory: {
    timeOff: pallets.requestCategoryTimeOff,
    bookRoom: pallets.requestCategoryBookRoom,
    maintenance: pallets.requestCategoryMaintenance,
    reallocation: pallets.requestCategoryReallocation,
  },
  skeleton: {
    default: pallets.gray20,
    active: pallets.gray10,
  },
};
 
export const darkColors = {
  ...lightColors,
  // Overwrite for dark mode when defined
};
 
export const colors = lightColors;