KBD_VARIANT_PRESETS
const
Kbd
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- outlined: { bgColor: 'var(--origam-kbd--outlined---background-color, var(--origam-color__surface---raised, #fff))', elevation: '0 1px 0 0 color-mix(in srgb, currentColor 12%, transparent), inset 0 1px 0 0 color-mix(in srgb, white 50%, transparent)' }
- filled: { bgColor: 'var(--origam-kbd__filled---background-color, var(--origam-color__surface---overlay, #f5f5f5))', elevation: '0 1px 2px 0 color-mix(in srgb, currentColor 18%, transparent), inset 0 1px 0 0 color-mix(in srgb, white 60%, transparent)' }
- tonal: { bgColor: 'var(--origam-kbd__tonal---background-color, color-mix(in srgb, currentColor 8%, transparent))', border: 'none', borderColor: 'transparent', elevation: 'none' }