Skip to content

Commit

Permalink
export styles.css and tailwind.css for tailwind users
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhyco committed Jun 11, 2024
1 parent 6c9d26f commit 4e38cde
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ tmp
/out-tsc
site/vocs.config.tsx.timestamp*
src/styles.css
src/tailwind.css

# dependencies
node_modules
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"repository": "https://github.com/coinbase/onchainkit.git",
"license": "MIT",
"scripts": {
"build": "packemon build --addEngines --addFiles --declaration && npx packemon validate --no-license --no-people --no-repo && tailwindcss -o ./src/styles.css --minify",
"watch": "tailwind -o ./src/styles.css --watch",
"build": "packemon build --addEngines --addFiles --declaration && npx packemon validate --no-license --no-people --no-repo && tailwindcss -i ./src/styles/index.css -o ./src/tailwind.css --minify && tailwindcss -i ./src/styles/index-with-tailwind.css -o ./src/styles.css --minify",
"watch": "tailwind -i ./src/styles/index.css -o ./src/tailwind.css --watch",
"check": "yarn format",
"format": "prettier --log-level warn --write .",
"format:check": "prettier --check .",
Expand Down Expand Up @@ -95,6 +95,7 @@
"exports": {
"./package.json": "./package.json",
"./styles.css": "./src/styles.css",
"./tailwind.css": "./src/tailwind.css",
".": {
"types": "./esm/index.d.ts",
"module": "./esm/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/styles/index-with-tailwind.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import url('./tailwind-base.css');
@import url('./index.css');
1 change: 1 addition & 0 deletions src/styles/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@import url('../token/components/TokenSelectDropdown.css');
1 change: 1 addition & 0 deletions src/styles/tailwind-base.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@tailwind base;

0 comments on commit 4e38cde

Please sign in to comment.