Skip to content

Default styles for kbd tag #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
deadcoder0904 opened this issue Jul 17, 2021 · 4 comments · Fixed by #317
Closed

Default styles for kbd tag #186

deadcoder0904 opened this issue Jul 17, 2021 · 4 comments · Fixed by #317
Assignees

Comments

@deadcoder0904
Copy link

deadcoder0904 commented Jul 17, 2021

What version of @tailwindcss/typography are you using?

v0.4.1

What version of Node.js are you using?

v16.3.0

What browser are you using?

Chrome

What operating system are you using?

Windows

Reproduction repository

https://play.tailwindcss.com/YZS1I4iDer

Describe your issue

kbd tag style should look like keyboard.

Try out the following & see it's styled differently.

<article class="prose mx-6 mt-10">
  <h1>`kbd` tag below is styled incorrectly</h1>
  <kbd>Enter</kbd>
</article>

Or check out the Tailwind Play here -> https://play.tailwindcss.com/YZS1I4iDer

By default it should look like on here -> https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd or https://meta.superuser.com/questions/4788/css-for-the-new-kbd-style

I know I can do it in my project but a default style wouldn't hurt :)

@ArnaudLier
Copy link

In the meantime, I use this styling:

kbd {
    background-color: #1F2937; /* coolGray-800 */
    color: #94A3B8; /* blueGray-400 */
    padding: 3px 5px;
    border: solid 1px #6B7280; /* coolGray-500 */
    border-radius: 6px
}

@Svish
Copy link

Svish commented Jun 12, 2023

@ArnaudLier Could you add a screenshot to your post for what those styles look like in the context of prose text?

@reinink reinink self-assigned this Aug 30, 2023
@reinink
Copy link
Member

reinink commented Sep 1, 2023

Hey! Thanks for this suggestion. I've just added <kbd> styles in #317 🤙

@deadcoder0904
Copy link
Author

woot, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants