Skip to content
Source
Sign inSign up
TanStack/cli

fix(create): let Tailwind box-sizing utilities override preflight #564

Mergedtannerlinsleymerged 1 commit intomain fromrefs/pull/564/headmerged by tannerlinsley

Showing 3 changed files with 9 additions and 18 deletions.

x
0 of 3 viewed, 3 left
5 additions and 0 deletions.changeset/tailwind-box-sizing.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+"@tanstack/create": patch
+---
+​
+Allow Tailwind box-sizing utilities to override the default reset in generated React and Solid apps.
2 additions and 9 deletionspackages/create/src/frameworks/react/project/base/src/styles.css.ejsModified
View file
@@ -1,10 +1,11 @@
<% if (blank) { %>
<% if (tailwind) { %>@import "tailwindcss";
​
-<% } %>
+<% } else { %>
* {
box-sizing: border-box;
}
+<% } %>
​
body {
margin: 0;
@@ -18,10 +19,6 @@
<% } else if (!includeExamples) { %>
@import "tailwindcss";
​