KEYS.less

A simple stylesheet to render beautiful keyboard-styled elements.

The stylesheet comes with two classes for light and dark keys for good visibility on every background. Since most websites have light backgrounds, the dark style is the default.

Dark keys:

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

...or...

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

...or...

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

Light keys:

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

...or...

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

Regular keys:

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

...or...

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

StackOverflow-styled keys:

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

...or...

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

GitHub-styled keys:

Sample sentence: "The key sequence is ctrl + S for the magic to happen."

...or...

Sample sentence: "The key sequence is ctrl + S for the magic to happen."


That’s all. The size of the keys depends on the set font-size.