Files
Anthony ShewandGitHub ed03a2b002 fix(examples): css specificity in Tailwind example (#10657)
### Description

As described in #10642, CSS specificity wasn't being handled correctly
in the example. This PR fixes it by ensuring the compiled stylesheet
from the package:
- Uses a prefix. This fixes all specificity issues by itself, but
also...
- Is used directly in the app instead of trying to go through the app's
Tailwind compilation process
- Is applied _before_ the app's stylesheet, so that things can be
properly overridden by the app (since they're later in the CSS
evaluation)

### Testing Instructions

Try it out!
2025-07-11 13:51:24 -06:00

27 lines
535 B
CSS

@import "tailwindcss";
@import "@repo/tailwind-config";
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}
@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}