mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-07 22:18:39 +00:00
Merge pull request #9592 from shadcn-ui/shadcn/fix-base-layer-handling
feat: update handling of base styles
This commit is contained in:
@@ -16,7 +16,16 @@
|
||||
"files": [],
|
||||
"cssVars": {},
|
||||
"css": {
|
||||
"@import \"shadcn/tailwind.css\"": {}
|
||||
"@import \"tw-animate-css\"": {},
|
||||
"@import \"shadcn/tailwind.css\"": {},
|
||||
"@layer base": {
|
||||
"*": {
|
||||
"@apply border-border outline-ring/50": {}
|
||||
},
|
||||
"body": {
|
||||
"@apply bg-background text-foreground": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "registry:style"
|
||||
}
|
||||
@@ -19,7 +19,16 @@
|
||||
"files": [],
|
||||
"cssVars": {},
|
||||
"css": {
|
||||
"@import \"shadcn/tailwind.css\"": {}
|
||||
"@import \"tw-animate-css\"": {},
|
||||
"@import \"shadcn/tailwind.css\"": {},
|
||||
"@layer base": {
|
||||
"*": {
|
||||
"@apply border-border outline-ring/50": {}
|
||||
},
|
||||
"body": {
|
||||
"@apply bg-background text-foreground": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "registry:style"
|
||||
},
|
||||
@@ -40,7 +49,16 @@
|
||||
"files": [],
|
||||
"cssVars": {},
|
||||
"css": {
|
||||
"@import \"shadcn/tailwind.css\"": {}
|
||||
"@import \"tw-animate-css\"": {},
|
||||
"@import \"shadcn/tailwind.css\"": {},
|
||||
"@layer base": {
|
||||
"*": {
|
||||
"@apply border-border outline-ring/50": {}
|
||||
},
|
||||
"body": {
|
||||
"@apply bg-background text-foreground": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "registry:style"
|
||||
},
|
||||
|
||||
@@ -16,7 +16,16 @@
|
||||
"files": [],
|
||||
"cssVars": {},
|
||||
"css": {
|
||||
"@import \"shadcn/tailwind.css\"": {}
|
||||
"@import \"tw-animate-css\"": {},
|
||||
"@import \"shadcn/tailwind.css\"": {},
|
||||
"@layer base": {
|
||||
"*": {
|
||||
"@apply border-border outline-ring/50": {}
|
||||
},
|
||||
"body": {
|
||||
"@apply bg-background text-foreground": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
"type": "registry:style"
|
||||
}
|
||||
@@ -26,7 +26,16 @@ const NEW_YORK_V4_STYLE = {
|
||||
devDependencies: ["tw-animate-css", "shadcn"],
|
||||
registryDependencies: ["utils"],
|
||||
css: {
|
||||
'@import "tw-animate-css"': {},
|
||||
'@import "shadcn/tailwind.css"': {},
|
||||
"@layer base": {
|
||||
"*": {
|
||||
"@apply border-border outline-ring/50": {},
|
||||
},
|
||||
body: {
|
||||
"@apply bg-background text-foreground": {},
|
||||
},
|
||||
},
|
||||
},
|
||||
cssVars: {},
|
||||
files: [],
|
||||
|
||||
Reference in New Issue
Block a user