npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

fhf

v3.0.1

Published

This is a CSS framework called 'fhf, which was created by Mahdi Amari. It sets a number of CSS rules that correct browser inconsistencies and ensure consistent rendering across different browsers. The rules are organized by sections of the HTML document,

Readme

FHF - CSS Framework

Introduction

FHF is a lightweight, flexible, and modern CSS framework designed to help developers build responsive and aesthetically pleasing web interfaces quickly and easily. It provides a comprehensive set of tools, utilities, and components to streamline the development process with minimal overhead.

Table of Contents

Installation

Via npm

npm install fhf

Via CDN

<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/fhf/dist/main.min.css"
/>

From Source

git clone https://github.com/80mahd08/FHF-framework.git
cd fhf
npm install
npm run build

Quick Start

After installation, import FHF in your HTML file:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="node_modules/fhf/dist/fhf.min.css" />
    <title>FHF Example</title>
  </head>
  <body>
    <div class="container">
      <h1 class="resp-h1 text-center pb-11">Welcome to FHF</h1>
      <p class="resp-p pb-15">
        Build beautiful, responsive websites with our comprehensive CSS
        framework.
      </p>
    </div>
  </body>
</html>

Features

Core Features

  • Responsive Design: Mobile-first approach with breakpoints for all screen sizes (xs, sm, md, lg, xl, xxl)
  • Comprehensive Utilities: 1000+ utility classes for rapid development
  • Modern CSS: Leverages latest CSS features (Grid, Flexbox, CSS Variables, etc.)
  • Customizable: Easy to extend and customize via SCSS variables and mixins
  • Accessibility First: Built with accessibility standards and best practices
  • Performance Optimized: Lightweight and tree-shakeable
  • Print Friendly: Optimized styles for print media
  • Dark Mode Ready: Support for prefers-color-scheme media query

Utility Categories

  • Layout: Container, Grid, Flexbox, Positioning
  • Sizing: Width, Height, Aspect Ratio, Flex Basis
  • Spacing: Margins, Padding, Gap
  • Typography: Font sizes, weights, styles, line heights
  • Display: Display types, visibility, opacity
  • Borders: Border radius, widths, styles, outlines, rings
  • Visibility: Overflow, truncation, filters, backdrop effects
  • Colors: Text, background, border colors (via color variables)
  • Shadows: Box shadows, drop shadows
  • Effects: Blur, brightness, contrast, grayscale, and more
  • Object Fit: Image and video scaling utilities
  • Interactions: Cursor, pointer events, scroll behavior

Project Structure

scss/
├── main.scss                 # Main entry file
├── tools/
│   ├── _variables.scss      # SCSS variables
│   ├── _functions.scss      # SCSS functions
│   ├── _mixins.scss         # Reusable mixins
│   └── _media_query.scss    # Media query utilities
├── base/
│   ├── _reset.scss          # Normalize.css v8.0.1
│   ├── _base.scss           # Global defaults
│   └── _typography.scss     # Typography utilities
├── layout/
│   ├── _container.scss      # Container system
│   ├── _grid.scss           # CSS Grid utilities
│   ├── _flexbox.scss        # Flexbox utilities
│   ├── _positioning.scss    # Position utilities
│   └── _borders.scss        # Border utilities
└── utilities/
    ├── _display.scss        # Display utilities
    ├── _sizing.scss         # Width/height utilities
    ├── _visibility.scss     # Visibility & effects
    ├── _spacing.scss        # Margins & padding
    ├── _shadow.scss         # Shadow utilities
    ├── _object-fit.scss     # Image/video utilities
    └── _colors.scss         # Color utilities

Utility Classes

Responsive Breakpoints

xs: 0px      // Mobile portrait (default)
sm: 576px    // Mobile landscape
md: 768px    // Tablets
lg: 992px    // Small desktops
xl: 1200px   // Medium desktops
xxl: 1400px  // Large desktops

Usage Examples

Layout

<!-- Container with responsive padding -->
<div class="container">
  <div class="d-grid grid-cols-3 gap-4">
    <div>Column 1</div>
    <div>Column 2</div>
    <div>Column 3</div>
  </div>
</div>

<!-- Responsive layout -->
<div class="d-flex flex-column md:flex-row justify-between items-center gap-4">
  <div class="flex-1">Left</div>
  <div class="flex-2">Center</div>
  <div class="flex-1">Right</div>
</div>

Typography

<h1 class="resp-h1 fw-bold text-center">Responsive Heading</h1>
<p class="resp-p leading-relaxed">
  Responsive paragraph with comfortable line height
</p>

Sizing

<!-- Square element -->
<div class="square-20 bg-blue-500"></div>

<!-- Responsive sizing -->
<div class="w-full md:w-1/2 lg:w-1/3 h-64 object-cover"></div>

Visibility

<!-- Fade animation -->
<div class="fade-in">Fades in on load</div>

<!-- Responsive visibility -->
<div class="hidden md:block">Hidden on mobile, visible on tablet+</div>

<!-- Text truncation -->
<p class="line-clamp-3">Text clipped to 3 lines</p>

Effects

<!-- Backdrop blur -->
<div class="backdrop-blur">Blurred background</div>

<!-- Image filters -->
<img src="image.jpg" class="brightness-75 contrast-125 hover:brightness-100" />

<!-- Drop shadow -->
<div class="drop-shadow-lg">Content with shadow</div>

Documentation

For complete documentation, including all utility classes, components, and examples, visit:

Customization

Override Variables

Create a custom SCSS file and override FHF variables:

// my-custom-theme.scss
$primary-color: #007bff;
$secondary-color: #6c757d;
$border-radius: 0.5rem;

@import "node_modules/fhf/scss/main.scss";

Extend with Custom Utilities

// Add custom utilities
.my-custom-class {
  // Your custom styles
}

Browser Support

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Mobile browsers (iOS Safari, Chrome Mobile)

Performance

FHF is designed to be minimal and performant:

  • Minified CSS: ~50KB (varies based on utilities used)
  • GZIP compressed: ~15KB
  • Tree-shakeable: Import only what you need
  • No JavaScript dependencies

Contributing

We welcome contributions! Please see our contributing guidelines for more information.

License

FHF is licensed under the MIT License. See LICENSE file for details.


Build faster. Build better. Build with FHF.