Skip to content

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tani CSS Framework

A lightweight, utility-first CSS framework with God Mode features that no other framework offers.


Overview

Tani is a next-generation CSS framework that combines the best of modern CSS features with a utility-first approach. Built with 2026 standards, it includes features that no other framework offers:

  • Scroll-Driven Animations (Pure CSS, no JS)
  • Container Queries (Component-aware responsiveness)
  • OKLCH Color System (Perceptually uniform colors with auto-generated variants)
  • Native Dark Mode (System-preference based, zero JS)
  • RTL/LTR Support (Logical Properties, built-in)
  • Fluid Typography (clamp-based scaling, no media queries)
  • GPU-Accelerated Utilities (Hardware-accelerated animations)
  • Anchor Positioning (Smart tooltips without JS)

Quick Start

Installation

Option 1: Download

<link rel="stylesheet" href="./dist/css/tani.css">

Basic Usage

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>My App</title>
    <link rel="stylesheet" href="./dist/css/tani.css">
</head>
<body>
    <div class="container">
        <h1 class="text-center">Hello, Tani!</h1>
        <button class="btn btn-primary">Click Me</button>
    </div>
</body>
</html>

Comparison

Feature Tani v2.0 Tailwind v4 Bootstrap 5 Bulma
Scroll-Driven Animations
Container Queries
OKLCH Colors
Zero-JS Modal
Zero-JS Accordion
Native RTL/LTR ⚠️ Plugin ⚠️ Partial
Native Dark Mode
Debug Mode
Anchor Positioning
Size (Gzip) ~15KB ~10KB ~25KB ~20KB
JS Dependency ❌ None ⚠️ Purge ✅ Bundle ❌ None

Browser Support

Tani supports all modern browsers:

  • Chrome (latest)
  • Firefox (latest)
  • Safari (latest)
  • Edge (latest)
  • Opera (latest)

Note: Some advanced features (Scroll-Driven Animations, Container Queries, Anchor Positioning) require modern browsers. Graceful fallbacks are provided for older browsers.


📖 Documentation

Full documentation is available at: tanicss.github.io/docs

Local Documentation

Open index.html in your browser to view the complete documentation with examples.


Contributing

Contributions are welcome! Please read our Contributing Guidelines before submitting a pull request.

Development Setup

# Clone the repository
git clone https://github.com/TaniCSS/Tani.git

# Navigate to the directory
cd Tani

# Open index.html in your browser
open index.html

What to Contribute

  • Bug fixes
  • New components
  • Documentation improvements
  • Design enhancements
  • Translations
  • Performance optimizations

About

Tani - A lightweight, utility-first CSS framework with rich component library

Topics

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages