Skip to content

Commit

Permalink
fix(tailwind): Add revert CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
thien-do committed Sep 25, 2022
1 parent 97d3105 commit 98f2ee0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
4 changes: 4 additions & 0 deletions tailwind/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.0.4

- fix: Add revert CSS

# 1.0.3

- docs: Update README
Expand Down
4 changes: 3 additions & 1 deletion tailwind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ as a static, standalone CSS file.

## Features

- Include scoped [preflight](https://tailwindcss.com/docs/preflight) styles
- Include
[`all: revert`](https://developer.mozilla.org/en-US/docs/Web/CSS/revert) and
scoped [preflight](https://tailwindcss.com/docs/preflight) styles
under `.tailwind`
- Support
[class-based](https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually)
Expand Down
2 changes: 1 addition & 1 deletion tailwind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@samuwrite/tailwind",
"version": "1.0.3",
"version": "1.0.4",
"scripts": {
"build": "./scripts/build.sh"
},
Expand Down
4 changes: 2 additions & 2 deletions tailwind/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ mkdir ./tmp
npx tailwindcss -i ./src/index.css -o ./tmp/tw-out.css

# Scoped with Sass
echo ".tailwind { \n" >>./tmp/ss-in.scss
cat ./src/tw-pre.txt >>./tmp/ss-in.scss
cat ./tmp/tw-out.css >>./tmp/ss-in.scss
echo "\n}\n" >>./tmp/ss-in.scss
cat ./src/tw-suf.txt >>./tmp/ss-in.scss
sass \
--style=compressed \
--no-source-map \
Expand Down
5 changes: 5 additions & 0 deletions tailwind/src/tw-pre.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.tailwind * {
all: revert;
}

.tailwind {
1 change: 1 addition & 0 deletions tailwind/src/tw-suf.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
}

0 comments on commit 98f2ee0

Please sign in to comment.