mirror of
https://github.com/picocss/pico.git
synced 2025-02-23 00:01:58 -05:00
196 lines
5.7 KiB
Markdown
196 lines
5.7 KiB
Markdown
<p align="center" style="padding: 1rem;">
|
||
<a href="https://v2.picocss.com/">
|
||
<img src=".github/logo.svg" width="auto" height="60">
|
||
</a>
|
||
</p>
|
||
|
||
<p align="center">
|
||
<strong>Minimal CSS Framework for semantic HTML</strong>
|
||
</p>
|
||
|
||
<p align="center">
|
||
Pico CSS is a minimalist and lightweight starter kit that prioritizes semantic HTML, making every HTML tag responsive and elegant by default.
|
||
</p>
|
||
|
||
<p align="center">
|
||
<a href="https://v2.picocss.com/docs">Documentation</a>
|
||
</p>
|
||
|
||
# Pico.css
|
||
|
||
**Class-light and semantic**
|
||
Pico uses simple native HTML tags as much as possible. Less than 10 .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 adaptive 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](#usage)
|
||
- [Class-less version](#class-less-version)
|
||
- [Limitations](#limitations)
|
||
- [Documentation](#documentation)
|
||
- [Browser Support](#browser-support)
|
||
- [Contributing](#contributing)
|
||
- [Copyright and license](#copyright-and-license)
|
||
|
||
# Usage
|
||
|
||
There are 4 ways to get started with pico.css:
|
||
|
||
**Install manually**
|
||
|
||
[Download Pico](https://github.com/picocss/pico/archive/refs/heads/v2.zip) and link `/css/pico.min.css` in the `<head>` of your website.
|
||
|
||
```html
|
||
<link rel="stylesheet" href="css/pico.min.css" />
|
||
```
|
||
|
||
**Install from CDN**
|
||
|
||
Alternatively, you can use [jsDelivr CDN](https://www.jsdelivr.com/package/npm/@picocss/pico) to link pico.css.
|
||
|
||
```html
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@next/css/pico.min.css" />
|
||
```
|
||
|
||
**Install with NPM**
|
||
|
||
```shell
|
||
npm install @picocss/pico@next
|
||
```
|
||
|
||
```shell
|
||
yarn add @picocss/pico@next
|
||
```
|
||
|
||
**Install with Composer**
|
||
|
||
```shell
|
||
composer require picocss/pico
|
||
```
|
||
|
||
# Class-less version
|
||
|
||
Pico provides a `.classless` version ([example](https://picocss.com/examples/classless)).
|
||
|
||
In this version, `header`, `main` and `footer` act as containers.
|
||
|
||
Use the default `.classless` version if you need centered viewports:
|
||
|
||
```html
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@next/css/pico.classless.min.css" />
|
||
```
|
||
|
||
Or use the `.fluid.classless` version if you need a fluid container:
|
||
|
||
```html
|
||
<link
|
||
rel="stylesheet"
|
||
href="https://cdn.jsdelivr.net/npm/@picocss/pico@next/css/pico.fluid.classless.min.css"
|
||
/>
|
||
```
|
||
|
||
Then just write pure HTML, and it should look great:
|
||
|
||
```html
|
||
<!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://cdn.jsdelivr.net/npm/@picocss/pico@next/css/pico.classless.min.css"
|
||
/>
|
||
<title>Hello, world!</title>
|
||
</head>
|
||
<body>
|
||
<main>
|
||
<h1>Hello, world!</h1>
|
||
</main>
|
||
</body>
|
||
</html>
|
||
```
|
||
|
||
# Limitations
|
||
|
||
Pico can be used without custom CSS for quick or small projects. However, it’s designed as a starting point, like a “reset CSS on steroids”. As Pico does not integrate any helpers or utilities `.classes`, this minimal CSS framework requires SCSS or CSS knowledge to build large projects.
|
||
|
||
# Documentation
|
||
|
||
**Getting started**
|
||
|
||
- [Quick start](https://v2.picocss.com/docs)
|
||
- [Color schemes](https://v2.picocss.com/docs/color-schemes)
|
||
- [Class-less version](https://v2.picocss.com/docs/classless)
|
||
- [RTL](https://v2.picocss.com/docs/rtl)
|
||
|
||
**Customization**
|
||
|
||
- [CSS Variables](https://v2.picocss.com/docs/css-variables)
|
||
- [Theme generator](https://v2.picocss.com/docs/theme-generator)
|
||
- [Sass](https://v2.picocss.com/docs/sass)
|
||
- [Colors New](https://v2.picocss.com/docs/colors)
|
||
|
||
**Layout**
|
||
|
||
- [Container](https://v2.picocss.com/docs/container)
|
||
- [Landmarks & section](https://v2.picocss.com/docs/landmarks-section)
|
||
- [Grid](https://v2.picocss.com/docs/grid)
|
||
- [Horizontal scroller](https://v2.picocss.com/docs/scroller)
|
||
|
||
**Content**
|
||
|
||
- [Typography](https://v2.picocss.com/docs/typography)
|
||
- [Link](https://v2.picocss.com/docs/link)
|
||
- [Button](https://v2.picocss.com/docs/button)
|
||
- [Table](https://v2.picocss.com/docs/table)
|
||
|
||
**Forms**
|
||
|
||
- [Overview](https://v2.picocss.com/docs/forms)
|
||
- [Input](https://v2.picocss.com/docs/forms/input)
|
||
- [Textarea](https://v2.picocss.com/docs/forms/textarea)
|
||
- [Select](https://v2.picocss.com/docs/forms/select)
|
||
- [Checkboxes](https://v2.picocss.com/docs/forms/checkboxes)
|
||
- [Radios](https://v2.picocss.com/docs/forms/radios)
|
||
- [Switch](https://v2.picocss.com/docs/forms/switch)
|
||
- [Range](https://v2.picocss.com/docs/forms/range)
|
||
|
||
**Components**
|
||
|
||
- [Accordion](https://v2.picocss.com/docs/accordion)
|
||
- [Card](https://v2.picocss.com/docs/card)
|
||
- [Dropdown](https://v2.picocss.com/docs/dropdown)
|
||
- [Group New](https://v2.picocss.com/docs/group)
|
||
- [Loading](https://v2.picocss.com/docs/loading)
|
||
- [Modal](https://v2.picocss.com/docs/modal)
|
||
- [Nav](https://v2.picocss.com/docs/nav)
|
||
- [Progress](https://v2.picocss.com/docs/progress)
|
||
- [Tooltip](https://v2.picocss.com/docs/tooltip)
|
||
|
||
**About**
|
||
|
||
- [What’s new in v2?](https://v2.picocss.com/docs/v2)
|
||
- [Mission](https://v2.picocss.com/docs/mission)
|
||
- [Usage scenarios](https://v2.picocss.com/docs/usage-scenarios)
|
||
- [Brand](https://v2.picocss.com/docs/brand)
|
||
|
||
# Browser Support
|
||
|
||
Pico is designed and tested for the latest stable Chrome, Firefox, Edge, and Safari releases. It does not support any version of IE, including IE 11.
|
||
|
||
# Contributing
|
||
|
||
If you are interested in contributing to Pico CSS, please read our [contributing guidelines](https://github.com/picocss/pico/blob/master/.github/CONTRIBUTING.md).
|
||
|
||
# Copyright and license
|
||
|
||
Licensed under the [MIT License](https://github.com/picocss/pico/blob/master/LICENSE.md). |