---
title: Introduction to gnostic UI
description: "Install Astro components with the shadcn CLI, compose website blocks, and create a brand preset. Start with setup guides and practical examples."
sidebar:
    label: Introduction
seo:
    title: "Introduction to gnostic UI for Astro: setup, components, and themes"
---

gnostic UI is a collection of Astro components and blocks give anyone a modern, consistent, and accessible design system. Set up the shared styles and helpers
once, then add the components and blocks your site needs.

## Get started

**[Installation](/docs/installation)**

Set up Astro with the shadcn CLI, or install the shared packages and files manually.

**[Agent skills](/docs/agent-skills)**

Install or download instructions for your coding agent to use Gnostic UI.

**[Port Base-UI To Astro](/docs/base-ui-to-astro)**

Move Base UI behavior to Astro and keep shadcn semantic tokens.

**[Theming](/docs/theming)**

Choose a visual style and color palette. Use one preset for colors, fonts, radius, and
component styles.

**[Theme generator](/themes)**

Build a preset, preview it across components, and export it for your project.

## Add to your site

Browse components, patterns, and blocks to find the parts you need.

**[Components](/components)**

Browse individual controls and their source.

**[Patterns](/patterns)**

Browse visual effects and their source.

**[Blocks](/blocks)**

Browse complete sections and their source.

**[Templates](/templates)**

Browse prebuilt website templates Coming soon

### Polymorphic props

:::note
Pass an `as` prop to change the root HTML element of a component that supports it.
For example, `<Card as="a" href="/projects">...</Card>` renders the card as a link.

This serves a similar purpose to the [Base UI `render` prop](https://base-ui.com/react/handbook/composition)
or the [Radix `asChild` prop](https://www.radix-ui.com/primitives/docs/guides/composition).
Gnostic uses a tag name: `as` does not accept a callback or clone a child component.
Pass the selected element's attributes directly to the component.

Use polymorphic roots for layout and visual containers that do not require a
specific HTML element. Keep required tags for native controls and restrict tag
choices when behavior or HTML structure requires it. Support is listed on each
component page; not every component or part accepts `as`.

Choose a tag that permits the content inside it. A card rendered as a link must
not contain other links, buttons, or other interactive controls.
:::

## Build a business website

Use the [local business website guide](/docs/astro-business-websites) to plan service pages, choose blocks, apply your brand, and prepare content for search.
