Shell Component

A decorative wrapper around <input> that provides border, focus ring, hover, disabled, invalid states, and supports prefix/suffix icons/text.

Notes

Basic usage

Default shell

name:
name:

With suffix text / icons

name: Forgot?
⌘K

Floating placeholder

Basic floating

Username
Email

Sizes

9 (tight)
10 (min)
12 (comfort)
14 (large)

Floating + variant colors

Username
Email
Password
Search
Username
Name
Phone

Floating + suffix elements

Search
Search articles⌘K
Invite code

Floating + full width

Search articles, users and tags...⌘K

Floating + custom colors

Blue
Pink

Visual variants

shell-subtle

name:
name:

shell-muted

name:
name:

shell-outline

name:
name:

shell-ghost

name:
name:

shell-underline

name:
name:

Theme colors (outline variant)

Primary / Secondary / Tertiary

name:
name:
name:

Success / Error / Info

name:
name:
name:

Highlight / Warning / Caution

name:
name:
name:

Ink / Title / Description / Caption / Disabled

name:
name:
name:
name:
name:

Theme colors + variant compounds

shell-outline-*

name:
email:
password:

shell-muted-*

name:
email:
password:
code:
search:
highlight:

shell-subtle-*

name:
email:
password:
code:
search:
highlight:

shell-ghost-*

name:
email:
password:
code:
search:
highlight:

shell-underline-*

name:
email:
password:
code:
search:
highlight:

Custom colors

Multiple color formats are supported:

Outline variant

name:
name:

Subtle variant

name:
name:

Muted variant

name:
name:

Ghost variant

name:
name:

Underline variant

name:
name:

Vertical layout (shell-v)

shell-v

name: Forgot?

shell-v + colors

Email:
Password: Invalid

Sizes (shell-4 ~ shell-15)

16px (shell-4)

name:

20px (shell-5)

name:

24px (shell-6)

name:

28px (shell-7)

name:

32px (shell-8, default)

name:

36px (shell-9)

name:

40px (shell-10)

name:

44px (shell-11)

name:

48px (shell-12)

name:

52px (shell-13)

name:

56px (shell-14)

name:

60px (shell-15)

name:

Shapes

shell-pill

name:
name:

shell-rounded

name:
name:

shell-square

name:
name:

shell-fluid

name:
name:

Width modifiers

shell-scale (fixed)

name:

shell-scale-2 (2x)

name:

shell-ratio (1:1)

shell-ratio-2 (2:1)

shell-full (100%)

name:
name:

State

Readonly

name:

Disabled

name:

Combinations

Search with icon + shortcut

⌘K

With action button

Vertical + icon + button

Variant comparison (primary)

name:
name:
name:
name:

For input (type=text) or textarea utilities, see demo-input.html.