Skip to content

Commit a517fa0

Browse files
authored
Bump tailwind to 3.3.3 (#313)
Bump to tailwind 3.3.3 so that we can use .ts config files. Does not include breaking changes. Some things of note: [This change](tailwindlabs/tailwindcss#10765) seems to have caused some problems for users using Safari <14.1 and some mobile browsers. More on tailwind changes can be found [here](https://tailwindcss.com/blog/tailwindcss-v3-3), and the commit changes can be found [here](tailwindlabs/tailwindcss@v3.2.7...v3.3.3). Prettier was also bumped to 2.8.1 (only the test site was on an old version, 2.7.1). This is because the auto-generated `tailwind.config.ts` file makes use of the new [`satisfies` keyword which is not supported until Prettier 2.8.1](prettier/prettier#13951). This broke our linking workflow. J=SLAP-2820
1 parent 283f5d7 commit a517fa0

11 files changed

+214
-307
lines changed

.github/tailwind-safelist-all.config.js

-14
This file was deleted.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import type { Config } from 'tailwindcss'
2+
3+
export default {
4+
content: [],
5+
safelist: [
6+
{
7+
pattern: /.*/,
8+
},
9+
]
10+
} satisfies Config;

.github/workflows/autofixes.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
token: ${{ secrets.BOT_REPO_SCOPED_TOKEN }}
3535
- uses: ./.github/setup-ci
3636
- name: Regenerate Full Tailwind Bundle
37-
run: npx tailwindcss -o src/tailwind-full.css -c ../../.github/tailwind-safelist-all.config.js --minify
37+
run: npx tailwindcss -o src/tailwind-full.css -c ../../.github/tailwind-safelist-all.config.ts --minify
3838
working-directory: ./packages/studio
3939
- name: Compress Full Tailwind Bundle
4040
run: node .github/compress-tailwind-full.js

apps/test-site/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
"eslint": "^8.11.0",
2828
"eslint-plugin-import": "^2.25.4",
2929
"eslint-plugin-react-perf": "^3.3.1",
30-
"eslint-plugin-tsdoc": "^0.2.17",
31-
"prettier": "2.7.1"
30+
"eslint-plugin-tsdoc": "^0.2.17"
3231
},
3332
"scripts": {
3433
"dev": "studio",

0 commit comments

Comments
 (0)