···11# intergrav/dev.css
2233-[](https://www.npmjs.com/package/@intergrav/dev.css) [](https://cdn.jsdelivr.net/npm/@intergrav/dev.css/) [](https://discord.gg/m5tUgaM3uK) [](https://github.com/intergrav/dev.css)
33+[](https://www.npmjs.com/package/@intergrav/dev.css) [](https://cdn.jsdelivr.net/npm/@intergrav/dev.css/) [](https://discord.gg/m5tUgaM3uK) [](https://tangled.org/devins.page/dev.css)
4455dev.css is a tiny, simple, classless CSS framework inspired by [new.css](https://newcss.net). It is designed to make any plain HTML file modern and responsive. The minified stylesheet weighs only **~5.5kb**. It also has some extra features, such as an optional sidebar and addons.
66···50505151### Importing fonts
52525353-You can also load a font from [intergrav/fonts](https://github.com/intergrav/fonts#readme) (or anywhere else) if you'd like a consistent font. Geist and Inter fonts work with dev.css out of the box, other fonts will require a theme to be used. If these fonts are not available, the default system/browser sans-serif and monospace fonts will be used, such as Microsoft's Segoe UI or Apple's San Francisco.
5353+You can also load a font from [intergrav/fonts](https://tangled.org/devins.page/fonts) (or anywhere else) if you'd like a consistent font. Geist and Inter fonts work with dev.css out of the box, other fonts will require a theme to be used. If these fonts are not available, the default system/browser sans-serif and monospace fonts will be used, such as Microsoft's Segoe UI or Apple's San Francisco.
54545555## Elements and Structure
5656
+1-1
addon/header-oneline.css
···11-/* header-oneline for dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
11+/* header-oneline for dev.css v4, a lightweight CSS framework - https://tangled.org/devins.page/dev.css */
22/* about: makes the header much more compact by sorting horizontally, good with header-sticky addon */
33/* note: will hide most elements in header other than img, h1-6, nav, and button */
44
+1-1
addon/header-sticky.css
···11-/* header-sticky for dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
11+/* header-sticky for dev.css v4, a lightweight CSS framework - https://tangled.org/devins.page/dev.css */
22/* about: makes the header sticky (when vh>24rem/vw>16rem). useful if the user needs to access nav often */
33/* note: large sticky headers are bad for usability. too large? try header-oneline addon */
44
+1-1
addon/responsive-sidebar.js
···11-/* responsive-sidebar for dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
11+/* responsive-sidebar for dev.css v4, a lightweight CSS framework - https://tangled.org/devins.page/dev.css */
22/* about: auto open/close `aside details` at 82rem breakpoint. prevents sidebar from looking awkward on wide screens, improves usability on small screens */
3344const mediaQuery = matchMedia("(min-width: 82rem)");
+1-1
addon/scroll-to-top.js
···11-/* scroll-to-top for dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
11+/* scroll-to-top for dev.css v4, a lightweight CSS framework - https://tangled.org/devins.page/dev.css */
22/* about: shows a "scroll to top" button in the bottom right corner of the screen when scrolling */
3344const scrollToTopButton = document.createElement("button");
+1-1
dev.css
···11-/* dev.css v4, a lightweight CSS framework - https://github.com/intergrav/dev.css */
11+/* dev.css v4, a lightweight CSS framework - https://tangled.org/devins.page/dev.css */
22/* about: tiny, simple, classless CSS framework inspired by new.css */
3344/* table of contents