# Color

> Semantic color tokens for every theme, each product and the neutral theme in light and dark mode.

Components ask for a role such as `primary` or `muted-foreground`, never a hex value, so the same component works in every theme.

## Roles

- `background`: the page ground behind cards.
- `foreground`: main text.
- `card` and `popover`: cards, menus and form surfaces.
- `muted` and `muted-foreground`: quiet surfaces and secondary text.
- `border` and `input`: dividers and control borders.
- `primary` and `primary-foreground`: the main action, in the product's logo color.
- `primary-soft` and `primary-text`: tinted surfaces and small primary-colored text such as links.
- `ring`: the keyboard focus ring.
- `sidebar-*`: the dashboard sidebar.

`secondary` and `accent` keep their shadcn meaning: a quiet button fill and a hover background. Neither one is a brand color.

## All themes

| Token | lokamusik-light | lokamusik-dark | coverclearance-light | coverclearance-dark | lokasign-light | lokasign-dark | mylokalink-light | mylokalink-dark | neutral-light | neutral-dark |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| background | #FDF9FA | #1C0F16 | #F9F8F6 | #0A0D14 | #F3F6FB | #001D43 | #FFFFFF | #0B1620 | #FAFAFD | #0E0E11 |
| foreground | #1C0F16 | #F5F5F5 | #181B1F | #DBDEE3 | #001D43 | #EEF3FB | #1C3B4E | #F2F6F8 | #1A1A1D | #E6E6EA |
| card | #FFFFFF | #26181F | #FFFFFF | #12161E | #FFFFFF | #0A2A57 | #FFFFFF | #13212B | #FFFFFF | #17171A |
| muted | #F5F5F5 | #2E2028 | #F2F0EC | #1B1F29 | #EAF0F8 | #0F3466 | #ECF6FC | #1A2B36 | #F2F2F6 | #1F1F22 |
| muted-foreground | #4A3A42 | #B4A7AA | #625D56 | #A0A5AE | #4A5B78 | #A9BAD6 | #657078 | #87939B | #636366 | #AAAAAE |
| border | #ECE4E6 | #3A2B33 | #ECE9E3 | #262B36 | #D5DEEC | #1D4478 | #DCE8F1 | #23343F | #E6E6EA | #2B2B2E |
| input | #998D90 | #7A6871 | #908F8D | #5F646D | #7D8FA9 | #5376A6 | #8A969E | #606B72 | #909093 | #68686C |
| primary | #660032 | #FF8FC6 | #E48725 | #E87F34 | #0060EF | #7DAEFF | #0A66C2 | #65A7F9 | #27272A | #E4E4E7 |
| primary-foreground | #FFFFFF | #660032 | #FFFFFF | #180600 | #FFFFFF | #001D43 | #FFFFFF | #0B1620 | #FFFFFF | #0D0D10 |
| primary-soft | #FFEEF6 | #3D001E | #FFEEE1 | #371C0B | #E6EFFE | #0F3466 | #ECF4FF | #162C47 | #F3F3F4 | #29292A |
| primary-text | #660032 | #FF8FC6 | #A8530A | #EF9F67 | #0050C8 | #7DAEFF | #0A66C2 | #72A7EB | #27272A | #E4E4E7 |
| ring | #660032 | #FF8FC6 | #A8530A | #E87F34 | #0060EF | #7DAEFF | #0A66C2 | #65A7F9 | #27272A | #E4E4E7 |
| card-foreground | #1C0F16 | #F5F5F5 | #181B1F | #DBDEE3 | #001D43 | #EEF3FB | #1C3B4E | #F2F6F8 | #1A1A1D | #E6E6EA |
| popover | #FFFFFF | #26181F | #FFFFFF | #12161E | #FFFFFF | #0A2A57 | #FFFFFF | #13212B | #FFFFFF | #17171A |
| popover-foreground | #1C0F16 | #F5F5F5 | #181B1F | #DBDEE3 | #001D43 | #EEF3FB | #1C3B4E | #F2F6F8 | #1A1A1D | #E6E6EA |
| secondary | #F5F5F5 | #2E2028 | #F2F0EC | #1B1F29 | #EAF0F8 | #0F3466 | #ECF6FC | #1A2B36 | #F2F2F6 | #1F1F22 |
| secondary-foreground | #1C0F16 | #F5F5F5 | #181B1F | #DBDEE3 | #001D43 | #EEF3FB | #1C3B4E | #F2F6F8 | #1A1A1D | #E6E6EA |
| accent | #F5F5F5 | #2E2028 | #F2F0EC | #1B1F29 | #EAF0F8 | #0F3466 | #ECF6FC | #1A2B36 | #F2F2F6 | #1F1F22 |
| accent-foreground | #1C0F16 | #F5F5F5 | #181B1F | #DBDEE3 | #001D43 | #EEF3FB | #1C3B4E | #F2F6F8 | #1A1A1D | #E6E6EA |
| sidebar | #FFFFFF | #26181F | #FFFFFF | #12161E | #FFFFFF | #0A2A57 | #FFFFFF | #13212B | #FFFFFF | #17171A |
| sidebar-foreground | #1C0F16 | #F5F5F5 | #181B1F | #DBDEE3 | #001D43 | #EEF3FB | #1C3B4E | #F2F6F8 | #1A1A1D | #E6E6EA |
| sidebar-border | #ECE4E6 | #3A2B33 | #ECE9E3 | #262B36 | #D5DEEC | #1D4478 | #DCE8F1 | #23343F | #E6E6EA | #2B2B2E |
| sidebar-accent | #FFEEF6 | #3D001E | #FFEEE1 | #371C0B | #E6EFFE | #0F3466 | #ECF4FF | #162C47 | #F3F3F4 | #29292A |
| sidebar-accent-foreground | #660032 | #FF8FC6 | #A8530A | #EF9F67 | #0050C8 | #7DAEFF | #0A66C2 | #72A7EB | #27272A | #E4E4E7 |
| sidebar-primary | #660032 | #FF8FC6 | #E48725 | #E87F34 | #0060EF | #7DAEFF | #0A66C2 | #65A7F9 | #27272A | #E4E4E7 |
| sidebar-primary-foreground | #FFFFFF | #660032 | #FFFFFF | #180600 | #FFFFFF | #001D43 | #FFFFFF | #0B1620 | #FFFFFF | #0D0D10 |
| sidebar-ring | #660032 | #FF8FC6 | #A8530A | #E87F34 | #0060EF | #7DAEFF | #0A66C2 | #65A7F9 | #27272A | #E4E4E7 |
| tenant-accent | #660032 | #FF8FC6 | #E48725 | #E87F34 | #0060EF | #7DAEFF | #0A66C2 | #65A7F9 | #27272A | #E4E4E7 |
| tenant-accent-foreground | #FFFFFF | #660032 | #FFFFFF | #180600 | #FFFFFF | #001D43 | #FFFFFF | #0B1620 | #FFFFFF | #0D0D10 |
| tenant-accent-soft | #FFEEF6 | #3D001E | #FFEEE1 | #371C0B | #E6EFFE | #0F3466 | #ECF4FF | #162C47 | #F3F3F4 | #29292A |
| tenant-accent-text | #660032 | #FF8FC6 | #A8530A | #EF9F67 | #0050C8 | #7DAEFF | #0A66C2 | #72A7EB | #27272A | #E4E4E7 |

## Status

Status colors are the same in every product. `success`, `warning` and `destructive` carry color; `info` is a neutral slate, so it never looks like the blue actions of Lokasign or My Loka Link. Color alone never carries a status: always pair it with a word or an icon.

### Light

| Token | CSS variable | Value | Use |
| --- | --- | --- | --- |
| success | `--success` | #0B6B5E | Status color for done, approved, published; text and icons on background, card and success-soft. |
| success-foreground | `--success-foreground` | #FFFFFF | Text on a solid success fill. |
| success-soft | `--success-soft` | #DDF3EF | Background of success badges and banners; text on it uses success. |
| warning | `--warning` | #8A4B00 | Status color for pending, waiting for review; text and icons on background, card and warning-soft. |
| warning-foreground | `--warning-foreground` | #FFFFFF | Text on a solid warning fill. |
| warning-soft | `--warning-soft` | #FFF1D6 | Background of warning badges and banners; text on it uses warning. |
| destructive | `--destructive` | #B42318 | Status color for errors, rejected, delete actions; text and icons on background, card and destructive-soft. |
| destructive-foreground | `--destructive-foreground` | #FFFFFF | Text on a solid destructive fill. |
| destructive-soft | `--destructive-soft` | #FDE7E4 | Background of destructive badges and banners; text on it uses destructive. |
| info | `--info` | #475467 | Neutral status for information and tips; slate so it never reads as a brand action. Text and icons on background, card and info-soft. |
| info-foreground | `--info-foreground` | #FFFFFF | Text on a solid info fill. |
| info-soft | `--info-soft` | #EEF1F5 | Background of info badges and banners; text on it uses info. |

### Dark

| Token | CSS variable | Value | Use |
| --- | --- | --- | --- |
| success | `--success` | #4FD1B5 | Status color for done, approved, published; text and icons on background, card and success-soft. |
| success-foreground | `--success-foreground` | #0B1620 | Text on a solid success fill. |
| success-soft | `--success-soft` | #12302B | Background of success badges and banners; text on it uses success. |
| warning | `--warning` | #F5B544 | Status color for pending, waiting for review; text and icons on background, card and warning-soft. |
| warning-foreground | `--warning-foreground` | #0B1620 | Text on a solid warning fill. |
| warning-soft | `--warning-soft` | #3A2C0F | Background of warning badges and banners; text on it uses warning. |
| destructive | `--destructive` | #FF8A75 | Status color for errors, rejected, delete actions; text and icons on background, card and destructive-soft. |
| destructive-foreground | `--destructive-foreground` | #0B1620 | Text on a solid destructive fill. |
| destructive-soft | `--destructive-soft` | #3A1A16 | Background of destructive badges and banners; text on it uses destructive. |
| info | `--info` | #B4BFCC | Neutral status for information and tips; slate so it never reads as a brand action. Text and icons on background, card and info-soft. |
| info-foreground | `--info-foreground` | #0B1620 | Text on a solid info fill. |
| info-soft | `--info-soft` | #1E2733 | Background of info badges and banners; text on it uses info. |

## Chart palette

Charts use five series colors, `chart-1` to `chart-5`, in that order. `chart-1` is the product's own hue; `chart-2` to `chart-5` (magenta, teal, olive, indigo) are the same in every product and never reuse a status color. Every series reaches 3:1 on `background` and `card`, and the order passes the color-blind checks for neighboring series. Cover Clearance light steps its orange down to `#C2620E` for `chart-1`, because `#E48725` stays under 3:1 on its background. More than five series fold into "Lainnya". See [Chart](https://design.sosialoka.tech/components/chart/).

### Light

| Token | CSS variable | Value | Use |
| --- | --- | --- | --- |
| chart-2 | `--chart-2` | #C2185B | Second chart series (magenta); the same in every product, never a status color. |
| chart-3 | `--chart-3` | #0087A3 | Third chart series (teal); the same in every product, never a status color. |
| chart-4 | `--chart-4` | #6B7A00 | Fourth chart series (olive); the same in every product, never a status color. |
| chart-5 | `--chart-5` | #5B4FCF | Fifth chart series (indigo); the same in every product, never a status color. |
| chart-1 | `--chart-1` | #C2620E | First chart series: the brand hue, stepped where needed to reach 3:1 on background and card. |

### Dark

| Token | CSS variable | Value | Use |
| --- | --- | --- | --- |
| chart-2 | `--chart-2` | #D94E85 | Second chart series (magenta); the same in every product, never a status color. |
| chart-3 | `--chart-3` | #14A3B8 | Third chart series (teal); the same in every product, never a status color. |
| chart-4 | `--chart-4` | #8C9A17 | Fourth chart series (olive); the same in every product, never a status color. |
| chart-5 | `--chart-5` | #7B6FE0 | Fifth chart series (indigo); the same in every product, never a status color. |
| chart-1 | `--chart-1` | #C9701F | First chart series: the brand hue, stepped where needed to reach 3:1 on background and card. |

## Tenant accent presets

My Loka Link artist pages and Ruang Loka Musik tenants take their own accent color. Set `data-tenant-accent` on the page root to one of the presets below; the four `tenant-accent` tokens switch, and nothing else changes. Without a preset, the tenant tokens follow `primary`.

### Light

| Token | CSS variable | Value | Use |
| --- | --- | --- | --- |
| blue · tenant-accent | `--tenant-accent` | #0A66C2 | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "blue", light mode. |
| blue · tenant-accent-foreground | `--tenant-accent-foreground` | #FFFFFF | Text on tenant-accent. Preset "blue", light mode. |
| blue · tenant-accent-soft | `--tenant-accent-soft` | #ECF4FF | Tinted surface in the tenant accent. Preset "blue", light mode. |
| blue · tenant-accent-text | `--tenant-accent-text` | #0A66C2 | Text in the tenant accent on background, card and tenant-accent-soft. Preset "blue", light mode. |
| orange · tenant-accent | `--tenant-accent` | #C4530F | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "orange", light mode. |
| orange · tenant-accent-foreground | `--tenant-accent-foreground` | #FFFFFF | Text on tenant-accent. Preset "orange", light mode. |
| orange · tenant-accent-soft | `--tenant-accent-soft` | #FFEDE0 | Tinted surface in the tenant accent. Preset "orange", light mode. |
| orange · tenant-accent-text | `--tenant-accent-text` | #AB4400 | Text in the tenant accent on background, card and tenant-accent-soft. Preset "orange", light mode. |
| teal · tenant-accent | `--tenant-accent` | #007B76 | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "teal", light mode. |
| teal · tenant-accent-foreground | `--tenant-accent-foreground` | #FFFFFF | Text on tenant-accent. Preset "teal", light mode. |
| teal · tenant-accent-soft | `--tenant-accent-soft` | #DCF9F6 | Tinted surface in the tenant accent. Preset "teal", light mode. |
| teal · tenant-accent-text | `--tenant-accent-text` | #006D69 | Text in the tenant accent on background, card and tenant-accent-soft. Preset "teal", light mode. |
| red · tenant-accent | `--tenant-accent` | #BE222A | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "red", light mode. |
| red · tenant-accent-foreground | `--tenant-accent-foreground` | #FFFFFF | Text on tenant-accent. Preset "red", light mode. |
| red · tenant-accent-soft | `--tenant-accent-soft` | #FFECEB | Tinted surface in the tenant accent. Preset "red", light mode. |
| red · tenant-accent-text | `--tenant-accent-text` | #B32228 | Text in the tenant accent on background, card and tenant-accent-soft. Preset "red", light mode. |

### Dark

| Token | CSS variable | Value | Use |
| --- | --- | --- | --- |
| blue · tenant-accent | `--tenant-accent` | #65A7F9 | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "blue", dark mode. |
| blue · tenant-accent-foreground | `--tenant-accent-foreground` | #1C3B4E | Text on tenant-accent. Preset "blue", dark mode. |
| blue · tenant-accent-soft | `--tenant-accent-soft` | #162C47 | Tinted surface in the tenant accent. Preset "blue", dark mode. |
| blue · tenant-accent-text | `--tenant-accent-text` | #72A7EB | Text in the tenant accent on background, card and tenant-accent-soft. Preset "blue", dark mode. |
| orange · tenant-accent | `--tenant-accent` | #F49752 | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "orange", dark mode. |
| orange · tenant-accent-foreground | `--tenant-accent-foreground` | #241005 | Text on tenant-accent. Preset "orange", dark mode. |
| orange · tenant-accent-soft | `--tenant-accent-soft` | #3A1E0E | Tinted surface in the tenant accent. Preset "orange", dark mode. |
| orange · tenant-accent-text | `--tenant-accent-text` | #F9A870 | Text in the tenant accent on background, card and tenant-accent-soft. Preset "orange", dark mode. |
| teal · tenant-accent | `--tenant-accent` | #55CEC0 | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "teal", dark mode. |
| teal · tenant-accent-foreground | `--tenant-accent-foreground` | #001C1A | Text on tenant-accent. Preset "teal", dark mode. |
| teal · tenant-accent-soft | `--tenant-accent-soft` | #092D2B | Tinted surface in the tenant accent. Preset "teal", dark mode. |
| teal · tenant-accent-text | `--tenant-accent-text` | #69D3C6 | Text in the tenant accent on background, card and tenant-accent-soft. Preset "teal", dark mode. |
| red · tenant-accent | `--tenant-accent` | #F68482 | Tenant or artist accent fill; defaults to primary until a preset applies. Preset "red", dark mode. |
| red · tenant-accent-foreground | `--tenant-accent-foreground` | #250E0D | Text on tenant-accent. Preset "red", dark mode. |
| red · tenant-accent-soft | `--tenant-accent-soft` | #3B1C1B | Tinted surface in the tenant accent. Preset "red", dark mode. |
| red · tenant-accent-text | `--tenant-accent-text` | #F99E9B | Text in the tenant accent on background, card and tenant-accent-soft. Preset "red", dark mode. |

## Contrast

- Text reaches at least 4.5:1 against the surface it sits on, in every theme and every tenant preset.
- Focus rings and the borders of inputs, selects and checkboxes (`input`) reach at least 3:1.
- A test checks every pair on each build, so a token change that breaks contrast fails the build.

One pair is a known exception: white text on Cover Clearance orange in light mode reaches 2.7:1. Cover Clearance keeps its logo color as the primary fill by owner decision. Keep labels on that fill short and bold.
