@dataimago/css 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/dist/dataimago.css +1094 -0
- package/dist/dataimago.min.css +1 -0
- package/dist/tailwind-preset.js +65 -0
- package/dist/tokens.css +202 -0
- package/dist/tokens.scss +202 -0
- package/package.json +42 -0
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @dataimago/css
|
|
2
|
+
|
|
3
|
+
Compiled CSS and Tailwind preset for the dataimago ethical AI design system.
|
|
4
|
+
|
|
5
|
+
Depends on [`@dataimago/tokens`](../tokens) for the canonical palette.
|
|
6
|
+
|
|
7
|
+
## What you get
|
|
8
|
+
|
|
9
|
+
- `dist/tokens.css` — CSS custom properties (theme-aware).
|
|
10
|
+
- `dist/dataimago.css` / `dist/dataimago.min.css` — full compiled design system.
|
|
11
|
+
- `dist/tailwind-preset.js` — Tailwind preset pre-wired with `ink / cream / copper / accent` scales and functional colors.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Next.js / React
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
// tailwind.config.js
|
|
19
|
+
const diPreset = require('@dataimago/css/tailwind-preset');
|
|
20
|
+
|
|
21
|
+
module.exports = {
|
|
22
|
+
presets: [diPreset],
|
|
23
|
+
content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],
|
|
24
|
+
theme: {
|
|
25
|
+
extend: {
|
|
26
|
+
// app-specific extensions here
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
```css
|
|
33
|
+
/* globals.css */
|
|
34
|
+
@import "@dataimago/css/tokens.css";
|
|
35
|
+
@import "@dataimago/css/dataimago.css";
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Shiny / R
|
|
39
|
+
|
|
40
|
+
Serve the compiled CSS from `node_modules/@dataimago/css/dist/` through your R package's asset pipeline.
|
|
41
|
+
|
|
42
|
+
## Building
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
pnpm --filter @dataimago/tokens build # must run first
|
|
46
|
+
pnpm --filter @dataimago/css build
|
|
47
|
+
```
|