TangoMan Pivot CSS is a lightweight extension of pico.css, (the minimal CSS framework for semantic HTML) focused on providing a boilerplate for building single page applications.
Documentation can be found here : https://tangoman75.github.io/pivot
- Toast Notifications: Manages toast notifications with flexible positioning.
- Tabs: Enables accessible tabbed navigation with event listeners.
- Theme Toggle: Toggles between light and dark themes with a button.
- Menubar Collapse: Adds functionality for collapsing menubars on smaller screens.
- Close Buttons: Automatically removes elements with the
close
class when clicked. - Animations: Adds event listeners for animating elements with the
animate
class.
- Defines a minimal color palette for success, warning, and danger elements.
- Adds a
flex
class for flexible layouts. - Fixes grid layout for
<article>
elements. - Provides a
horizontal-scroll
class for horizontal scrolling.
- Enables smooth scrolling with
scroll-behavior: smooth
. - Sets
scroll-margin-top
for<main>
,<section>
, and<article>
elements for better navigation.
- Styles section headers with a bottom border.
- Styles table headers within
<tbody>
with bold font weight andnowrap
. - Alternates row background colors for improved readability.
- Provides a generic
icon
class for SVG icons. - Adds specific icon classes for checkbox, minus, chevron, date, time, search, close, loading, valid, and invalid icons.
- Customizes
<fieldset>
appearance with padding, border, and<legend>
styles.
- Adds styled alert messages with info, success, warning, and danger variations, with custom colorations.
- Adds styled buttons with "success," "warning," and "danger" states.
- Provides a
close
class for styled close buttons.
- Styles the
<footer>
with a flexible layout and list styles.
- Improves
<navbar>
layout and adds a sticky header effect for larger screens with a blur effect. - Adds a divider to icon groups within the navbar.
- Adds styles for accessible tabbed navigation.
- Adds styling for theme toggle icons with animations.
- Provides a
#toast-container
for displaying toast notifications with flexible positioning.
- Adds styles for
menubar
andtoolbar
roles with inline and accessible designs.
- Includes reusable animations like
spin
andzoom-in-blur
.
- Adds utility classes like
no-decoration
for removing text or list decorations. - Provides
animate
andremove-pseudo-elements
classes for animation and pseudo-element removal. - Provides
flex
andflex-right
classes for easy layout. - Provides
ellipsis
class for text truncation with ellipsis.
- Include pico.css: Ensure you have pico.css included in your project.
- Include TangoMan Pivot CSS: Add
pivot.css
to your project and include it after pico.css. - Include TangoMan Pivot JavaScript: Add
pivot.js
to your project and include it at the end of your file. - Use the provided classes: Apply the classes defined in
pivot.css
to your HTML elements.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Pico CSS Project</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
<link rel="stylesheet" href="./css/pivot.css">
</head>
<body>
<main class="container">
<section>
<header>
<h2>Example Section</h2>
</header>
<article>
<header>
<h3>An article</h3>
</header>
<p>This article has scroll margin.</p>
<p>These items own a flex layout.</p>
<div class="flex">
<div>Item 1</div>
<div>Item 2</div>
<div>Item 3</div>
</div>
<p>This is a list.</p>
<ul class="list--bare">
<li>Item without bullets</li>
<li>Another item</li>
</ul>
<div class="alert alert--success">
<header>Success!</header>
<p>This is a success alert.</p>
<footer>More information here.</footer>
<button class="close"></button>
</div>
</article>
</section>
</main>
<footer class="footer container">
<ul>
<li>item 1</li>
<li>item 2</li>
</ul>
<p>Copyright 2025</p>
</footer>
<script type="text/javascript" src="./js/pivot.js"></script>
</body>
</html>
You can download pivot.css
from the GitHub repository or include it via CDN.
To setup your development environment, follow these steps:
- Install Dependencies:
If you have yarn installed, run the following command in the project's root directory:
yarn install
This command installs all the necessary development dependencies.
- Run Development Scripts:
To start the development environment or build the CSS, use the following command:
yarn run
This command will execute the default script defined in the package.json
file.
You can run specific scripts like so:
# watch source folder
yarn watch
# lint scss
yarn lint
# build css
yarn build
Thank you for your interrest in contributing to TangoMan Pivot CSS.
Please review the code of conduct and contribution guidelines before starting to work on any features.
If you want to open an issue, please check first if it was not reported already before creating a new one.
Copyrights (c) 2025 "Matthias Morin" <[email protected]>
Distributed under the MIT license.
If you like TangoMan Pivot CSS please star, follow or tweet:
... And check my other cool projects.