You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The CLI will update the project CSS file. Once updated, the new colors will be available to be used as utility classes: `bg-brand` and `text-brand-accent`.
87
+
88
+
</TabsContent>
89
+
90
+
<TabsContentvalue="v3">
91
+
52
92
To add a new color you need to add it to `cssVars` and `tailwind.config.theme.extend.colors`.
53
93
54
94
```json showLineNumbers {10-19} {24-29}
@@ -90,9 +130,47 @@ To add a new color you need to add it to `cssVars` and `tailwind.config.theme.ex
90
130
91
131
The CLI will update the project CSS file and tailwind.config.js file. Once updated, the new colors will be available to be used as utility classes: `bg-brand` and `text-brand-accent`.
92
132
93
-
### How do I add a Tailwind animation?
133
+
</TabsContent>
134
+
</Tabs>
135
+
136
+
### How do I add or override a Tailwind theme variable?
@@ -71,7 +82,7 @@ A description of your registry item. This can be longer and more detailed than t
71
82
72
83
### type
73
84
74
-
The `type` property is used to specify the type of your registry item.
85
+
The `type` property is used to specify the type of your registry item. This is used to determine the type and target path of the item when resolved for a project.
@@ -90,6 +101,8 @@ The following types are supported:
90
101
|`registry:ui`| Use for UI components and single-file primitives |
91
102
|`registry:page`| Use for page or file-based routes. |
92
103
|`registry:file`| Use for miscellaneous files. |
104
+
|`registry:style`| Use for registry styles. eg. `new-york`|
105
+
|`registry:theme`| Use for themes. |
93
106
94
107
### author
95
108
@@ -122,7 +135,7 @@ Use `@version` to specify the version of your registry item.
122
135
123
136
### registryDependencies
124
137
125
-
Used for registry dependencies. Can be names or URLs.
138
+
Used for registry dependencies. Can be names or URLs. Use the name of the item to reference shadcn/ui components and urls to reference other registries.
126
139
127
140
- For `shadcn/ui` registry items such as `button`, `input`, `select`, etc use the name eg. `['button', 'input', 'select']`.
128
141
- For custom registry items use the URL of the registry item eg. `['https://example.com/r/hello-world.json']`.
@@ -189,6 +202,8 @@ Use `~` to refer to the root of the project e.g `~/foo.config.js`.
189
202
190
203
### tailwind
191
204
205
+
**DEPRECATED:** Use `cssVars.theme` instead for Tailwind v4 projects.
206
+
192
207
The `tailwind` property is used for tailwind configuration such as `theme`, `plugins` and `content`.
193
208
194
209
You can use the `tailwind.config` property to add colors, animations and plugins to your registry item.
@@ -225,6 +240,9 @@ Use to define CSS variables for your registry item.
0 commit comments