You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Jack Lukic 03f7330867 Update README.md 11 years ago
node lots of fixes to form and button, adds beginning of checkbox docs 11 years ago
specification/modules Renames boilerplate to spec folder, adds commented and uncommented module spec 11 years ago
src lots of fixes to form and button, adds beginning of checkbox docs 11 years ago
.gitignore Adds docs gitignore, removes docs from repo 11 years ago
README.md Update README.md 11 years ago
component.json structure -- typo in component. 11 years ago

README.md

Semantic

Semantic is a set of specifications for sharing UI elements between developers. Semantic is also a UI library to make front end development simpler and easier to learn.

About

Semantic's goal is to define a vocabulary for interface elements based on consensus, and convention.

For developers, this means defining class names for UI elements, outlining states that an elements can exist, and describing common variations of that element.

How

Context sensitive

In Semantic, variations maintain context based on the element they modify, but keep the same vocabulary between element, just like in natural language, the adjective 'big' may have very different implications for a big planet versus a big insect.

For example, a UI Collection like a form you may have a size variation called "large". This may tell individual elements inside the form to change in size:

    <div class="ui large form"></div>

However the same variation can exist on an individual element and carry its own contextual meaning

    <div class="ui large button"></div>

Defining UI

Here is part of Semantic's definition of a button

Standard: A button is a shape that can be pressed in to complete an action

    <div class="ui button"></div>

State: A button can sometimes be active, or selected by the user

    <div class="ui active button">

Variations: A button may sometimes look different than a simple button.

    <div class="ui large blue icon button">
      <i class="ui icon heart"></i>
    </div>

Plurality: A button can sometimes exist in a group of buttons

    <div class="ui large blue buttons">
      <div class="ui button">
        I am blue
      </div>
      <div class="ui button">
        I am blue too
      </div>
    </div>

Types of UI

UI components are split into four categories:

  • UI elements
  • UI Collections
  • UI VIews
  • UI Modules

All UI definitions are made of a neutral prototypical definition, a list of states it can occupy, and a set of common variations or "types" of that element.

UI Elements

UI Elements are basic design elements. Any part of the element cannot be thought of as something separate, although they may be made up of parts. In chemistry, you can think of this as an "element".

They may also may be useful sometimes to define in plural. Groups of UI elements are always homogenous.

For example in this case each button can be described as large because we understand it is a type of large button

    <div class="large buttons">
      <div class="ui button">Cancel</div>
      <div class="ui positive button">Continue</div>
    </div>

Examples of UI elements:

  • Buttons
  • Labels
  • Headers
  • Progress bars

UI Collections

UI Collections are groups of heteregeneous UI elements which are usually found together. These can be thought of as molecules.

UI collections do not usually require all elements to be found, but they describe a list of the "usual suspects". Collections are not typically useful to define in plural.

Examples of UI collections:

  • Forms
  • Tables
  • Grids (Layout)
  • Menus

UI Views

UI Views are common ways that UI collections are grouped together. The focus is not on providing a specific interaction, but providing a view for a website's content. These might be difficult to define completely.

Examples of UI views: ** Comment Feed ** Activity Feed ** Product List

UI Modules

UI modules are UI elements where it's behavior is a fundamental part of its existence.

Examples of UI modules:

  • Popups
  • Modals
  • Chatrooms
  • Calendar Pickers

Usage

Specification

I want to contribute to the spec

Semantic is very new. We're still working out the best way to join in the discussion.

We're currently working to figure ouin coding guidelines.

###Library

You can use our build tool to select only the components you want

http://semantic-ui.com/download

Or download the whole kit and kaboodle

http://semantic-ui.com/ui/semantic.min.css
http://semantic-ui.com/ui/semantic.min.js