-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add tailwind styles support for lit components (#4862)
This PR adds the TailwindLitElement class which can be used to use tailwind classes in multiple Lit components with [no unnecessary CSS duplication](#4804 (comment)). At this time this is for Tailwind V3 but this can be made compatible with Tailwind V4 with [minimal changes](#4804 (comment)). Based on #4804, without the atomic-text component and its styles. You can refer to the comments for details on usage. --------- Co-authored-by: GitHub Actions Bot <> Co-authored-by: ylakhdar <[email protected]>
- Loading branch information
Showing
11 changed files
with
492 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import autoprefixer from 'autoprefixer'; | ||
import postcssImport from 'postcss-import'; | ||
import tailwindcss from 'tailwindcss'; | ||
|
||
export default { | ||
plugins: [postcssImport(), tailwindcss(), autoprefixer()], | ||
}; |
Oops, something went wrong.