/** @jsxImportSource mono-jsx */ interface Props { title: string } interface State { title: string } export function Home(this: FC, props: Props) { this.title = props.title return (

Sensible UI

shadcn/ui style primitives using semantic CSS


How to install

Simply add this to your head tag in your HTML

            
              <link href="https://cdn.jsdelivr.net/npm/@faith-tools/sensible-ui@latest/dist/sensible-ui.min.css" type="text/css"
              rel="stylesheet">
            
          

Instructions on how to use this with Tailwind CSS and shadcn/ui CSS themes coming soon!


Typography

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

This is a paragraph with bold text, italic text, and a link.

Here's some inline code and a code block:

          console.log('Hello, World!');
        
This is a blockquote. It's styled automatically.
  • Unordered list item 1
  • Unordered list item 2
  • Unordered list item 3
  1. Ordered list item 1
  2. Ordered list item 2
  3. Ordered list item 3

Buttons

Variants

Sizes

States

As Link

Link as Button

Form elements

Form in a card

Choose a cardinal direction:

Card

Today is the Lord's day

Fart

I can put whatever info I want in here

Badge

Default Secondary Outline Destructive

Stacks (helper classes)

This is an .x-stack

New

This is a .y-stack

New

Spinner

All you need to do is add aria-busy="true" to any element

And, if you want an overlay, you'll need to also add data-variant="overlay"

This is a card

All the things and contents in here


Item

Basic Item

A simple item with title and description.

Link Item

Another simple item with title and description.


Accordion

What is an accordion?

All I know is that it plays music...

What is Sensible UI?

Think "shadcn/ui" as a semantic CSS library. We are a fork of BasecoatCSS and influenced by Oat

Can you have a connected accordion?

Yep!

Who lives in a pineapple under the sea?

I'm afraid that's copyrighted.


Description List

Name
Godzilla
Born
1952
Birthplace
Japan
Color
Green

Single term, multiple descriptions

Firefox
A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
The Red Panda also known as the Lesser Panda, Wah, Bear Cat or Firefox, is a mostly herbivorous mammal, slightly larger than a domestic cat (60 cm long).

Multiple terms, single description

Fx
Firefox
Mozilla Firefox
A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.
JavaScript
JS
A free, open source, cross-platform, graphical web browser developed by the Mozilla Corporation and hundreds of volunteers.

Here's a card dl.card

Banana
A yellow fruit that is easy to peel.
Which also grows on a tree.
Cashew
A tan nut without a peel.
Cherry
A red fruit that is hard to peel.
) }