Coder Social home page Coder Social logo

pico's Introduction

Pico.css

Minimal CSS Framework for semantic HTML
Elegant styles for all native HTML elements without .classes and dark mode automatically enabled.

Examples · Documentation

Pico.css

CSS Gzipped Github release npm version License

demo.mp4

Class-light and semantic
Pico uses simple native HTML tags as much as possible. Only 6 .classes are used in Pico.

Great styles with just one CSS file
No dependencies, package manager, external files, or JavaScript.

Responsive everything
Elegant and consistent adaptative spacings and typography on all devices.

Light or Dark mode
Shipped with two beautiful color themes, automatically enabled according to the user preference.

Table of contents

Usage

There are 3 ways to get started with pico.css:

Install manually

Download Pico and link /css/pico.min.css in the <head> of your website.

<link rel="stylesheet" href="css/pico.min.css">

Install from CDN

Alternatively, you can use unpkg CDN to link pico.css.

<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.min.css">

Install with NPM

npm install @picocss/pico

Class-less version

Pico provide a .classless version (example).

In this version, header, main and footer act as container.

Use the default .classless version if you need centered viewports:

<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.classless.min.css">

Or use the .fluid.classless version if you need a fluid container:

<link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.fluid.classless.min.css">

Then just write pure HTML, and it should look great:

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="https://unpkg.com/@picocss/pico@latest/css/pico.classless.min.css">
    <title>Hello, world!</title>
  </head>
  <body>
    <main>
      <h1>Hello, world!</h1>
    </main>
  </body>
</html>

Examples

Minimalist templates to discover Pico in action:

Examples

  • Preview
    A starter example with all elements and components used in Pico

  • Class-less
    Just a pure semantic HTML markup, without .classes

  • Basic template
    A basic custom template for Pico using only CSS custom properties (variables)

  • Company
    A classic company or blog layout with a sidebar

  • Google Amp
    A simple layout for Google Amp, with inlined CSS

  • Sign in
    A minimalist layout for Login pages

  • Bootstrap grid system
    Custom CSS build with the Bootstrap grid system to manage complex grid layouts in Pico

All examples are open-sourced in picocss/examples.

Documentation

Getting started

Layout

Elements

Components

Utilities

Contributing

  • dev branch is open to pull requests.
  • Do not edit /css files directly.
  • Edit the source files in /scss, then recompile the /css files with npm run build:css.

Copyright and license

Licensed under the MIT License.

Relevant third-party tools and resources we depend on:

Website and docs:

Pico Library:

pico's People

Contributors

damieng avatar fitztrev avatar gsalaun1 avatar lucaslarroche avatar nuxodin avatar trasparente avatar zgoda avatar

Stargazers

 avatar  avatar

Watchers

 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.