-
Notifications
You must be signed in to change notification settings - Fork 13
Feature/tailwind v4 update #741
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
base: master
Are you sure you want to change the base?
Changes from 5 commits
d0571c9
8f37251
a3ee1c1
bc20ae2
37271f8
1f76668
0c4094e
498ddd5
1d47873
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,138 @@ | ||
| @import 'components/vue-slider'; | ||
| @import 'components/price-slider'; | ||
| @import 'components/pagination'; | ||
| @import 'components/autocomplete'; | ||
| @import './components/vue-slider.css' layer(base); | ||
| @import './components/price-slider.css' layer(base); | ||
| @import './components/pagination.css' layer(base); | ||
| @import './components/autocomplete.css' layer(base); | ||
|
|
||
| @tailwind base; | ||
| @tailwind components; | ||
| @tailwind utilities; | ||
| @import 'tailwindcss'; | ||
| @config "../../tailwind.config.js"; | ||
|
|
||
| @plugin '@tailwindcss/forms'; | ||
| @plugin '@tailwindcss/typography'; | ||
| @plugin 'tailwind-scrollbar-hide'; | ||
|
|
||
| @theme { | ||
| --color-primary: color-mix(in srgb, var(--primary, #2fbc85) calc(100% * 1), transparent); | ||
| --color-primary-text: color-mix(in srgb, var(--primary-text, #fff) calc(100% * 1), transparent); | ||
| --color-secondary: color-mix(in srgb, var(--secondary, #202f60) calc(100% * 1), transparent); | ||
| --color-secondary-text: color-mix(in srgb, var(--secondary-text, #fff) calc(100% * 1), transparent); | ||
| --color-conversion: color-mix(in srgb, var(--conversion, #22c55e) calc(100% * 1), transparent); | ||
| --color-conversion-text: color-mix(in srgb, var(--conversion-text, #fff) calc(100% * 1), transparent); | ||
| --color-foreground-emphasis: color-mix(in srgb, var(--foreground-emphasis, #0f172a) calc(100% * 1), transparent); | ||
| --color-foreground: color-mix(in srgb, var(--foreground, #1e293b) calc(100% * 1), transparent); | ||
|
||
| --color-foreground-muted: color-mix(in srgb, var(--foreground-muted, #475569) calc(100% * 1), transparent); | ||
| --color-border-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --color-border: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| --color-border-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
| --color-shadow-emphasis: color-mix(in srgb, var(--shadow-emphasis, #64748b) calc(100% * 1), transparent); | ||
| --color-shadow: color-mix(in srgb, var(--shadow, #94a3b8) calc(100% * 1), transparent); | ||
| --color-shadow-muted: color-mix(in srgb, var(--shadow-muted, #cbd5e1) calc(100% * 1), transparent); | ||
| --color-background-emphasis: color-mix(in srgb, var(--background-emphasis, #e2e8f0) calc(100% * 1), transparent); | ||
| --color-background: color-mix(in srgb, var(--background, #f1f5f9) calc(100% * 1), transparent); | ||
| --color-background-muted: color-mix(in srgb, var(--background-muted, #f8fafc) calc(100% * 1), transparent); | ||
| --color-backdrop: color-mix(in srgb, var(--backdrop, rgba(0, 0, 0, 0.4)) calc(100% * 1), transparent); | ||
|
|
||
| --z-index-header: 100; | ||
| --z-index-header-autocomplete-overlay: 10; | ||
| --z-index-header-autocomplete: 20; | ||
| --z-index-header-dropdown: 30; | ||
| --z-index-header-minicart: 30; | ||
| --z-index-header-autocomplete-button: 30; | ||
| --z-index-notifications: 110; | ||
| --z-index-slideover: 120; | ||
| --z-index-slideover-overlay: 10; | ||
| --z-index-slideover-sidebar: 20; | ||
| --z-index-popup: 130; | ||
| --z-index-popup-actions: 10; | ||
|
|
||
| --text-color-emphasis: color-mix(in srgb, var(--foreground-emphasis, #0f172a) calc(100% * 1), transparent); | ||
| --text-color: color-mix(in srgb, var(--foreground, #1e293b) calc(100% * 1), transparent); | ||
| --text-color-muted: color-mix(in srgb, var(--foreground-muted, #475569) calc(100% * 1), transparent); | ||
|
|
||
| --border-color-default-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --border-color-default: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| --border-color-default-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
|
|
||
| --border-color-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --border-color-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
|
|
||
| --background-color-emphasis: color-mix(in srgb, var(--background-emphasis, #e2e8f0) calc(100% * 1), transparent); | ||
| --background-color: color-mix(in srgb, var(--background, #f1f5f9) calc(100% * 1), transparent); | ||
| --background-color-muted: color-mix(in srgb, var(--background-muted, #f8fafc) calc(100% * 1), transparent); | ||
|
|
||
| --ring-color-default-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --ring-color-default: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| --ring-color-default-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
|
|
||
| --ring-color-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --ring-color: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| --ring-color-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
|
|
||
| --outline-color-default-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --outline-color-default: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| --outline-color-default-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
|
|
||
| --outline-color-emphasis: color-mix(in srgb, var(--border-emphasis, #94a3b8) calc(100% * 1), transparent); | ||
| --outline-color: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| --outline-color-muted: color-mix(in srgb, var(--border-muted, #f1f5f9) calc(100% * 1), transparent); | ||
|
|
||
| --box-shadow-color-default-emphasis: color-mix(in srgb, var(--shadow-emphasis, #64748b) calc(100% * 1), transparent); | ||
| --box-shadow-color-default: color-mix(in srgb, var(--shadow, #94a3b8) calc(100% * 1), transparent); | ||
| --box-shadow-color-default-muted: color-mix(in srgb, var(--shadow-muted, #cbd5e1) calc(100% * 1), transparent); | ||
|
|
||
| --box-shadow-color-emphasis: color-mix(in srgb, var(--shadow-emphasis, #0f172a) calc(100% * 1), transparent); | ||
| --box-shadow-color: color-mix(in srgb, var(--shadow, #334155) calc(100% * 1), transparent); | ||
| --box-shadow-color-muted: color-mix(in srgb, var(--shadow-muted, #64748b) calc(100% * 1), transparent); | ||
| } | ||
|
|
||
| @utility container { | ||
| margin-inline: auto; | ||
| padding-inline: 1.25rem; | ||
| } | ||
|
|
||
| @utility text { | ||
| color: var(--text-color); | ||
| } | ||
| @utility text-emphasis { | ||
| color: var(--text-color-emphasis); | ||
| } | ||
| @utility text-muted { | ||
| color: var(--text-color-muted); | ||
| } | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the scoped colors we don't need this, only For the time being, the "full version" does support it: |
||
|
|
||
| @utility bg { | ||
| background-color: var(--background-color); | ||
| } | ||
| @utility bg-emphasis { | ||
| background-color: var(--background-color-emphasis); | ||
| } | ||
| @utility bg-muted { | ||
| background-color: var(--background-color-muted); | ||
| } | ||
|
|
||
| /* | ||
| The default border color has changed to `currentColor` in Tailwind CSS v4, | ||
| so we've added these compatibility styles to make sure everything still | ||
| looks the same as it did with Tailwind CSS v3. | ||
| If we ever want to remove these styles, we need to add an explicit border | ||
| color utility to any element that depends on these defaults. | ||
| */ | ||
| @layer base { | ||
| *, | ||
| ::after, | ||
| ::before, | ||
| ::backdrop, | ||
| ::file-selector-button { | ||
| border-color: color-mix(in srgb, var(--border, #cbd5e1) calc(100% * 1), transparent); | ||
| } | ||
| } | ||
|
|
||
| [v-cloak] { | ||
| display: none; | ||
| } | ||
|
|
||
| [v-blur] { | ||
| @apply animate-pulse blur; | ||
| @apply animate-pulse blur-sm; | ||
| } | ||
|
|
||
| * { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.