Skip to content

Instantly share code, notes, and snippets.

@wfpaisa
Created August 10, 2025 13:55
Show Gist options
  • Select an option

  • Save wfpaisa/db8f6dc32513d557f129da9f9007e32b to your computer and use it in GitHub Desktop.

Select an option

Save wfpaisa/db8f6dc32513d557f129da9f9007e32b to your computer and use it in GitHub Desktop.
Ejemplo de un problema con microfrontends creando estilos por componente, se vuelve muy grande los archivos rapidamente
/* This file is auto-generated. Do not edit directly. */
/*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme {
:root, :host {
--spacing: 0.25rem;
--text-xs: 0.75rem;
--text-xs--line-height: calc(1 / 0.75);
--text-sm: 0.875rem;
--text-sm--line-height: calc(1.25 / 0.875);
--text-2xl: 1.5rem;
--text-2xl--line-height: calc(2 / 1.5);
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
--default-transition-duration: 150ms;
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
}
@layer utilities {
.relative {
position: relative;
}
.m-0 {
margin: calc(var(--spacing) * 0);
}
.m-4 {
margin: calc(var(--spacing) * 4);
}
.mx-4 {
margin-inline: calc(var(--spacing) * 4);
}
.mx-auto {
margin-inline: auto;
}
.mt-auto {
margin-top: auto;
}
.mr-2 {
margin-right: calc(var(--spacing) * 2);
}
.mb-4 {
margin-bottom: calc(var(--spacing) * 4);
}
.ml-2 {
margin-left: calc(var(--spacing) * 2);
}
.ml-auto {
margin-left: auto;
}
.block {
display: block;
}
.flex {
display: flex;
}
.hidden {
display: none;
}
.inline-flex {
display: inline-flex;
}
.h-8 {
height: calc(var(--spacing) * 8);
}
.h-full {
height: 100%;
}
.w-8 {
width: calc(var(--spacing) * 8);
}
.w-80 {
width: calc(var(--spacing) * 80);
}
.w-full {
width: 100%;
}
.shrink-0 {
flex-shrink: 0;
}
.animate-slidedown {
animation: slidedown 0.45s ease-in-out;
}
.animate-slideup {
animation: slideup 0.45s cubic-bezier(0, 1, 0, 1);
}
.cursor-pointer {
cursor: pointer;
}
.list-none {
list-style-type: none;
}
.flex-col {
flex-direction: column;
}
.items-center {
align-items: center;
}
.items-start {
align-items: flex-start;
}
.justify-between {
justify-content: space-between;
}
.justify-center {
justify-content: center;
}
.gap-2 {
gap: calc(var(--spacing) * 2);
}
.overflow-hidden {
overflow: hidden;
}
.overflow-y-auto {
overflow-y: auto;
}
.overflow-y-hidden {
overflow-y: hidden;
}
.rounded {
border-radius: 0.25rem;
}
.rounded-border {
border-radius: var(--p-content-border-radius);
}
.rounded-full {
border-radius: calc(infinity * 1px);
}
.rounded-none {
border-radius: 0;
}
.border {
border-style: var(--tw-border-style);
border-width: 1px;
}
.border-0 {
border-style: var(--tw-border-style);
border-width: 0px;
}
.border-t {
border-top-style: var(--tw-border-style);
border-top-width: 1px;
}
.border-surface {
border-color: var(--p-content-border-color);
}
.bg-primary {
background-color: var(--p-primary-color);
@supports (color: color-mix(in lab, red, red)) {
background-color: color-mix(in srgb, var(--p-primary-color) calc(100% * 1), transparent);
}
}
.bg-transparent {
background-color: transparent;
}
.p-0 {
padding: calc(var(--spacing) * 0);
}
.p-1 {
padding: calc(var(--spacing) * 1);
}
.p-2 {
padding: calc(var(--spacing) * 2);
}
.p-4 {
padding: calc(var(--spacing) * 4);
}
.px-6 {
padding-inline: calc(var(--spacing) * 6);
}
.py-0 {
padding-block: calc(var(--spacing) * 0);
}
.pt-4 {
padding-top: calc(var(--spacing) * 4);
}
.pr-0 {
padding-right: calc(var(--spacing) * 0);
}
.pl-4 {
padding-left: calc(var(--spacing) * 4);
}
.text-2xl {
font-size: var(--text-2xl);
line-height: var(--tw-leading, var(--text-2xl--line-height));
}
.text-sm {
font-size: var(--text-sm);
line-height: var(--tw-leading, var(--text-sm--line-height));
}
.text-xs {
font-size: var(--text-xs);
line-height: var(--tw-leading, var(--text-xs--line-height));
}
.font-bold {
--tw-font-weight: var(--font-weight-bold);
font-weight: var(--font-weight-bold);
}
.font-medium {
--tw-font-weight: var(--font-weight-medium);
font-weight: var(--font-weight-medium);
}
.font-semibold {
--tw-font-weight: var(--font-weight-semibold);
font-weight: var(--font-weight-semibold);
}
.bg-emphasis {
background: var(--p-content-hover-background);
color: var(--p-content-hover-color);
}
.text-muted-color {
color: var(--p-text-muted-color);
}
.text-primary {
color: var(--p-primary-color);
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in srgb, var(--p-primary-color) calc(100% * 1), transparent);
}
}
.text-primary-contrast {
color: var(--p-primary-contrast-color);
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in srgb, var(--p-primary-contrast-color) calc(100% * 1), transparent);
}
}
.text-surface-600 {
color: var(--p-surface-600);
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in srgb, var(--p-surface-600) calc(100% * 1), transparent);
}
}
.text-surface-700 {
color: var(--p-surface-700);
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in srgb, var(--p-surface-700) calc(100% * 1), transparent);
}
}
.transition-all {
transition-property: all;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.transition-colors {
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
transition-duration: var(--tw-duration, var(--default-transition-duration));
}
.duration-150 {
--tw-duration: 150ms;
transition-duration: 150ms;
}
.duration-200 {
--tw-duration: 200ms;
transition-duration: 200ms;
}
.duration-\[400ms\] {
--tw-duration: 400ms;
transition-duration: 400ms;
}
.ease-in-out {
--tw-ease: var(--ease-in-out);
transition-timing-function: var(--ease-in-out);
}
.hover\:bg-surface-100 {
&:hover {
@media (hover: hover) {
background-color: var(--p-surface-100);
@supports (color: color-mix(in lab, red, red)) {
background-color: color-mix(in srgb, var(--p-surface-100) calc(100% * 1), transparent);
}
}
}
}
.md\:visible {
@media (width >= 48rem) {
visibility: visible;
}
}
.md\:hidden {
@media (width >= 48rem) {
display: none;
}
}
.dark\:text-surface-100 {
@media (prefers-color-scheme: dark) {
color: var(--p-surface-100);
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in srgb, var(--p-surface-100) calc(100% * 1), transparent);
}
}
}
.dark\:text-surface-200 {
@media (prefers-color-scheme: dark) {
color: var(--p-surface-200);
@supports (color: color-mix(in lab, red, red)) {
color: color-mix(in srgb, var(--p-surface-200) calc(100% * 1), transparent);
}
}
}
.dark\:hover\:bg-surface-700 {
@media (prefers-color-scheme: dark) {
&:hover {
@media (hover: hover) {
background-color: var(--p-surface-700);
@supports (color: color-mix(in lab, red, red)) {
background-color: color-mix(in srgb, var(--p-surface-700) calc(100% * 1), transparent);
}
}
}
}
}
.dark\:hover\:bg-surface-800 {
@media (prefers-color-scheme: dark) {
&:hover {
@media (hover: hover) {
background-color: var(--p-surface-800);
@supports (color: color-mix(in lab, red, red)) {
background-color: color-mix(in srgb, var(--p-surface-800) calc(100% * 1), transparent);
}
}
}
}
}
}
@keyframes enter {
from {
opacity: var(--p-enter-opacity, 1);
transform: translate3d(var(--p-enter-translate-x, 0), var(--p-enter-translate-y, 0), 0) scale3d(var(--p-enter-scale, 1), var(--p-enter-scale, 1), var(--p-enter-scale, 1)) rotate(var(--p-enter-rotate, 0));
}
}
@keyframes leave {
to {
opacity: var(--p-leave-opacity, 1);
transform: translate3d(var(--p-leave-translate-x, 0), var(--p-leave-translate-y, 0), 0) scale3d(var(--p-leave-scale, 1), var(--p-leave-scale, 1), var(--p-leave-scale, 1)) rotate(var(--p-leave-rotate, 0));
}
}
@property --tw-border-style {
syntax: "*";
inherits: false;
initial-value: solid;
}
@property --tw-font-weight {
syntax: "*";
inherits: false;
}
@property --tw-duration {
syntax: "*";
inherits: false;
}
@property --tw-ease {
syntax: "*";
inherits: false;
}
@keyframes slidedown {
0% {
max-height: 0;
}
100% {
max-height: auto;
}
}
@keyframes slideup {
0% {
max-height: 1000px;
}
100% {
max-height: 0;
}
}
@layer properties {
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
*, ::before, ::after, ::backdrop {
--tw-border-style: solid;
--tw-font-weight: initial;
--tw-duration: initial;
--tw-ease: initial;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment