Skip to content

Commit

Permalink
feat: support Tailwind CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
sundaycrafts committed May 28, 2022
1 parent 3e23b9c commit 483b684
Show file tree
Hide file tree
Showing 7 changed files with 702 additions and 6 deletions.
1 change: 1 addition & 0 deletions config/jest/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';

Expand Down
1 change: 1 addition & 0 deletions demo/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,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
Loading

0 comments on commit 483b684

Please sign in to comment.