@mereb/tokens 0.0.3 → 0.0.5

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.
@@ -0,0 +1,44 @@
1
+ :root {
2
+ --color-surface: #ffffff;
3
+ --color-surface-muted: #f3f4f6;
4
+ --color-surface-subdued: #e5e5ea;
5
+ --color-surface-alt: #f8f8f8;
6
+ --color-surface-inverse: #0f172a;
7
+
8
+ --color-text: #0f172a;
9
+ --color-text-muted: #475569;
10
+ --color-text-subdued: #6e6e73;
11
+
12
+ --color-primary: #2563eb;
13
+ --color-primary-emphasis: #1d4ed8;
14
+ --color-primary-accent: #0a84ff;
15
+
16
+ --color-border-subtle: rgba(15, 23, 42, 0.08);
17
+ --color-border-strong: #d1d1d6;
18
+
19
+ --color-neutral-strong: #bcbcc2;
20
+ --color-neutral-muted: #a9a9b0;
21
+
22
+ --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.12);
23
+ --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.12);
24
+ --shadow-lg: 0 6px 12px rgba(15, 23, 42, 0.12);
25
+
26
+ --font-sans: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
27
+
28
+ --spacing-xxs: 4px;
29
+ --spacing-xs: 6px;
30
+ --spacing-sm: 8px;
31
+ --spacing-sm-plus: 10px;
32
+ --spacing-md: 12px;
33
+ --spacing-md-plus: 14px;
34
+ --spacing-lg: 16px;
35
+ --spacing-xl: 20px;
36
+ --spacing-xxl: 24px;
37
+ --spacing-xxxl: 32px;
38
+
39
+ --radius-sm: 12px;
40
+ --radius-md: 16px;
41
+ --radius-lg: 20px;
42
+ --radius-xl: 24px;
43
+ --radius-pill: 999px;
44
+ }
@@ -0,0 +1,50 @@
1
+ export const theme = {
2
+ extend: {
3
+ colors: {
4
+ surface: 'var(--color-surface)',
5
+ 'surface-muted': 'var(--color-surface-muted)',
6
+ 'surface-subdued': 'var(--color-surface-subdued)',
7
+ 'surface-alt': 'var(--color-surface-alt)',
8
+ 'surface-inverse': 'var(--color-surface-inverse)',
9
+ foreground: 'var(--color-text)',
10
+ muted: 'var(--color-text-muted)',
11
+ subdued: 'var(--color-text-subdued)',
12
+ primary: 'var(--color-primary)',
13
+ 'primary-emphasis': 'var(--color-primary-emphasis)',
14
+ 'primary-accent': 'var(--color-primary-accent)',
15
+ border: 'var(--color-border-subtle)',
16
+ 'border-strong': 'var(--color-border-strong)',
17
+ 'neutral-strong': 'var(--color-neutral-strong)',
18
+ 'neutral-muted': 'var(--color-neutral-muted)'
19
+ },
20
+ boxShadow: {
21
+ sm: 'var(--shadow-sm)',
22
+ md: 'var(--shadow-md)',
23
+ lg: 'var(--shadow-lg)'
24
+ },
25
+ borderRadius: {
26
+ sm: 'var(--radius-sm)',
27
+ md: 'var(--radius-md)',
28
+ lg: 'var(--radius-lg)',
29
+ xl: 'var(--radius-xl)',
30
+ pill: 'var(--radius-pill)'
31
+ },
32
+ spacing: {
33
+ xxs: 'var(--spacing-xxs)',
34
+ xs: 'var(--spacing-xs)',
35
+ sm: 'var(--spacing-sm)',
36
+ 'sm-plus': 'var(--spacing-sm-plus)',
37
+ md: 'var(--spacing-md)',
38
+ 'md-plus': 'var(--spacing-md-plus)',
39
+ lg: 'var(--spacing-lg)',
40
+ xl: 'var(--spacing-xl)',
41
+ xxl: 'var(--spacing-xxl)',
42
+ xxxl: 'var(--spacing-xxxl)'
43
+ },
44
+ fontFamily: {
45
+ sans: ['var(--font-sans)', 'system-ui', 'sans-serif']
46
+ }
47
+ }
48
+ }
49
+
50
+ export default { theme }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mereb/tokens",
3
- "version": "0.0.3",
4
- "description": "Design tokens generated by style-dictionary",
3
+ "version": "0.0.5",
4
+ "description": "Design tokens used by Mereb clients",
5
5
  "type": "module",
6
6
  "main": "./dist/tailwind/tokens.js",
7
7
  "exports": {
@@ -15,14 +15,20 @@
15
15
  "files": [
16
16
  "dist/**/*",
17
17
  "native.ts",
18
- "src/**/*",
18
+ "src/native.ts",
19
19
  "package.json"
20
20
  ],
21
21
  "devDependencies": {
22
+ "husky": "^9.1.7",
23
+ "rimraf": "^5.0.5",
22
24
  "typescript": "^5.5.4"
23
25
  },
24
26
  "scripts": {
25
27
  "typecheck": "tsc --noEmit --project tsconfig.json",
26
- "build": "tsc --project tsconfig.build.json"
28
+ "clean": "rimraf dist",
29
+ "build:assets": "node ./scripts/build-assets.mjs",
30
+ "build:types": "tsc --project tsconfig.build.json",
31
+ "build": "pnpm run clean && pnpm run build:assets && pnpm run build:types",
32
+ "version:bump": "node ./scripts/bump-version.mjs"
27
33
  }
28
34
  }