BafS / Gutenberg
Modern framework to print the web correctly.
AI Architecture Analysis
This repository is indexed by RepoMind. By analyzing BafS/Gutenberg 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.
Repository Overview (README excerpt)
Crawler view> Modern framework to print web pages correctly [ ]() [ ]() How to use Simply include the right stylesheet(s) in your html and load it only for a printer. Gutenberg.css is the base stylesheet but there are themes available in the folder. Example with Gutenberg and "old style" theme : > Comparison between standard print (left) and Gutenberg (middle, Modern style and right, Old style) npm Gutenberg is available on npm (or for yarn users) CDN You can also use the unpkg service as a *CDN*. What does the framework do ? Hide elements To hide elements to be printed you can simply add the class . Force break page Gutenberg provides two ways to break a page, the class will to break before and to break after. Example: Avoid break inside To avoid the page to break "inside" an element, you can use the class. Example: Not reformat links or acronym If you do not want to reformat the links, acronym or abbreviation to show the full url or title, you can use the class . Force to print background To force backgrounds to be printed (can be useful when you "print" a pdf), add this CSS (compatible with Safari and Chrome): Dev • to install the dependencies • to "watch" the scss folder and compile to css • to compile gutenberg to css