Esta página aún no está disponible en tu idioma.
@studiocms/ui
is the UI library that we use to build StudioCMS. The library is agnostic, meaning that you can use it
in your own Astro projects!
To get started, add the integration to your project.
@studiocms/ui
with Astro 4StudioCMS UI can be used in Astro 5 without any additional configuration. As for Astro v4, @studiocms/ui
requires version v4.5.0
or higher, with the
experimental.directRenderScript
flag turned on.
Install the @studiocms/ui
package with your preferred package manager.
Import and use the @studiocms/ui
integration in your Astro config.
All components in this library are exported from @studiocms/ui/components
. You can import and use the components like this:
@studiocms/ui
with TailwindIf you haven’t already, add Astro’s Tailwind integration to your project.
Disable Tailwind’s preflight ⤴ styles with applyBaseStyles: false
.
Create a CSS file for Tailwind’s base styles. For example src/styles/tailwind.css
.
Import this CSS file in any layout or page that uses Tailwind.