Project Spectre

introduction

Project Spectre is a lightweight and clean CSS framework for faster and extendable development.

  • lightweight and clean starting point for your project
  • flexbox and responsive layout friendly
  • built in useful components and utilities

typography

typography.less sets default styles for headings, paragraphs, blockquote, lists elements and some text related utilities.

headings

H1 Title 5rem

H2 Title 4rem

H3 Title 3rem

H4 Title 2.4rem

H5 Title 2rem
H6 Title 1.6rem
paragraphs

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

blockquote

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer posuere erat a ante.

- Source
lists
  • list item 1
  • list item 2
    • list item 2.1
    • list item 2.2
    • list item 2.3
  • list item 3
  1. list item 1
  2. list item 2
    1. list item 2.1
    2. list item 2.2
    3. list item 2.3
  3. list item 3

flexbox layout

layout.less includes flexbox based grid system with 12 columns.

Add the class columns to a container. Add any element you want with class column inside the container. These columns will take up the space equally. You can specific the width of each column by adding class col-[1-12].

First column
Second column
Third column
Fourth column
Fifth column
Sixth column
First column
Second column
Third column
Fourth column
First column
Second column
Third column
Fourth column

tables

tables.less sets default styles for tables and data sets.

Add the class <table> to any table element. The class will add padding, border and emphasized table header. Adding the class selected to a <tr> element will highlight the whole table row.

name duration genre release date
The Shawshank Redemption 2h 22min Crime, Drama 14 October 1994 USA
The Godfather 2h 55min Crime, Drama 24 March 1972 USA
Schindler's List 3h 15min Biography, Drama, History 4 February 1994 USA
Se7en 2h 7min Crime, Drama, Mystery 24 March 1972 USA

buttons

buttons.less includes simple button style for actions in different types and sizes.

Add the class btn to <a>, <input> or <button> elements for a default button. There are classes btn-primary and btn-link for predefined primary and link buttons. A button with the class loading can show loading indicator.

button sizes

Add the class btn-sm or btn-lg for small or large size. Also, you can add the class btn-block for a full-width button.

button groups

If you want to use buttons as a group, add the class btn-group to the container.

forms

input groups

slack.com/
slack.com/

media

avatars

chips

Crime
Drama
Biography
Mystery
Yan Zhu
Yan Zhu
Yan Zhu
Yan Zhu

file icons

fileicons.less includes a set of file icons. This part is written entirely in CSS as well.

tooltips

tooltips.less is a label-like component that appears on hover and focus.

Add the class tooltip and the attribute data-tooltip, which contains the tooltip content, to non self closing elements. And add the class name tooltip-right, tooltip-bottom or tooltip-left to define the position of a tooltip. By default, the tooltip appears above the element.

<button class="btn btn-primary tooltip tooltip-right" data-tooltip="Lorem ipsum dolor sit amet">right tooltip</button>

labels

default label
primary label
success label
info label
warning label
danger label
default label
primary label

toasts

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Efficiently unleash cross-media information without cross-media value.
Efficiently unleash cross-media information without cross-media value.
Efficiently unleash cross-media information without cross-media value.
Efficiently unleash cross-media information without cross-media value.

tabs

badges

Notifications
Notifications
Notifications
Notifications

modals

cards

Microsoft

Software and hardware
Empower every person and every organization on the planet to achieve more.

Apple

Hardware and software
To make a contribution to the world by making tools for the mind that advance humankind.

Google

Software and hardware
Organize the world’s information and make it universally accessible and useful.