Demos/BeatPad/BeatPadTokens.cs
using Sandbox.UI;
namespace Sandbox;
// Beat-pad-specific tokens. The three-color palette is a hard design invariant:
// Paper / Ink / Hot, nothing else. Shared demo palette stays in DemoTokens.cs.
public static class BeatPadTokens
{
public static readonly Color Paper = Color.FromBytes(0xf4, 0xf1, 0xea, 255);
public static readonly Color Ink = Color.FromBytes(0x1c, 0x1c, 0x1c, 255);
public static readonly Color Hot = Color.FromBytes(0xff, 0x4d, 0x2e, 255);
public const float OutlineWidth = 2f;
// solid sticker shadows (zero blur), offsets in px.
public const float PadShadow = 4f;
public const float KnobShadow = 3f;
public const float ModeShadow = 3f;
public const float ChassisShadow = 6f;
// Sizes (px)
public const float PadSize = 60f;
public const float PadRadius = 8f;
public const float PadGap = 10f;
public const float KnobSize = 64f;
public const float StemWidth = 3f;
public const float StemHeight = 16f;
public const float ModeW = 78f;
public const float ModeH = 34f;
public const float ModeRadius = 6f;
public const float ChassisRadius = 12f;
public const float ScopeRadius = 6f;
public const float ScopeHeight = 126f; // fills the bottom row beside the 3 mode rows
// Type
public const string FontLabel = "Didact Gothic"; // DemoTokens.FontUILabel
public const string FontMono = "Consolas";
}