-
Notifications
You must be signed in to change notification settings - Fork 3
Tailwind v4 integration #27
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
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
035a09c
Upgrade Tailwind dependencies and Vite plugin
cursoragent 37277ca
Migrate Tailwind theme to CSS
cursoragent 7222177
Fix container breakpoint and remove unused borderColor property
cursoragent 3dce529
Remove unused marketing animation definitions from tailwind.css
cursoragent File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,83 +1,192 @@ | ||
| @tailwind base; | ||
| @tailwind components; | ||
| @tailwind utilities; | ||
| @import 'tailwindcss'; | ||
| @import 'tw-animate-css'; | ||
|
|
||
| @layer base { | ||
| :root { | ||
| /* --font-sans: here if you have one */ | ||
| /* --font-mono: here if you got it... */ | ||
| @custom-variant dark (&:is(.dark *)); | ||
|
|
||
| /* prefixed with foreground because it should look good on the background */ | ||
| --foreground-destructive: 345 82.7% 40.8%; | ||
| :root { | ||
| /* --font-sans: here if you have one */ | ||
| /* --font-mono: here if you got it... */ | ||
|
|
||
| --background: 0 0% 100%; | ||
| --foreground: 222.2 84% 4.9%; | ||
| /* prefixed with foreground because it should look good on the background */ | ||
| --foreground-destructive: 345 82.7% 40.8%; | ||
|
|
||
| --muted: 210 40% 93%; | ||
| --muted-foreground: 215.4 16.3% 30%; | ||
| --background: 0 0% 100%; | ||
| --foreground: 222.2 84% 4.9%; | ||
|
|
||
| --muted-secondary: 210 40% 93%; | ||
| --muted-secondary-foreground: 215.4 9.3% 41%; | ||
| --muted: 210 40% 93%; | ||
| --muted-foreground: 215.4 16.3% 30%; | ||
|
|
||
| --popover: 0 0% 100%; | ||
| --popover-foreground: 222.2 84% 4.9%; | ||
| --muted-secondary: 210 40% 93%; | ||
| --muted-secondary-foreground: 215.4 9.3% 41%; | ||
|
|
||
| --card: 0 0% 100%; | ||
| --card-foreground: 222.2 84% 4.9%; | ||
| --popover: 0 0% 100%; | ||
| --popover-foreground: 222.2 84% 4.9%; | ||
|
|
||
| --border: 214.3 31.8% 91.4%; | ||
| --input: 214.3 31.8% 91.4%; | ||
| --input-invalid: 0 84.2% 60.2%; | ||
| --card: 0 0% 100%; | ||
| --card-foreground: 222.2 84% 4.9%; | ||
|
|
||
| --primary: 222.2 47.4% 11.2%; | ||
| --primary-foreground: 210 40% 98%; | ||
| --border: 214.3 31.8% 91.4%; | ||
| --input: 214.3 31.8% 91.4%; | ||
| --input-invalid: 0 84.2% 60.2%; | ||
|
|
||
| --secondary: 210 20% 83%; | ||
| --secondary-foreground: 222.2 47.4% 11.2%; | ||
| --primary: 222.2 47.4% 11.2%; | ||
| --primary-foreground: 210 40% 98%; | ||
|
|
||
| --accent: 210 40% 90%; | ||
| --accent-foreground: 222.2 47.4% 11.2%; | ||
| --secondary: 210 20% 83%; | ||
| --secondary-foreground: 222.2 47.4% 11.2%; | ||
|
|
||
| --destructive: 0 70% 50%; | ||
| --destructive-foreground: 210 40% 98%; | ||
| --accent: 210 40% 90%; | ||
| --accent-foreground: 222.2 47.4% 11.2%; | ||
|
|
||
| --ring: 215 20.2% 65.1%; | ||
| --destructive: 0 70% 50%; | ||
| --destructive-foreground: 210 40% 98%; | ||
|
|
||
| --radius: 0.5rem; | ||
| } | ||
| --ring: 215 20.2% 65.1%; | ||
|
|
||
| --radius: 0.5rem; | ||
| } | ||
|
|
||
| .dark { | ||
| --background: 222.2 84% 4.9%; | ||
| --foreground: 210 40% 98%; | ||
|
|
||
| /* prefixed with foreground because it should look good on the background */ | ||
| --foreground-destructive: -4 84% 60%; | ||
|
|
||
| --muted: 217.2 32.6% 12%; | ||
| --muted-foreground: 215 20.2% 65.1%; | ||
|
|
||
| --popover: 222.2 84% 4.9%; | ||
| --popover-foreground: 210 40% 98%; | ||
|
|
||
| .dark { | ||
| --background: 222.2 84% 4.9%; | ||
| --foreground: 210 40% 98%; | ||
| --card: 222.2 84% 4.9%; | ||
| --card-foreground: 210 40% 98%; | ||
|
|
||
| /* prefixed with foreground because it should look good on the background */ | ||
| --foreground-destructive: -4 84% 60%; | ||
| --border: 217.2 32.6% 17.5%; | ||
| --input: 217.2 32.6% 17.5%; | ||
| --input-invalid: 0 62.8% 30.6%; | ||
|
|
||
| --muted: 217.2 32.6% 12%; | ||
| --muted-foreground: 215 20.2% 65.1%; | ||
| --primary: 210 40% 98%; | ||
| --primary-foreground: 222.2 47.4% 11.2%; | ||
|
|
||
| --popover: 222.2 84% 4.9%; | ||
| --popover-foreground: 210 40% 98%; | ||
| --secondary: 217.2 20% 24%; | ||
| --secondary-foreground: 210 40% 98%; | ||
|
|
||
| --card: 222.2 84% 4.9%; | ||
| --card-foreground: 210 40% 98%; | ||
| --accent: 217.2 32.6% 10%; | ||
| --accent-foreground: 210 40% 98%; | ||
|
|
||
| --border: 217.2 32.6% 17.5%; | ||
| --input: 217.2 32.6% 17.5%; | ||
| --input-invalid: 0 62.8% 30.6%; | ||
| --destructive: 0 60% 40%; | ||
| --destructive-foreground: 0 85.7% 97.3%; | ||
|
|
||
| --primary: 210 40% 98%; | ||
| --primary-foreground: 222.2 47.4% 11.2%; | ||
| --ring: 217.2 32.6% 60%; | ||
| } | ||
|
|
||
| @theme inline { | ||
| --radius-sm: calc(var(--radius) - 4px); | ||
| --radius-md: calc(var(--radius) - 2px); | ||
| --radius-lg: var(--radius); | ||
| --radius-xl: calc(var(--radius) + 4px); | ||
| --color-background: hsl(var(--background)); | ||
| --color-foreground: hsl(var(--foreground)); | ||
| --color-foreground-destructive: hsl(var(--foreground-destructive)); | ||
| --color-muted: hsl(var(--muted)); | ||
| --color-muted-foreground: hsl(var(--muted-foreground)); | ||
| --color-muted-secondary: hsl(var(--muted-secondary)); | ||
| --color-muted-secondary-foreground: hsl(var(--muted-secondary-foreground)); | ||
| --color-popover: hsl(var(--popover)); | ||
| --color-popover-foreground: hsl(var(--popover-foreground)); | ||
| --color-card: hsl(var(--card)); | ||
| --color-card-foreground: hsl(var(--card-foreground)); | ||
| --color-border: hsl(var(--border)); | ||
| --color-input: hsl(var(--input)); | ||
| --color-input-invalid: hsl(var(--input-invalid)); | ||
| --color-primary: hsl(var(--primary)); | ||
| --color-primary-foreground: hsl(var(--primary-foreground)); | ||
| --color-secondary: hsl(var(--secondary)); | ||
| --color-secondary-foreground: hsl(var(--secondary-foreground)); | ||
| --color-accent: hsl(var(--accent)); | ||
| --color-accent-foreground: hsl(var(--accent-foreground)); | ||
| --color-destructive: hsl(var(--destructive)); | ||
| --color-destructive-foreground: hsl(var(--destructive-foreground)); | ||
| --color-ring: hsl(var(--ring)); | ||
| --color-ring-invalid: hsl(var(--foreground-destructive)); | ||
| } | ||
|
|
||
| --secondary: 217.2 20% 24%; | ||
| --secondary-foreground: 210 40% 98%; | ||
| @theme { | ||
| --text-mega: 5rem; | ||
| --text-mega--line-height: 5.25rem; | ||
| --text-mega--font-weight: 700; | ||
| --text-h1: 3.5rem; | ||
| --text-h1--line-height: 3.875rem; | ||
| --text-h1--font-weight: 700; | ||
| --text-h2: 2.5rem; | ||
| --text-h2--line-height: 3rem; | ||
| --text-h2--font-weight: 700; | ||
| --text-h3: 2rem; | ||
| --text-h3--line-height: 2.25rem; | ||
| --text-h3--font-weight: 700; | ||
| --text-h4: 1.75rem; | ||
| --text-h4--line-height: 2.25rem; | ||
| --text-h4--font-weight: 700; | ||
| --text-h5: 1.5rem; | ||
| --text-h5--line-height: 2rem; | ||
| --text-h5--font-weight: 700; | ||
| --text-h6: 1rem; | ||
| --text-h6--line-height: 1.25rem; | ||
| --text-h6--font-weight: 700; | ||
| --text-body-2xl: 2rem; | ||
| --text-body-2xl--line-height: 2.25rem; | ||
| --text-body-xl: 1.75rem; | ||
| --text-body-xl--line-height: 2.25rem; | ||
| --text-body-lg: 1.5rem; | ||
| --text-body-lg--line-height: 2rem; | ||
| --text-body-md: 1.25rem; | ||
| --text-body-md--line-height: 1.75rem; | ||
| --text-body-sm: 1rem; | ||
| --text-body-sm--line-height: 1.25rem; | ||
| --text-body-xs: 0.875rem; | ||
| --text-body-xs--line-height: 1.125rem; | ||
| --text-body-2xs: 0.75rem; | ||
| --text-body-2xs--line-height: 1rem; | ||
| --text-caption: 1.125rem; | ||
| --text-caption--line-height: 1.5rem; | ||
| --text-caption--font-weight: 600; | ||
| --text-button: 0.75rem; | ||
| --text-button--line-height: 1rem; | ||
| --text-button--font-weight: 700; | ||
| --animate-caret-blink: caret-blink 1.25s ease-out infinite; | ||
|
|
||
| @keyframes caret-blink { | ||
| 0%, | ||
| 70%, | ||
| 100% { | ||
| opacity: 1; | ||
| } | ||
|
|
||
| 20%, | ||
| 50% { | ||
| opacity: 0; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| --accent: 217.2 32.6% 10%; | ||
| --accent-foreground: 210 40% 98%; | ||
| @utility container { | ||
| margin-inline: auto; | ||
| padding-inline: 2rem; | ||
|
|
||
| --destructive: 0 60% 40%; | ||
| --destructive-foreground: 0 85.7% 97.3%; | ||
| @media (width >= 1536px) { | ||
| & { | ||
| max-width: 1400px; | ||
| } | ||
| } | ||
| } | ||
|
|
||
| --ring: 217.2 32.6% 60%; | ||
| @layer base { | ||
| *, | ||
| ::after, | ||
| ::before, | ||
| ::backdrop, | ||
| ::file-selector-button { | ||
| border-color: hsl(var(--border)); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.