@graphprotocol/gds-css 0.0.1 → 0.1.0

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -4
  3. package/package.json +8 -23
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Edge & Node
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 CHANGED
@@ -12,9 +12,9 @@ pnpm add @graphprotocol/gds-css
12
12
 
13
13
  ## Setup
14
14
 
15
- 1. [Set up Tailwind CSS](https://tailwindcss.com/docs/installation) in your project if you haven't already (ideally using Vite).
15
+ 1. Ensure [Tailwind CSS is installed and configured](https://tailwindcss.com/docs/installation) in your project (preferably with Vite).
16
16
 
17
- 2. Add the following to your main CSS file:
17
+ 2. Replace the `tailwind` import in your main CSS file with `@graphprotocol/gds-css` and register the Tailwind plugin:
18
18
 
19
19
  ```diff
20
20
  - @import 'tailwindcss';
@@ -22,8 +22,6 @@ pnpm add @graphprotocol/gds-css
22
22
  + @plugin '@graphprotocol/gds-css/tailwind-plugin';
23
23
  ```
24
24
 
25
- Tailwind is already imported by `@graphprotocol/gds-css`, so you don't need the `@import 'tailwindcss'` line.
26
-
27
25
  3. [Register source paths](https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources) relative to your CSS file:
28
26
 
29
27
  ```diff
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@graphprotocol/gds-css",
3
- "version": "0.0.1",
3
+ "version": "0.1.0",
4
4
  "description": "Tailwind preset and design tokens for The Graph Design System",
5
5
  "author": "Edge & Node and contributors",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/graphprotocol/gds.git",
9
+ "url": "git+https://github.com/graphprotocol/gds.git",
10
10
  "directory": "packages/css"
11
11
  },
12
12
  "homepage": "https://github.com/graphprotocol/gds/tree/main/packages/css",
@@ -16,24 +16,10 @@
16
16
  "exports": {
17
17
  ".": {
18
18
  "style": "./styles/tailwind.css",
19
- "typecheck": "./dist/index.d.ts",
20
- "default": "./src/index.ts"
19
+ "default": "./dist/index.js"
21
20
  },
22
21
  "./tailwind.css": "./styles/tailwind.css",
23
- "./tailwind-plugin": {
24
- "typecheck": "./dist/tailwind-plugin.d.ts",
25
- "default": "./src/tailwind-plugin.ts"
26
- }
27
- },
28
- "publishConfig": {
29
- "exports": {
30
- ".": {
31
- "style": "./styles/tailwind.css",
32
- "default": "./dist/index.js"
33
- },
34
- "./tailwind.css": "./styles/tailwind.css",
35
- "./tailwind-plugin": "./dist/tailwind-plugin.js"
36
- }
22
+ "./tailwind-plugin": "./dist/tailwind-plugin.js"
37
23
  },
38
24
  "files": [
39
25
  "styles",
@@ -46,20 +32,19 @@
46
32
  "tailwindcss": "^4.1.14"
47
33
  },
48
34
  "dependencies": {
49
- "@graphprotocol/gds-utils": "workspace:*",
50
- "@graphprotocol/tailwindcss-animate": "workspace:*",
51
35
  "cssesc": "^3.0.0",
52
- "ts-extras": "^0.16.0"
36
+ "ts-extras": "^0.16.0",
37
+ "@graphprotocol/gds-utils": "0.1.0",
38
+ "@graphprotocol/tailwindcss-animate": "0.1.0"
53
39
  },
54
40
  "devDependencies": {
55
41
  "@types/cssesc": "^3.0.2",
56
42
  "@types/node": "^24.10.2"
57
43
  },
58
44
  "scripts": {
59
- "prepare": "pnpm generate:design-tokens",
60
45
  "generate:design-tokens": "tsx scripts/generate-design-tokens.ts",
61
46
  "build": "tsc --build tsconfig.build.json",
62
47
  "test": "vitest run",
63
48
  "test:watch": "vitest"
64
49
  }
65
- }
50
+ }