@gridkitjs/theme-css 0.0.0-dev-20261108090704

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +55 -0
  3. package/package.json +35 -0
  4. package/src/styles.css +2226 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Blagoja Blazhevski
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,55 @@
1
+ # @gridkitjs/theme-css
2
+
3
+ Plain-CSS theme for [GridKit](https://github.com/gridkitjs/gridkitjs) —
4
+ palette tokens, dark mode and the grid's styles, for an app without
5
+ Tailwind. It is generated from
6
+ [`@gridkitjs/theme-tailwind`](https://www.npmjs.com/package/@gridkitjs/theme-tailwind),
7
+ so both draw the same grid.
8
+
9
+ > **Early development.** The API is still moving and may break between minor
10
+ > versions.
11
+
12
+ ```bash
13
+ pnpm add @gridkitjs/theme-css
14
+ ```
15
+
16
+ Import it once, before your own CSS:
17
+
18
+ ```css
19
+ @import "@gridkitjs/theme-css/styles.css";
20
+ ```
21
+
22
+ `@gridkitjs/react` renders semantic class names (`gridkit-data-grid`,
23
+ `header-cell`, `grid-row`), and this stylesheet targets them directly.
24
+
25
+ ## Dark mode
26
+
27
+ The grid follows the system's colour scheme (`prefers-color-scheme`). An app
28
+ with its own light and dark switch puts `.gridkit-light` or `.gridkit-dark`
29
+ on `<html>`, or on any ancestor of one grid to pin that grid alone:
30
+
31
+ ```js
32
+ document.documentElement.classList.toggle("gridkit-dark", isDark);
33
+ document.documentElement.classList.toggle("gridkit-light", !isDark);
34
+ ```
35
+
36
+ ## Theming
37
+
38
+ Every colour, size and line is a `--gridkit-*` custom property. Override the
39
+ ones you change on `:root`, after the import; a colour is set by its light
40
+ and dark pair:
41
+
42
+ ```css
43
+ :root {
44
+ --gridkit-spacing: 0.1875rem;
45
+ --gridkit-accent-light: oklch(0.6 0.17 145);
46
+ --gridkit-accent-dark: oklch(0.7 0.15 145);
47
+ }
48
+ ```
49
+
50
+ Every token and its default is listed at
51
+ [gridkitjs.com](https://gridkitjs.com/en/docs/theme-tailwind/tokens).
52
+
53
+ ## License
54
+
55
+ MIT © Blagoja Blazhevski
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@gridkitjs/theme-css",
3
+ "version": "0.0.0-dev-20261108090704",
4
+ "description": "Plain-CSS theme for GridKit — palette tokens, dark mode and grid styles, no Tailwind needed.",
5
+ "license": "MIT",
6
+ "author": "Blagoja Blazhevski",
7
+ "homepage": "https://github.com/gridkitjs/gridkitjs#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/gridkitjs/gridkitjs.git",
11
+ "directory": "packages/theme-css"
12
+ },
13
+ "keywords": [
14
+ "gridkit",
15
+ "datagrid",
16
+ "theme",
17
+ "css"
18
+ ],
19
+ "exports": {
20
+ "./styles.css": "./src/styles.css"
21
+ },
22
+ "files": [
23
+ "src",
24
+ "LICENSE",
25
+ "README.md"
26
+ ],
27
+ "devDependencies": {
28
+ "postcss": "^8.5.25",
29
+ "prettier": "^3.9.6"
30
+ },
31
+ "scripts": {
32
+ "build": "node scripts/write-stylesheet.mjs",
33
+ "test": "node --test \"scripts/*.test.mjs\""
34
+ }
35
+ }