Skip to content

An open source design system that's fully customizable and agent ready

TypeScript
10.8 KB
Raw Blame
// Copyright (c) Meta Platforms, Inc. and affiliates.

/**
 * Exact approved Neutral light/dark ramps from merged PR #5628 at
 * b19fc7a740ee43fa52db5555ccd0ac63bd0305d4. This temporary fixture can be
 * replaced by the package export after the #5668 palette-contract stack lands.
 */
export const NEUTRAL_THEME_PALETTE_REFERENCE = {
  neutral: {
    light: {
      0: '#000000',
      5: '#111111',
      10: '#1b1b1b',
      15: '#262626',
      20: '#303030',
      25: '#3b3b3b',
      30: '#474747',
      35: '#525252',
      40: '#5e5e5e',
      45: '#6a6a6a',
      50: '#777777',
      55: '#848484',
      60: '#919191',
      65: '#9e9e9e',
      70: '#ababab',
      75: '#b9b9b9',
      80: '#c6c6c6',
      85: '#d4d4d4',
      90: '#e2e2e2',
      95: '#f1f1f1',
      100: '#ffffff',
    },
    dark: {
      0: '#111111',
      5: '#1b1b1b',
      10: '#262626',
      15: '#303030',
      20: '#3b3b3b',
      25: '#474747',
      30: '#525252',
      35: '#5e5e5e',
      40: '#6a6a6a',
      45: '#777777',
      50: '#848484',
      55: '#919191',
      60: '#9e9e9e',
      65: '#ababab',
      70: '#b9b9b9',
      75: '#c6c6c6',
      80: '#d4d4d4',
      85: '#dedede',
      90: '#e7e7e7',
      95: '#f1f1f1',
      100: '#ffffff',
    },
    description:
      'Pure grayscale foundation for surfaces, text, borders, and neutral states.',
  },
  red: {
    light: {
      0: '#000000',
      5: '#2c0000',
      10: '#3e0002',
      15: '#500004',
      20: '#620008',
      25: '#76000c',
      30: '#8a0011',
      35: '#9e0017',
      40: '#b3001b',
      45: '#c71024',
      50: '#d62830',
      55: '#e53c3e',
      60: '#f44c4b',
      65: '#ff635e',
      70: '#ff7e78',
      75: '#ff9790',
      80: '#ffaea7',
      85: '#ffc4be',
      90: '#ffd8d3',
      95: '#feecea',
      100: '#ffffff',
      hue: 25,
      chroma: 0.0767,
    },
    dark: {
      0: '#2c0000',
      5: '#3e0002',
      10: '#500004',
      15: '#620008',
      20: '#76000c',
      25: '#890012',
      30: '#9b0e1a',
      35: '#ab2126',
      40: '#ba3132',
      45: '#ca3f3e',
      50: '#d94e4a',
      55: '#e85c57',
      60: '#f76a65',
      65: '#f7847d',
      70: '#f99c94',
      75: '#fab1aa',
      80: '#fac5c0',
      85: '#fbd3cf',
      90: '#fce0dc',
      95: '#fcedeb',
      100: '#ffffff',
      hue: 25,
      chroma: 0.0767,
    },
    semantic: 'error',
    description: 'Error, destructive, and red categorical states.',
  },
  orange: {
    light: {
      0: '#000000',
      5: '#200b00',
      10: '#2d1500',
      15: '#3b1e00',
      20: '#492700',
      25: '#583100',
      30: '#673a00',
      35: '#774500',
      40: '#884f00',
      45: '#985900',
      50: '#aa6400',
      55: '#bb6f00',
      60: '#cd7a00',
      65: '#df8600',
      70: '#f19100',
      75: '#f6a44b',
      80: '#f7b87a',
      85: '#f8cba0',
      90: '#faddc2',
      95: '#fbeee3',
      100: '#ffffff',
      hue: 65,
      chroma: 0.0826,
    },
    dark: {
      0: '#200b00',
      5: '#2d1500',
      10: '#3b1e00',
      15: '#492700',
      20: '#583100',
      25: '#673a00',
      30: '#774500',
      35: '#884f00',
      40: '#985900',
      45: '#aa6400',
      50: '#bb6f00',
      55: '#cd7a00',
      60: '#df8600',
      65: '#eb952c',
      70: '#eea75f',
      75: '#f2ba85',
      80: '#f4cca7',
      85: '#f6d8bc',
      90: '#f8e3d1',
      95: '#faefe5',
      100: '#ffffff',
      hue: 65,
      chroma: 0.0826,
    },
    description: 'Orange categorical states.',
  },
  yellow: {
    light: {
      0: '#000000',
      5: '#190f00',
      10: '#251a00',
      15: '#312400',
      20: '#3d2e00',
      25: '#4b3900',
      30: '#584400',
      35: '#664f00',
      40: '#745b00',
      45: '#836700',
      50: '#927300',
      55: '#a17f00',
      60: '#b18c00',
      65: '#c09800',
      70: '#d0a500',
      75: '#e1b300',
      80: '#f1c000',
      85: '#f9d05b',
      90: '#f9e19e',
      95: '#fbf0d3',
      100: '#ffffff',
      hue: 90,
      chroma: 0.1534,
    },
    dark: {
      0: '#190f00',
      5: '#251a00',
      10: '#312400',
      15: '#3d2e00',
      20: '#4b3900',
      25: '#584400',
      30: '#664f00',
      35: '#745b00',
      40: '#836700',
      45: '#927300',
      50: '#a17f00',
      55: '#b18c00',
      60: '#c09800',
      65: '#d0a500',
      70: '#e1b300',
      75: '#f1c000',
      80: '#f4d170',
      85: '#f6dc97',
      90: '#f7e6b8',
      95: '#f9f0d7',
      100: '#ffffff',
      hue: 90,
      chroma: 0.1534,
    },
    semantic: 'warning',
    description: 'Warning and yellow categorical states.',
  },
  green: {
    light: {
      0: '#000000',
      5: '#001800',
      10: '#002401',
      15: '#003004',
      20: '#003d08',
      25: '#004a0c',
      30: '#005711',
      35: '#006516',
      40: '#00731b',
      45: '#008120',
      50: '#009026',
      55: '#079f2b',
      60: '#27ad3c',
      65: '#3dba4b',
      70: '#67c46d',
      75: '#85cd88',
      80: '#a1d7a1',
      85: '#bbe1bb',
      90: '#d2ead2',
      95: '#eaf4ea',
      100: '#ffffff',
      hue: 145,
      chroma: 0.0708,
    },
    dark: {
      0: '#001800',
      5: '#002401',
      10: '#003004',
      15: '#003d08',
      20: '#004a0c',
      25: '#005711',
      30: '#006518',
      35: '#00731c',
      40: '#0c8124',
      45: '#228e31',
      50: '#339c3f',
      55: '#43a94c',
      60: '#53b75a',
      65: '#74c177',
      70: '#8ecb8f',
      75: '#a6d5a6',
      80: '#bedfbe',
      85: '#cee6cd',
      90: '#dcecdb',
      95: '#ebf4eb',
      100: '#ffffff',
      hue: 145,
      chroma: 0.0708,
    },
    semantic: 'success',
    description: 'Success and green categorical states.',
  },
  teal: {
    light: {
      0: '#000000',
      5: '#001612',
      10: '#00221c',
      15: '#002e27',
      20: '#003a31',
      25: '#00463d',
      30: '#005348',
      35: '#006154',
      40: '#006e60',
      45: '#007c6d',
      50: '#008b79',
      55: '#009986',
      60: '#00a893',
      65: '#00b7a1',
      70: '#00c6ae',
      75: '#34d4bc',
      80: '#76dcc9',
      85: '#a2e4d6',
      90: '#c3ede3',
      95: '#e4f5f1',
      100: '#ffffff',
      hue: 180,
      chroma: 0.0767,
    },
    dark: {
      0: '#001612',
      5: '#00221c',
      10: '#002e27',
      15: '#003a31',
      20: '#00463d',
      25: '#005348',
      30: '#006154',
      35: '#006e60',
      40: '#007c6d',
      45: '#008b79',
      50: '#009986',
      55: '#00a893',
      60: '#00b7a1',
      65: '#00c6ae',
      70: '#55d1bb',
      75: '#84dac8',
      80: '#a8e2d6',
      85: '#bee9df',
      90: '#d2eee8',
      95: '#e6f5f1',
      100: '#ffffff',
      hue: 180,
      chroma: 0.0767,
    },
    description: 'Teal categorical states.',
  },
  cyan: {
    light: {
      0: '#000000',
      5: '#00151b',
      10: '#002028',
      15: '#002c35',
      20: '#003742',
      25: '#004350',
      30: '#00505f',
      35: '#005d6d',
      40: '#006a7d',
      45: '#00788c',
      50: '#00869c',
      55: '#0094ac',
      60: '#00a2bd',
      65: '#00b1ce',
      70: '#00bfdf',
      75: '#29ceed',
      80: '#71d7ef',
      85: '#9ee1f1',
      90: '#c2eaf5',
      95: '#e3f4f9',
      100: '#ffffff',
      hue: 215,
      chroma: 0.0767,
    },
    dark: {
      0: '#00151b',
      5: '#002028',
      10: '#002c35',
      15: '#003742',
      20: '#004350',
      25: '#00505f',
      30: '#005d6d',
      35: '#006a7d',
      40: '#00788c',
      45: '#00869c',
      50: '#0094ac',
      55: '#00a2bd',
      60: '#00b1ce',
      65: '#00bfdf',
      70: '#50cbe7',
      75: '#80d6ea',
      80: '#a7dfed',
      85: '#bce7f1',
      90: '#d1edf5',
      95: '#e5f4f8',
      100: '#ffffff',
      hue: 215,
      chroma: 0.0767,
    },
    description: 'Cyan categorical states.',
  },
  blue: {
    light: {
      0: '#000000',
      5: '#000f30',
      10: '#001a41',
      15: '#002452',
      20: '#002f64',
      25: '#003a78',
      30: '#00458c',
      35: '#0050a1',
      40: '#005cb6',
      45: '#0068cc',
      50: '#0074e2',
      55: '#0081f9',
      60: '#2f90ff',
      65: '#529fff',
      70: '#6eaeff',
      75: '#87bcff',
      80: '#a0caff',
      85: '#b8d7ff',
      90: '#d0e5ff',
      95: '#e8f2ff',
      100: '#ffffff',
      hue: 255,
      chroma: 0.1003,
    },
    dark: {
      0: '#000f30',
      5: '#001a41',
      10: '#002452',
      15: '#002f64',
      20: '#003a78',
      25: '#00458c',
      30: '#0050a1',
      35: '#005cb6',
      40: '#0068cc',
      45: '#0074e2',
      50: '#0080f9',
      55: '#2f90ff',
      60: '#529fff',
      65: '#6eaeff',
      70: '#87bcff',
      75: '#a0caff',
      80: '#b8d7ff',
      85: '#c8e0ff',
      90: '#d8e9ff',
      95: '#e8f2ff',
      100: '#ffffff',
      hue: 255,
      chroma: 0.1003,
    },
    semantic: 'info',
    description: 'Information, accent, and blue categorical states.',
  },
  purple: {
    light: {
      0: '#000000',
      5: '#22002a',
      10: '#31003b',
      15: '#40004c',
      20: '#4f005e',
      25: '#5f0070',
      30: '#6f0782',
      35: '#7c1a90',
      40: '#8b2a9f',
      45: '#9838ad',
      50: '#a746bb',
      55: '#b455c9',
      60: '#c263d7',
      65: '#cf71e6',
      70: '#d58ae6',
      75: '#dc9fe9',
      80: '#e1b3ed',
      85: '#e8c7ef',
      90: '#f0dbf4',
      95: '#f6edf8',
      100: '#ffffff',
      hue: 320,
      chroma: 0.0708,
    },
    dark: {
      0: '#22002a',
      5: '#31003b',
      10: '#40004c',
      15: '#4f005d',
      20: '#5c116b',
      25: '#6a1e78',
      30: '#762b87',
      35: '#843895',
      40: '#9244a3',
      45: '#a051b1',
      50: '#ae5fc0',
      55: '#bb6cce',
      60: '#c979dc',
      65: '#d090de',
      70: '#d7a3e3',
      75: '#dfb6e8',
      80: '#e6c9ec',
      85: '#ebd5ef',
      90: '#f0e2f4',
      95: '#f6eef7',
      100: '#ffffff',
      hue: 320,
      chroma: 0.0708,
    },
    description: 'Purple categorical states.',
  },
  pink: {
    light: {
      0: '#000000',
      5: '#290013',
      10: '#3b001e',
      15: '#4b0028',
      20: '#5d0034',
      25: '#70003f',
      30: '#82004b',
      35: '#960058',
      40: '#a81064',
      45: '#b72470',
      50: '#c6357d',
      55: '#d5458a',
      60: '#e45397',
      65: '#f363a4',
      70: '#f47fb0',
      75: '#f697bc',
      80: '#f7adc9',
      85: '#f9c4d6',
      90: '#fad7e4',
      95: '#fbecf1',
      100: '#ffffff',
      hue: 355,
      chroma: 0.0708,
    },
    dark: {
      0: '#290013',
      5: '#3b001e',
      10: '#4b0028',
      15: '#5d0034',
      20: '#6f003f',
      25: '#800a4a',
      30: '#8f1b56',
      35: '#9e2b63',
      40: '#ad3870',
      45: '#bc467c',
      50: '#cb5389',
      55: '#d96196',
      60: '#e86ea3',
      65: '#eb87b0',
      70: '#ee9cbd',
      75: '#f1b1c9',
      80: '#f4c6d6',
      85: '#f6d3df',
      90: '#f8e0e8',
      95: '#faedf1',
      100: '#ffffff',
      hue: 355,
      chroma: 0.0708,
    },
    description: 'Pink categorical states.',
  },
} as const;