PicoCss
PICO CSS
4/5 stars from EBW
picocss.com
Only 67k minified if classless
OVERALL: Much better than Bootstrap with lots of classes to remember
or Tailwind CSS forces too many classes.
Has terrible documentation though.
1) For my website, I downloaded the classless file from their download area on Github:
in my newly created "PicoCss" folder under the website.
2) then I added 2 links in the head tag at the bottom:
Elegant styles for all native HTML without .classes and dark mode auto enabled.
Menu navigation of website (tons shorter than Tailwind CSS):
<nav>
<ul>
<li>Brean</li>
</ul>
<ul>
<li><a href="#"> 1 </a></li>
<li><a href="#"> 2 </a></li>
</ul>
</nav>
Accordion (tons shorter than Tailwind CSS):
<details open>
</details>
Buttons:
WAY 1 - NO CLASSES: <button>Button</button> <- blue background with white letter
WAY 2 - NO CLASSES: <input type="submit"> <- blue background with white letter
WAY 3 - IN LINE: <a href="#" role="button">Link</a> <- blue background with white letter
WAY 4 - IN LINE: <a href="#" role="button">Link</a> <- blue background with white letter
WAY 5 - USE CLASSES: <a href="#" role="button" class="secondary">Secondary</a> <- gray background with white letter
WAY 5 - USE CLASSES: <a href="#" role="button" class="contrast">Contrast</a> <- white background with black letter
Can change <a> to <a role="button"> to make them buttons
Cards
<article></article>
Dropdowns
Modals
Containers
.container - centered viewport
.container-fluid - 100% layout
uses same breakpoints and viewports as Bootstrap
replace <div> with <main class="container">
replace <div id="courses"> with <section id="courses">
replace <div> with <div class="grid"> for the grid ones
replace <div> with <article> for the ones where want card layout
Grid
<div class="grid">
<div> 1 </div>
<div> 2 </div>
<div> 3 </div>
</div>
Horizontal Scroller
<figure> is scrollable container
Class-less version
<header>, <main> and <footer> are containers
.classless version if need centered viewport
but this requires slightly different version of framework
<link rel="stylesheet" href="css/pico.classless.min.css">
Redefine CSS variables
:root { --pri,ary: #5e35b1; }
There is a Pico SASS library
data-theme="dark"
Comments
Post a Comment