Code Monkey home page Code Monkey logo

ui's Introduction

Sail UI

npm GitHub license

A collection of basic UI components built on Tailwind CSS.

Demo.

Who's this for?

Serial Users

If you're already using Tailwind and you find yourself repeatedly creating a few common component classes for every project, Sail UI is for you.

This package helps you with a few basic components, so that you can start building your prototype / draft / MVP before you get down to polishing your fully custom design.

Use .btn, .card and other classes you're familiar with to get you started and customize them later when you need to.

Newcomers

If you're moving away from another framework to Tailwind and you're afraid of taking the leap because you don't want to build all of those lovely components from scratch yourself, Sail UI will help you with the transition.

Installation

npm install sailui

Import sailui/base.css and sailui/components.css after @tailwind base and @tailwind components directives respectively.

@import "tailwindcss/base";

@import 'sailui/base';

@import "tailwindcss/components";

@import 'sailui/components';

@import "tailwindcss/utilities";

Usage

Start using Sail UI component classes just like how you're used to.

<a href="/" class="btn"></a>

What's Included

Basic Components

These components are included:

Buttons

<button class="btn">Sign Up</button>

<button class="btn btn-outline">Find Out More</button>

Input

<div class="field">
    <label for="email">Email</label>

    <input type="text" class="input" placeholder="[email protected]" id="email">

    <div class="note">We won't send you spam.</div>
</div>

Select

<div class="field">
    <label for="category">Category</label>

    <select class="input select" id="category">
        <option>Best Customer</option>
        <option>Bester Customer</option>
        <option>Bestest Customer</option>
    </select>
</div>

Cards

<div class="card">
    Lorem ipsum dolor sit amet...
</div>

Alerts

<div class="alert">
    <strong>Normal stuff!</strong> zero concerns.
</div>

<div class="alert alert-blue">
    <strong>All is clear!</strong> So far so good.
</div>

<div class="alert alert-green">
    <strong>Fantastic!</strong> You did it.
</div>

<div class="alert alert-yellow">
    <strong>Watch out!</strong> Things are going down south.
</div>

<div class="alert alert-red">
    <strong>Too late!</strong> It's hit the fan.
</div>

Badges

<span class="badge">Default</span>

<span class="badge badge-light">Light</span>

<span class="badge badge-blue">Blue</span>

<span class="badge badge-green">Green</span>

<span class="badge badge-yellow">Yellow</span>

<span class="badge badge-red">Red</span>

Typography

Sensible default styles are applied to headings, paragraphs, and other elements of typography. These are the covered elements:

  • h1
  • h2
  • h3
  • h4
  • h5
  • h6
  • p
  • label

Container

The mx-auto style is automatically applied to center the default .container that comes out of the box with Tailwind.

License

The MIT License (MIT). Please see License File for more information.

ui's People

Contributors

matt-daneshvar avatar

Stargazers

Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.