back to home

kognise / water.css

A drop-in collection of CSS styles to make simple websites just a little nicer

8,607 stars
502 forks
88 issues
CSSJavaScript

AI Architecture Analysis

This repository is indexed by RepoMind. By analyzing kognise/water.css in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.

Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.

Source files are only loaded when you start an analysis to optimize performance.

Embed this Badge

Showcase RepoMind's analysis directly in your repository's README.

[![Analyzed by RepoMind](https://img.shields.io/badge/Analyzed%20by-RepoMind-4F46E5?style=for-the-badge)](https://repomind.in/repo/kognise/water.css)
Preview:Analyzed by RepoMind

Repository Overview (README excerpt)

Crawler view

Water.css 🌊 A drop-in collection of CSS styles to make simple websites just a little nicer Goals • Responsive • Themeable • Good browser support (works on my old kindle's browser :P) • Tiny size • Beautiful • No classes Why? I commonly make quick demo pages or websites with simple content. For these, I don't want to spend time styling them but don't like the ugliness of the default styles. Water.css is a CSS framework that doesn't require any classes. You just include it in your and forget about it, while it silently makes everything nicer. Who? You might want to use Water.css if you're making a simple static page or demo website that you don't want to spend time styling. Although it originally wasn't built for more complex websites, many developers have used Water.css as a base stylesheet and creatively applied custom styles to build out an entire app. Nothing is stopping you from doing the same! How? Just stick this in your : šŸŒ™/ā˜€ Automatic Theme: šŸŒ™ Dark Theme: ā˜€ Light Theme: A **preview** of the different themes is available on the **demo page**! ⚔ How the "Automatic Theme" works The main file automatically switches between light and dark mode depending on the system preferences of a user's device. This detection is made possible through a CSS media query called . In browsers where the preference can't be detected, will stick to the light theme. If you want to avoid this behavior, use either or . Supporting Internet Explorer All three distributions of Water.css support Internet Explorer 11, but the main file **doesn't respect the user's color scheme** and will be locked to light mode due to lack of support. Be aware that IE also doesn't support runtime theming, and fixed fallback values will be used. If you want to override the Water.css theme in a way that's compatible with IE, we recommend that you compile your own theme. Unminified builds All versions are also available as unminified stylesheets, which can be handy during development. Simply remove the from the file name. Theming Do you want to make some adjustments or build your own theme completely different from the official dark or light themes? Since Water.css is built with CSS variables this is super easy to do! Here's a list list of all the variables you can change to your liking: • • • • • • • • • • • • • • • • • • • • Runtime theming > ⚠ If you use a version with support for legacy browsers like Internet Explorer, skip to Compiling your own theme! Water.css uses Custom Properties (_"CSS variables"_) to define its base styles such as colors. These can be changed and overwritten right in the browser. Because of this, you can simply add your own stylesheet to the page and set your own CSS variables there. As long as your stylesheet comes after Water.css in the HTML, your values will override the default ones and your theme is applied! This short example will use Water.css, but color all links red: If you want to change a value for dark or light mode only, use a media query like this: Compiling your own theme If you are targeting browsers without support for CSS Custom Properties such as Internet Explorer, runtime theming is not an option. To apply your own theming, you'll need to make your changes in the source files themselves, then re-compile the CSS files. This works like the following: • Clone the repository to your machine • Run to install dependencies • Make the theming changes you want in • Run to compile the CSS files • Use the compiled files in the directory on your site You also might want to check out the Contributing Guide as it contains further information about the build setup. Contributing Water.css becomes better for everyone when people like you help make it better! Check out our Contributing Guide to learn how to get started. And thanks for taking the time to contribute! :)