Skip to content

Tailwind and Stencil, tailwind mix css.. #12274

Answered by adydetra
rafaelgfirmino asked this question in Help
Discussion options

You must be logged in to vote

Use HTML only or React/Vue?

Check the installation, if you are using HTML maybe you missed a step

Try checking the tailwind.config.js section, or provide your config code here.

I provided my code example, and it works. Try this

index.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="../dist/output.css" rel="stylesheet" />
  </head>
  <body>
    <label class="ed-label">First Name</label>
    <input class="ed-input" type="text" placeholder="ex: 4242 4242 4242 4242" />
  </body>
</html>

style.css

@tailwind base;
@tailwind components;
@tailwind utilities;

.ed-label {
  @apply text-xs…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rafaelgfirmino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants