# dev.css [![NPM Version](https://img.shields.io/npm/v/@intergrav/dev.css)](https://www.npmjs.com/package/@intergrav/dev.css) [![jsDelivr hits (npm)](https://img.shields.io/jsdelivr/npm/hm/@intergrav/dev.css)](https://cdn.jsdelivr.net/npm/@intergrav/dev.css/) [![Discord](https://img.shields.io/discord/1262738186338308126?logo=discord&logoColor=%23fff&color=%235865F2)](https://discord.gg/m5tUgaM3uK) [![GitHub Repo stars](https://img.shields.io/github/stars/intergrav/dev.css)](https://tangled.org/devins.page/dev.css) dev.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. You can find the website at devcss.devins.page, which contains a demo page.
Click to view preview dev.css desktop demo, light mode dev.css desktop demo, dark mode dev.css mobile demo, light mode dev.css mobile demo, dark mode
## Who is this for? dev.css is a great choice for: - A simple blog - A simple "about me" website - Collecting your most used links - Prototyping your raw HTML dev.css was not meant for very complex websites. Although, if you need something more complex, you could build from/modify this stylesheet for your website. An example of a site that uses dev.css is [SkywardMC's wiki](https://skywardmc.org). If you're using dev.css on your site, feel free to use this "powered by dev.css" badge if you want to promote the project: ```html powered by dev.css ``` powered by dev.css ## Installing ### HTML import To use dev.css in your HTML, simply add the following line to the `` section of your HTML file: ```html ``` ### `npm`, `pnpm`, etc Another way to install dev.css is to add the npm package to your project through your preferred package manager. This command adds the latest version to your project. ```sh npm add @intergrav/dev.css # or pnpm add @intergrav/dev.css ``` ### Importing fonts 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. ## Elements and Structure dev.css takes advantage of semantic HTML elements. Here are some guidelines on how to use them for the best results. ### Header It's recommended that you add a header to your page. To add one, place a `
` tag at the top of your ``. You can use an `

` tag as your website's title. You can also add a `

` element as an optional short description of the site. If you want to add a traditional navigation element, you should lay out your `