# d1css

> Functional CSS microframework

Latest version **1.2.86** (published 2020-01-30) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install d1css
pnpm add d1css
yarn add d1css
bun add d1css
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.86 |
| Published | 2020-01-30 |
| First published | 2018-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 291.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Vadim Korolev |
| Maintainers | vadimkor |
| Keywords | css, javascript, lightweight, micro, framework |

## Links

- npm: https://www.npmjs.com/package/d1css
- Repository: https://github.com/vvvkor/d1
- Homepage: https://github.com/vvvkor/d1#readme
- Issues: https://github.com/vvvkor/d1/issues
- npm.io page: https://npm.io/package/d1css

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.2.86 (latest) — 2020-01-30
- 1.2.85 — 2019-12-12
- 1.2.84 — 2019-12-12
- 1.2.83 — 2019-12-11
- 1.2.82 — 2019-12-11
- 1.2.81 — 2019-12-11
- 1.2.80 — 2019-12-10
- 1.2.79 — 2019-12-09
- 1.2.78 — 2019-12-09
- 1.2.77 — 2019-12-06
- 1.2.76 — 2019-12-06
- 1.2.75 — 2019-12-04
- 1.2.74 — 2019-11-28
- 1.2.73 — 2019-11-18
- 1.2.72 — 2019-11-12
- … 142 more at https://npm.io/package/d1css/versions

## README

# d1

**DEPRECATED**

This is no longer maintained.  
Please consider using [d1-web](https://github.com/vvvkor/d1-web) instead.

---

**d1** is a lightweight yet functional responsive CSS microframework with optional JavaScript enhancements.  
It aims to implement most widely used interface components with less code.

## Features

* lightweight (minified and gzipped: CSS <4 KB, optional JS <4 KB)
* non-bloated class names
* functional
* modern
* responsive (flexbox, mobile first)
* performant
* semantic (uses native elements)
* valid
* cross-browser
* JavaScript not required
* [enhanced with JavaScript](js.md)
* neutral style
* [customizable style with css vars](css.md)
* no floats
* no hacks
* accessibility is not much covered

## Add-ons

* [d1calendar](https://github.com/vvvkor/d1calendar) replaces standard HTML ``date`` and ``datetime-local`` inputs with custom dropdown calendar
* [d1dialog](https://github.com/vvvkor/d1dialog) replaces standard Javascript dialogs: ``alert``, ``confirm``, ``prompt``
* [d1edit](https://github.com/vvvkor/d1edit) turns textarea into lightweight WYSIWYG editor
* [d1gallery](https://github.com/vvvkor/d1gallery) makes lighweight image gallery
* [d1lookup](https://github.com/vvvkor/d1lookup) autocompletes lookups with data from XHTTP request
* [d1tablex](https://github.com/vvvkor/d1tablex) makes HTML table searchable and sortable
* [d1valid](https://github.com/vvvkor/d1valid) sets custom form validation.

## Getting Started

### Use from CDN

#### [jsDelivr](https://www.jsdelivr.com/package/npm/d1css)

```html
<link href="https://cdn.jsdelivr.net/npm/d1css@1/dist/d1.min.css" rel="stylesheet">
<!-- optional -->
<script src="https://cdn.jsdelivr.net/npm/d1css@1/dist/d1.min.js"></script>
<script>
  d1.load();
</script>
```

#### [GitCDN](https://gitcdn.link/)

```html
<link href="https://gitcdn.link/repo/vvvkor/d1/master/dist/d1.min.css" rel="stylesheet">
<!-- optional -->
<script src="https://gitcdn.link/repo/vvvkor/d1/master/dist/d1.min.js"></script>
<script>
  d1.load();
</script>
```

### Install with NPM

Install to your repository:
```
npm install d1css
```
Then use in your CSS file:
```css
@import "../node_modules/d1css/dist/d1.min.css";
```
And optionally bundle into your JavaScript file:
```javascript
var d1 = require("d1css");
d1.load();
```

### Install manually

Download minified [d1 files](https://github.com/vvvkor/d1/tree/master/dist).

```html
<link href="d1.min.css" rel="stylesheet">
<!-- optional -->
<script src="d1.min.js"></script>
<script>
  d1.load();
</script>
```

## Browser Support

* IE 9 (mobile style only, no js enhancements)
* IE 10+, Edge (except details/summary component)
* Latest Stable: Chrome, Firefox, Opera, Safari
* iOS 6-8
* Android 4.x

## Docs

[Docs and demo](https://vvvkor.github.io/d1/)

## Thanks

* [List of CSS frameworks](https://github.com/troxler/awesome-css-frameworks)
* [Small CSS Frameworks](https://www.webpagefx.com/blog/web-design/small-css-frameworks/)

## License

[MIT](./LICENSE)

---
_Source: https://npm.io/package/d1css · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
