-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tailwind Generates Invalid Styles #12288
Comments
Note that the code below is quite large. outputoutput app.css ```css /* Loads all CSS in the project *//* ! tailwindcss v3.1.4 | MIT License | https://tailwindcss.com */ /*
, ::before, /*
html { /*
body { /*
hr { /* abbr:where([title]) { /* h1, /* a { /* b, /*
code, /* small { /* sub, sub { sup { /*
table { /*
button, /* button, /*
button, /* :-moz-focusring { /* :-moz-ui-invalid { /* progress { /* ::-webkit-inner-spin-button, /*
[type='search'] { /* ::-webkit-search-decoration { /*
::-webkit-file-upload-button { /* summary { /* blockquote, fieldset { legend { ol, /* textarea { /*
input::-moz-placeholder, textarea::-moz-placeholder { input::placeholder, /* button, /* :disabled { /*
img, /* img, /* Font smoothing */
/* Font families and weights */ .h-xl, .p-xxl, .subheading { /* Mobile */ /* Type scale */ .h-xl { .h-lg { .h1 { .h2 { .h3 { .h4 { .h5 { .h6 { .h-sm { .p-xxl { .p-xl { .p-lg { .p { .p-sm { .p-xs { .p-xxs { /* Leading */ .h-xl { .h-lg { .h1 { .h2 { .h3 { .h4 { .h5 { .h6 { .h-sm { .p-xxl { .p-xl { .p-lg { .p { .p-sm { .p-xs { .p-xxs { /* Tablet */ @media (min-width: 768px) { /* Note: tracking would go here but changing letter-spacing prevents .h-xl { .h-lg { .h1 { .h2 { .h3 { .h4 { .h5 { .h6 { .h-sm { .p-xxl { .p-xl { .p-lg { .p { .p-sm { .p-xs { .p-xxs { /* Leading */ .h-xl { .h-lg { .h1 { .h2 { .h3 { .h4 { .h5 { .h6 { .h-sm { .p-xxl { .p-xl { .p-lg { .p { .p-sm { .p-xs { .p-xxs { /* Desktop */ @media (min-width: 1024px) { .h-xl { .h-lg { .h1 { .h2 { .h3 { .h4 { .h5 { .h6 { .h-sm { .p-xxl { .p-xl { .p-lg { .p { .p-sm { .p-xs { .p-xxs { /* Desktop leading and tracking inherited from tablet leading */ /* Fallback max widths */ .h-xl, *, ::before, ::after { ::backdrop { .container { @media (min-width: 640px) { @media (min-width: 768px) { @media (min-width: 1024px) { @media (min-width: 1280px) { @media (min-width: 1440px) { @media (min-width: 1600px) { .pointer-events-none { .visible { .invisible { .static { .fixed { .absolute { .relative { .sticky { .inset-0 { .top-0 { .bottom-0 { .right-0 { .top-1/2 { .left-0 { .-top-0.5 { .-top-0 { .top-2 { .right-[50%] { .bottom-12 { .-top-px { .top-[10vh] { .!top-2 { .z-[15] { .-z-10 { .z-20 { .-z-20 { .z-0 { .z-10 { .-z-[1] { .z-30 { .order-1 { .order-2 { .col-span-3 { .col-span-4 { .col-span-full { .col-span-1 { .col-span-2 { .row-span-2 { .float-right { .m-auto { .m-6 { .mx-auto { .my-6 { .my-10 { .my-8 { .my-auto { .my-4 { .my-12 { .my-3 { .mx-2 { .my-16 { .my-40 { .mx-20 { .my-2 { .mb-6 { .mb-4 { .mt-10 { .-mb-20 { .mt-6 { .mb-3 { .mr-2 { .mb-2 { .mr-4 { .mb-10 { .mt-4 { .mb-[120px] { .mt-8 { .mb-8 { .mr-16 { .mt-20 { .mb-16 { .mr-9 { .mb-12 { .ml-9 { .mb-20 { .ml-8 { .mb-1 { .-mb-32 { .mr-1 { .mt-1 { .mt-12 { .mt-[180px] { .mb-[100px] { .mr-10 { .mt-[11.25rem] { .mb-[15rem] { .mt-5 { .-mt-14 { .mt-2 { .ml-4 { .mt-16 { .mb-0 { .ml-1 { .mr-3 { .mt-0 { .-mb-[42vmin] { .-mr-px { .mt-0.5 { .-mb-[10px] { .-mt-[60vmin] { .ml-2 { .mr-6 { .ml-16 { .mb-1.5 { .mt-px { .mr-2.5 { .mb-[60px] { .mr-8 { .mt-64 { .mb-40 { .ml-3 { .ml-5 { .-mr-4 { .ml-auto { .-ml-8 { .mb-[160px] { .box-content { .block { .inline-block { .inline { .flex { .inline-flex { .table { .grid { .inline-grid { .contents { .hidden { .aspect-video { .aspect-square { .aspect-[9/16] { .aspect-[16/9] { .aspect-[140/111] { .aspect-[2400/1370] { .aspect-[137/35] { .h-full { .h-6 { .h-2.5 { .h-2 { .h-4 { .h-28 { .h-5 { .h-auto { .h-96 { .h-80 { .h-8 { .h-1.5 { .h-1 { .h-[2px] { .h-[120px] { .h-[100px] { .h-[80px] { .h-[40px] { .h-[54rem] { .h-32 { .h-3 { .h-fit { .h-0.5 { .h-0 { .h-16 { .h-[64rem] { .h-10 { .h-screen { .!h-96 { .h-[69vmin] { .h-24 { .h-20 { .h-36 { .h-[80vh] { .h-12 { .h-60 { .h-[64px] { .h-px { .h-[180px] { .h-7 { .h-3.5 { .max-h-full { .max-h-80 { .max-h-44 { .max-h-96 { .min-h-screen { .min-h-min { .min-h-full { .w-full { .w-4 { .w-80 { .w-96 { .w-[30rem] { .w-1.5 { .w-1 { .w-12 { .w-3 { .w-0.5 { .w-0 { .w-[98%] { .w-[95%] { .w-5 { .w-6 { .w-[355px] { .w-fit { .w-px { .w-2 { .w-screen { .w-16 { .w-[64px] { .w-56 { .w-8 { .min-w-full { .min-w-[330px] { .max-w-md { .max-w-fit { .max-w-[54rem] { .max-w-xl { .max-w-sm { .max-w-[350px] { .max-w-[95rem] { .max-w-[80vw] { .max-w-[50rem] { .max-w-5xl { .max-w-none { .flex-1 { .grow { .origin-left { .origin-[0] { .origin-center { .-translate-y-1/2 { .-translate-y-6 { .translate-x-1/2 { .translate-x-[1.5rem] { .-translate-y-[105%] { .translate-y-5 { .translate-y-0 { .-translate-y-5 { .translate-y-10 { .rotate-90 { .-rotate-90 { .scale-75 { .transform { .cursor-pointer { .touch-none { .select-none { .resize { .appearance-none { .grid-flow-col { .grid-cols-2 { .grid-cols-7 { .grid-cols-1 { .grid-cols-3 { .grid-rows-3 { .flex-row { .flex-row-reverse { .flex-col { .flex-wrap { .items-start { .items-end { .items-center { .justify-start { .justify-end { .justify-center { .justify-between { .gap-10 { .gap-2.5 { .gap-2 { .gap-8 { .gap-6 { .gap-20 { .gap-4 { .gap-3 { .gap-x-20 { .gap-y-6 { .gap-x-10 { .gap-y-5 { .gap-x-4 { .gap-y-4 { .space-y-6 > :not([hidden]) ~ :not([hidden]) { .space-x-10 > :not([hidden]) ~ :not([hidden]) { .space-y-8 > :not([hidden]) ~ :not([hidden]) { .space-y-12 > :not([hidden]) ~ :not([hidden]) { .divide-y > :not([hidden]) ~ :not([hidden]) { .divide-gray-700 > :not([hidden]) ~ :not([hidden]) { .divide-green-900 > :not([hidden]) ~ :not([hidden]) { .divide-gray-500 > :not([hidden]) ~ :not([hidden]) { .place-self-center { .self-center { .overflow-auto { .overflow-hidden { .overflow-x-auto { .overflow-y-auto { .overflow-x-hidden { .scroll-smooth { .truncate { .whitespace-normal { .whitespace-nowrap { .break-words { .rounded-full { .rounded { .rounded-[1rem] { .rounded-none { .border { .border-0 { .!border-2 { .border-2 { .border-y { .border-y-8 { .border-x-8 { .border-t { .border-b { .border-b-2 { .border-r-8 { .border-t-8 { .border-l { .border-solid { .border-green-900 { .border-green-500 { .border-brown-300 { .border-transparent { .border-gray-700 { .border-green-300 { .border-gray-300 { .!border-red-500 { .border-blue-500 { .border-red-500 { .border-white { .border-green-700 { .border-gray-100 { .border-gray-900 { .border-y-transparent { .border-x-transparent { .border-b-white { .border-r-white { .border-t-white { .bg-green-700 { .bg-green-500 { .bg-black/50 { .bg-green-900 { .bg-brown-100 { .bg-white { .!bg-green-500 { .bg-red-500 { .bg-transparent { .bg-blue-500 { .bg-green-900/75 { .bg-red-300 { .bg-white/10 { .bg-black/0 { .bg-brown-300 { .bg-blue-100 { .bg-black { .bg-cover { .bg-clip-content { .bg-center { .fill-green-500 { .fill-green-900 { .stroke-green-700 { .stroke-green-500 { .object-contain { .object-cover { .object-top { .object-center { .p-10 { .p-4 { .p-6 { .p-2 { .p-1 { .p-8 { .p-0 { .p-5 { .py-20 { .py-10 { .px-4 { .py-8 { .py-[40px] { .py-4 { .px-3 { .py-0 { .py-16 { .px-6 { .py-2 { .py-6 { .px-0 { .px-7 { .py-12 { .py-3 { .px-2 { .py-1.5 { .py-1 { .px-16 { .pt-2 { .pt-5 { .pb-4 { .pt-12 { .pb-8 { .pt-24 { .pb-24 { .pt-4 { .pt-6 { .pt-10 { .pb-5 { .pb-28 { .pb-16 { .pl-1 { .pl-2 { .pt-[100px] { .pb-1 { .pr-10 { .pt-8 { .pb-20 { .pl-4 { .pl-5 { .pb-[120px] { .pb-12 { .pb-6 { .pl-6 { .pr-4 { .pl-12 { .pt-0 { .text-left { .text-center { .text-right { .font-numerals { .text-[10rem] { .text-[12rem] { .text-[7rem] { .text-2xl { .text-md { .text-xs { .text-lg { .text-3xl { .text-4xl { .text-6xl { .text-[0.45rem] { .font-bold { .font-extrabold { .font-normal { .font-light { .uppercase { .lowercase { .capitalize { .ordinal { .leading-[1.3] { .leading-none { .text-green-500 { .text-green-900 { .text-white { .text-brown-100 { .text-red-500 { .text-green-700 { .text-brown-300 { .text-brown-500 { .text-gray-700 { .text-black { .!text-green-900 { .text-gray-900 { .underline { .placeholder-green-900::-moz-placeholder { .placeholder-green-900::placeholder { .opacity-0 { .opacity-100 { .opacity-60 { .!opacity-100 { .opacity-70 { .bg-blend-overlay { .shadow-2xl { .shadow { .outline-none { .outline { .outline-0 { .ring { .ring-0 { .ring-offset-0 { .blur { .filter { .transition { .transition-transform { .transition-all { .transition-[margin-top] { .transition-[height] { .transition-opacity { .transition-colors { .delay-200 { .duration-500 { .duration-200 { .duration-300 { .ease-in-out { .alignnone { .aligncenter { @media (min-width: 640px) { .alignright:not(.wp-block-button) { .wp-block-button.alignleft a { .wp-block-button.alignright a { .[hostname:port] { /* @import "base/base.postcss"; /*
/* @import "blocks/carousel.postcss"; @import "components/button.postcss"; @import "layout/breadcrumbs.postcss"; @import "parts/post.postcss"; */ .selection:bg-green-900/50 *::-moz-selection { .selection:bg-green-900/50 *::selection { .selection:bg-green-900/50::-moz-selection { .selection:bg-green-900/50::selection { .placeholder:font-normal::-moz-placeholder { .placeholder:font-normal::placeholder { .placeholder:text-green-900::-moz-placeholder { .placeholder:text-green-900::placeholder { .placeholder:text-brown-300::-moz-placeholder { .placeholder:text-brown-300::placeholder { .after:align-super::after { .after:text-lg::after { .after:content-['%']::after { .after:content-['%*']::after { .first:mt-0:first-child { .first:pt-3:first-child { .first:pt-0:first-child { .last:mr-0:last-child { .last:border-b:last-child { .last:pb-3:last-child { .last:pb-0:last-child { .invalid:border-red-300:invalid { .invalid:border-red-100:invalid { .focus-within:col-span-full:focus-within { .hover:border-green-300:hover { .hover:border-white:hover { .hover:border-green-700:hover { .hover:border-red-500:hover { .hover:border-brown-100:hover { .hover:border-blue-300:hover { .hover:border-red-700:hover { .hover:bg-green-300:hover { .hover:bg-green-900:hover { .hover:bg-green-500:hover { .hover:bg-brown-300:hover { .hover:bg-green-700:hover { .hover:bg-transparent:hover { .hover:bg-brown-100:hover { .hover:bg-blue-300:hover { .hover:bg-red-700:hover { .hover:bg-red-500:hover { .hover:bg-white:hover { .hover:bg-gray-900:hover { .hover:text-green-500:hover { .hover:text-green-700:hover { .hover:text-white:hover { .hover:text-green-900:hover { .hover:text-red-500:hover { .hover:underline:hover { .hover:no-underline:hover { .hover:ring-2:hover { .hover:ring-green-900:hover { .hover:ring-offset-2:hover { .focus:border-green-900:focus { .focus:border-brown-300:focus { .focus-visible:text-white:focus-visible { .focus-visible:underline:focus-visible { .focus-visible:ring-0:focus-visible { .focus-visible:ring-offset-0:focus-visible { .group:focus-within .group-focus-within:h-1/2 { .group:focus-within .group-focus-within:-translate-y-full { .group:focus-within .group-focus-within:pl-0 { .group:focus-within .group-focus-within:text-xs { .group:hover .group-hover:scale-105 { .group:hover .group-hover:bg-black/20 { .group:hover .group-hover:underline { .peer:-moz-placeholder-shown ~ .peer-placeholder-shown:translate-y-0 { .peer:placeholder-shown ~ .peer-placeholder-shown:translate-y-0 { .peer:-moz-placeholder-shown ~ .peer-placeholder-shown:scale-100 { .peer:placeholder-shown ~ .peer-placeholder-shown:scale-100 { .peer:invalid ~ .peer-invalid:visible { .peer:invalid ~ .peer-invalid:h-1/2 { .peer:invalid ~ .peer-invalid:-translate-y-full { .peer:invalid ~ .peer-invalid:pl-0 { .peer:invalid ~ .peer-invalid:text-xs { .peer:focus-within ~ .peer-focus-within:hidden { .peer:focus ~ .peer-focus:invisible { .peer:focus ~ .peer-focus:left-0 { .peer:focus ~ .peer-focus:-translate-y-6 { .peer:focus ~ .peer-focus:scale-75 { .peer:focus ~ .peer-focus:text-xs { .peer:focus ~ .peer-focus:text-green-900 { .peer:focus ~ .peer-focus:text-brown-300 { @media (min-width: 480px) { .xs:mr-6 { .xs:aspect-video { .xs:w-10 { .xs:w-max { .xs:gap-10 { .xs:text-[10rem] { @media (min-width: 640px) { .sm:right-8 { .sm:col-span-2 { .sm:col-span-5 { .sm:-mb-[2px] { .sm:mr-10 { .sm:mt-8 { .sm:mr-4 { .sm:mr-6 { .sm:block { .sm:inline-block { .sm:hidden { .sm:h-24 { .sm:h-[72px] { .sm:w-[72px] { .sm:grid-cols-2 { .sm:grid-cols-3 { .sm:justify-end { .sm:gap-4 { .sm:border-b-2 { .sm:border-green-900 { .sm:border-green-700 { @media (min-width: 768px) { .md:h6 { .md:p-sm { .md:p-xs { .md:p-xxs { .md:subheading { .md:h2 { .md:h6 { .md:p-sm { .md:p-xs { .md:p-xxs { .md:h2 { .md:h6 { .md:p-sm { .md:p-xs { .md:p-xxs { @media (min-width: 768px) {
} @media (min-width: 1024px) {
} .md:absolute { .md:relative { .md:top-0 { .md:-left-64 { .md:m-16 { .md:m-0 { .md:-mb-12 { .md:mr-6 { .md:mt-16 { .md:mt-6 { .md:mb-0 { .md:mr-10 { .md:-mb-16 { .md:mt-0 { .md:ml-0 { .md:mb-[180px] { .md:mb-16 { .md:mb-24 { .md:mb-12 { .md:inline-block { .md:flex { .md:h-fit { .md:h-full { .md:h-[776px] { .md:h-4 { .md:h-3 { .md:h-[100px] { .md:h-8 { .md:min-h-[585px] { .md:w-[36rem] { .md:w-auto { .md:w-64 { .md:w-full { .md:w-[415px] { .md:w-4 { .md:w-[100px] { .md:flex-shrink-0 { .md:grid-cols-2 { .md:grid-cols-3 { .md:flex-row { .md:items-center { .md:justify-center { .md:self-stretch { .md:p-20 { .md:p-0 { .md:p-24 { .md:py-10 { .md:px-4 { .md:px-8 { .md:pt-[180px] { .md:pl-[100px] { .md:pr-[60px] { .md:pt-10 { .md:text-center { .md:text-xl { @media (min-width: 1024px) { .lg:h2 { .lg:h3 { .lg:h5 { .lg:h-sm { .lg:p-xxl { .lg:p { .lg:p-sm { .lg:p-xs { .lg:p-xxs { .lg:subheading { .lg:h1 { .lg:h2 { .lg:h3 { .lg:h5 { .lg:h-sm { .lg:p-xxl { .lg:p { .lg:p-sm { .lg:p-xs { .lg:p-xxs { .lg:h1 { .lg:h2 { .lg:h3 { .lg:h5 { .lg:h-sm { .lg:p-xxl { .lg:p { .lg:p-sm { .lg:p-xs { .lg:p-xxs { @media (min-width: 768px) {
} @media (min-width: 1024px) {
} .lg:absolute { .lg:relative { .lg:sticky { .lg:top-0 { .lg:left-0 { .lg:left-8 { .lg:-bottom-16 { .lg:bottom-0 { .lg:right-0 { .lg:top-24 { .lg:order-2 { .lg:order-1 { .lg:col-span-2 { .lg:col-span-6 { .lg:col-span-5 { .lg:col-span-7 { .lg:col-span-3 { .lg:col-span-4 { .lg:col-span-full { .lg:m-16 { .lg:m-0 { .lg:my-auto { .lg:my-0 { .lg:my-16 { .lg:mx-auto { .lg:mx-0 { .lg:mb-10 { .lg:mt-0 { .lg:mb-4 { .lg:mb-16 { .lg:mb-6 { .lg:mt-5 { .lg:mb-[240px] { .lg:mb-20 { .lg:mt-[180px] { .lg:mb-[180px] { .lg:mb-12 { .lg:mb-0 { .lg:mb-3 { .lg:mb-8 { .lg:mt-6 { .lg:mt-2 { .lg:mt-32 { .lg:mt-1 { .lg:mt-12 { .lg:mt-16 { .lg:mt-20 { .lg:mt-28 { .lg:mt-36 { .lg:mt-24 { .lg:mb-60 { .lg:ml-auto { .lg:mr-0 { .lg:mr-12 { .lg:mb-1 { .lg:ml-8 { .lg:mb-[120px] { .lg:mt-8 { .lg:mr-9 { .lg:mr-10 { .lg:ml-10 { .lg:ml-4 { .lg:ml-3 { .lg:block { .lg:inline-block { .lg:flex { .lg:grid { .lg:hidden { .lg:h-full { .lg:h-36 { .lg:h-6 { .lg:h-[240px] { .lg:h-[180px] { .lg:h-[160px] { .lg:h-[120px] { .lg:h-[80px] { .lg:h-20 { .lg:h-56 { .lg:h-40 { .lg:h-min { .lg:h-14 { .lg:h-fit { .lg:h-9 { .lg:h-8 { .lg:max-h-[70vh] { .lg:max-h-[50vh] { .lg:min-h-[46rem] { .lg:w-48 { .lg:w-[24rem] { .lg:w-[48rem] { .lg:w-auto { .lg:w-[36rem] { .lg:w-fit { .lg:w-1/2 { .lg:w-64 { .lg:max-w-lg { .lg:grow { .lg:grid-cols-2 { .lg:grid-cols-3 { .lg:grid-cols-4 { .lg:grid-cols-12 { .lg:grid-cols-[50fr_70fr] { .lg:grid-rows-1 { .lg:flex-row { .lg:flex-col { .lg:items-start { .lg:items-end { .lg:items-center { .lg:justify-end { .lg:justify-center { .lg:justify-between { .lg:gap-10 { .lg:gap-24 { .lg:gap-12 { .lg:gap-6 { .lg:gap-x-12 { .lg:gap-y-20 { .lg:space-y-0 > :not([hidden]) ~ :not([hidden]) { .lg:space-y-10 > :not([hidden]) ~ :not([hidden]) { .lg:divide-x > :not([hidden]) ~ :not([hidden]) { .lg:divide-y-0 > :not([hidden]) ~ :not([hidden]) { .lg:divide-y > :not([hidden]) ~ :not([hidden]) { .lg:overflow-auto { .lg:border-0 { .lg:border-t { .lg:border-l { .lg:border-b { .lg:border-green-900 { .lg:border-brown-300 { .lg:bg-white { .lg:bg-green-900 { .lg:bg-gradient-to-b { .lg:from-[#004C45_50%] { .lg:from-[#F5F5F0_50%] { .lg:to-[#fff_50%] { .lg:p-32 { .lg:p-0 { .lg:p-16 { .lg:p-6 { .lg:p-7 { .lg:py-[80px] { .lg:px-12 { .lg:py-10 { .lg:px-10 { .lg:px-16 { .lg:px-4 { .lg:px-8 { .lg:py-8 { .lg:py-28 { .lg:px-6 { .lg:px-0 { .lg:py-0 { .lg:py-2 { .lg:px-2 { .lg:pb-0 { .lg:pt-40 { .lg:pt-8 { .lg:pt-28 { .lg:pb-32 { .lg:pt-6 { .lg:pt-16 { .lg:pr-16 { .lg:pl-16 { .lg:pt-4 { .lg:pb-12 { .lg:pt-20 { .lg:pr-8 { .lg:pl-[inherit] { .lg:pt-60 { .lg:pt-32 { .lg:pl-12 { .lg:pr-6 { .lg:pl-8 { .lg:text-center { .lg:text-right { .lg:text-[16rem] { .lg:text-[10rem] { .lg:text-white { .lg:text-brown-300 { .lg:text-black { .lg:text-green-500 { .lg:no-underline { .lg:placeholder:text-brown-300::-moz-placeholder { .lg:placeholder:text-brown-300::placeholder { .lg:hover:bg-green-700:hover { .lg:hover:underline:hover { @media (min-width: 1280px) { .xl:-bottom-10 { .xl:col-span-2 { .xl:col-span-3 { .xl:col-start-3 { .xl:m-40 { .xl:my-10 { .xl:mx-auto { .xl:mb-8 { .xl:mt-16 { .xl:mt-20 { .xl:mt-28 { .xl:mt-56 { .xl:ml-4 { .xl:w-[39rem] { .xl:max-w-[1200px] { .xl:grid-cols-3 { .xl:grid-cols-5 { .xl:gap-32 { .xl:gap-16 { .xl:p-52 { .xl:px-16 { .xl:px-10 { .xl:pr-24 { .xl:pl-24 { .xl:pt-16 { .xl:pb-20 { .xl:pt-20 { .xl:pt-40 { @media (min-width: 1440px) { .\32xl:hidden { .\32xl:w-96 {
|
It's also worth noting that when using In our
Doesn't work, but adding |
Can you upgrade to v3.3.5 and check again? Pretty sure this is the same as #12113 which is fixed. |
Sure, I'll try that! Thanks for the quick response. After some time, I got it down to the following code that generates invalid styles:
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./**/*.html"],
theme: {
fontSize: {
"9xl": "3.875rem",
"10xl": "4.875rem"
},
screens: {
md: "768px",
lg: "1024px"
},
},
plugins: [],
};
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "tailwindcss/utilities";
@layer base {
@screen md {
/* helloworld */
.h-lg {
@apply text-10xl;
}
.h1 {
@apply text-9xl;
}
}
}
<div class="lg:h1"></div> Output, lines 527-533: @media (min-width: 1024px) {
@media (min-width: 768px) {
/* helloworld */
{
font-size: 4.875rem;
} |
Updating WORKED! Thank you so much, been on this for a LONG time (days lol) Closing this ticket. Appreciate the help 😄 |
Also I wanted to mention that this problem doesn't occur if the rule |
What version of Tailwind CSS are you using?
3.3.3
What build tool (or framework if it abstracts the build tool) are you using?
postcss 8.4.4
What version of Node.js are you using?
18.14.4
What browser are you using?
N/A
What operating system are you using?
Windows
Reproduction URL
https://play.tailwindcss.com/LOOZi6FfKB
This URL has the same styles as our project, but in tailwind play, it generates correct styles. In our project, tailwind generates invalid styles that have css rulesets without selectors. See below.
Describe your issue
Tailwind generates styles that are invalid, such as
which doesn't have a selector.
See full code in comment below.
I had believed this to be an issue with postcss originally and opened a ticket, but it was closed and I was told it's a problem with tailwind. postcss/postcss#1893
The text was updated successfully, but these errors were encountered: