cssoliver
v1.0.0
Published
Oliver CSS Framework — lightweight, modular, and fully-featured CSS framework
Maintainers
Readme
Oliver Framework (cssoliver)
Oliver Framework (cssoliver) is a lightweight, fully-featured CSS framework designed for rapid web development and learning. It provides modular utilities, responsive layouts, pre-built components, and customizable variables, making it suitable for both beginners and professional developers.
Table of Contents
- Features
- Installation
- Usage
- Components
- Utilities
- Layout & Grid System
- Responsive Design
- Build System
- Contributing
- License
Features
- Lightweight and modular — include only what you need
- Utility classes for spacing, colors, typography, flex, grids, and more
- Responsive and mobile-first design
- Pre-designed components: buttons, cards, alerts, forms, modals, navbar
- Animations & transitions: fade, slide, hover effects
- Customizable via CSS variables: colors, spacing, fonts, shadows, borders
- Easy integration with any HTML project
Installation
Include the CSS in your project by linking the compiled framework file:
<link rel="stylesheet" href="dist/cssoliver.css">Or via npm/yarn:
npm install cssoliver
# or
yarn add cssoliverThen import in your main CSS or SCSS file:
@import "node_modules/cssoliver/dist/cssoliver.css";Usage
Buttons
<button class="btn btn-primary">Primary</button>
<button class="btn btn-outline">Outline</button>Cards
<div class="card p-4 shadow rounded">
<h3>Card Title</h3>
<p>This is a card description.</p>
</div>Utilities
<p class="text-center m-4 p-2 bg-primary text-light">Centered text with spacing</p>Components
- Buttons:
.btn,.btn-primary,.btn-outline,.btn-success - Cards:
.card,.card-header,.card-footer - Alerts:
.alert,.alert-success,.alert-danger - Forms:
.form-input,.select,.textarea,.form-group - Modals:
.modal,.modal-header,.modal-body,.modal-footer - Navbar:
.navbar,.nav-item,.nav-link
Utilities
- Spacing:
.m-1to.m-4,.p-1to.p-4 - Text:
.text-center,.text-right,.text-uppercase - Colors:
.bg-primary,.text-success,.bg-light - Display & Flex:
.d-flex,.justify-center,.align-center,.flex-column - Borders & Shadows:
.rounded,.shadow,.border - Visibility & Position:
.hidden,.visible,.position-relative,.position-absolute
Layout & Grid System
- Container:
.containerfor fixed-width or full-width layouts - Rows & Columns:
.row,.col,.col-6,.col-4 - Flex Utilities:
.d-flex,.justify-between,.align-center - Responsive Helpers:
.col-md-6,.col-lg-4 - Gap Utilities:
.gap-1to.gap-4
Responsive Design
Oliver Framework is mobile-first and includes built-in responsive breakpoints:
<div class="col-12 col-md-6 col-lg-4">
Responsive Column
</div>col-12→ full-width on small screenscol-md-6→ half-width on medium screenscol-lg-4→ one-third width on large screens
Build System
You can rebuild the framework or generate a minified production build:
# Build full CSS
npm run build
# Build minified CSS
npm run build:minFile Structure:
dist/
cssoliver.css
cssoliver.min.css
src/
reset.css
variables.css
typography.css
layout.css
animations.css
responsive.css
utilities.css
components/
forms.css
buttons.css
cards.css
alerts.css
navbar.css
modals.css
framework.css (imports everything)Contributing
We welcome contributions! Steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature - Commit your changes:
git commit -m "Add new feature" - Push to the branch:
git push origin feature/your-feature - Open a pull request
See the GitHub repo for more details.
License
This project is licensed under the MIT License — see the LICENSE file for details.
Documentation
Visit the docs folder for full documentation:
