Skip to content

Commit

Permalink
feat: support Tailwind CSS
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	package.json
#	src/transform.ts
  • Loading branch information
sundaycrafts authored and nvh95 committed Jun 13, 2022
1 parent 0ec5315 commit 5412539
Show file tree
Hide file tree
Showing 7 changed files with 701 additions and 6 deletions.
1 change: 1 addition & 0 deletions demo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ function App() {
This text is styled by global configured SASS
</p>
<p className="imported-sass">This text is styled by imported SASS</p>
<p className={"text-red-500"}>This text is styled by Tailwind CSS</p>
<button
css={css`
padding: 32px;
Expand Down
5 changes: 5 additions & 0 deletions demo/global.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

/* TODO: Redundant. Tailwind css inserts own reset css. */
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
Expand Down
1 change: 1 addition & 0 deletions demo/setupTests.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '../../demo/global.css';
import '@testing-library/jest-dom/extend-expect';
import { jestPreviewConfigure } from '../dist/index';
import './global.css';
Expand Down
Loading

0 comments on commit 5412539

Please sign in to comment.