Files
Checkmate/client/src/Utils/Theme/constants.ts
T

32 lines
693 B
TypeScript
Raw Normal View History

2026-02-28 16:16:14 +00:00
export const SPACING = {
2026-05-04 11:59:02 -07:00
XXS: 0.25,
2026-02-28 16:16:14 +00:00
XS: 0.5,
SM: 1,
MD: 1.5,
LG: 2,
XL: 2.5,
XXL: 3,
} as const;
export const LAYOUT = {
2026-04-29 09:37:37 -07:00
XXS: 2,
2026-02-28 16:16:14 +00:00
XS: 4,
SM: 6,
MD: 8,
LG: 10,
XL: 12,
XXL: 16,
} as const;
2026-09-03 01:38:51 -04:00
/**
* Shared height for anything that can sit in a row with something else -
* buttons, inputs, selects, pickers, toggles, tabs, icon buttons. One number so
* they share a baseline instead of drifting 2px apart.
*/
export const CONTROL_HEIGHT = 32;
export const HOVER = {
2026-04-29 09:47:11 -07:00
DARKEN: 0.06, // This is a coefficient for darkening function
ROW: 0.025, // Overlay alpha for hoverable rows and cards
CONTROL: 0.05, // Stronger overlay for controls nested inside a hoverable row
} as const;