xonecas.ioDon't click! Sean Caetano Martin Sign in
tiny-adventure / web / js / theme.js 16 lines418 bytes Raw
1export const T = {
2  bg: '#14110e',
3  surface: '#1e1a16',
4  raised: '#2a251f',
5  line: '#3d362d',
6  fg: '#efe6d2',
7  muted: '#b3a78f',
8  faint: '#7c725f',
9  accent: '#ffc94d',
10  accentFg: '#1c1508',
11  danger: '#e2553f',
12  heal: '#9ccc7a',
13};
14
15const RARITY = { common: T.muted, uncommon: '#9ccc7a', rare: '#83b2e6', epic: '#c39be6', legendary: '#f0a35a' };
16export const rarityColor = (r) => RARITY[r] || RARITY.common;