@adam-milo/tokens 1.0.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/LICENSE +21 -0
- package/README.md +158 -0
- package/dist/chunk-7VTNCMPG.mjs +62 -0
- package/dist/chunk-JMMDK5QW.mjs +57 -0
- package/dist/chunk-NFXHCTG6.mjs +94 -0
- package/dist/chunk-ZREVCOAD.mjs +69 -0
- package/dist/colors.d.mts +94 -0
- package/dist/colors.d.ts +94 -0
- package/dist/colors.js +120 -0
- package/dist/colors.mjs +10 -0
- package/dist/index.d.mts +248 -0
- package/dist/index.d.ts +248 -0
- package/dist/index.js +256 -0
- package/dist/index.mjs +36 -0
- package/dist/spacing.d.mts +37 -0
- package/dist/spacing.d.ts +37 -0
- package/dist/spacing.js +82 -0
- package/dist/spacing.mjs +8 -0
- package/dist/tokens.css +90 -0
- package/dist/typography.d.mts +127 -0
- package/dist/typography.d.ts +127 -0
- package/dist/typography.js +87 -0
- package/dist/typography.mjs +8 -0
- package/package.json +68 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Adam Milo
|
|
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,158 @@
|
|
|
1
|
+
# @adam-milo/tokens
|
|
2
|
+
|
|
3
|
+
Design tokens for the Adam Milo Design System (Smart V2).
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @adam-milo/tokens
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### JavaScript/TypeScript
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { colors, spacing, fontSize } from '@adam-milo/tokens';
|
|
17
|
+
// Or import everything
|
|
18
|
+
import tokens from '@adam-milo/tokens';
|
|
19
|
+
|
|
20
|
+
console.log(colors.action); // '#272643'
|
|
21
|
+
console.log(spacing[4]); // '1rem'
|
|
22
|
+
console.log(fontSize['title-8']); // ['1rem', { lineHeight: '1.2', fontWeight: '700' }]
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### CSS Variables
|
|
26
|
+
|
|
27
|
+
Import the CSS file to use design tokens as CSS custom properties:
|
|
28
|
+
|
|
29
|
+
```css
|
|
30
|
+
/* In your main CSS file */
|
|
31
|
+
@import '@adam-milo/tokens/tokens.css';
|
|
32
|
+
|
|
33
|
+
/* Now you can use the tokens */
|
|
34
|
+
.my-component {
|
|
35
|
+
color: var(--color-text);
|
|
36
|
+
padding: var(--spacing-4);
|
|
37
|
+
font-size: var(--font-size-8);
|
|
38
|
+
border-radius: var(--radius-md);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
**Or in your HTML:**
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<link rel="stylesheet" href="node_modules/@adam-milo/tokens/dist/tokens.css" />
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Or import in JavaScript (for bundlers like Vite/Webpack):**
|
|
49
|
+
|
|
50
|
+
```javascript
|
|
51
|
+
import '@adam-milo/tokens/tokens.css';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Selective Imports
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { colors } from '@adam-milo/tokens/colors';
|
|
58
|
+
import { spacing } from '@adam-milo/tokens/spacing';
|
|
59
|
+
import { fontSize } from '@adam-milo/tokens/typography';
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Tokens
|
|
63
|
+
|
|
64
|
+
### Colors
|
|
65
|
+
|
|
66
|
+
- **Main Colors**: text, action, clickable, popup, error, toggle, secondary, card
|
|
67
|
+
- **Greys**: bg, bgSecondary, border, iconSecondary, systemText, grey-07
|
|
68
|
+
- **Legacy Colors**: primary, secondary, neutral, success, danger (with 50-950 shades)
|
|
69
|
+
- **Gradients**: primary gradient
|
|
70
|
+
|
|
71
|
+
**CSS Variables:**
|
|
72
|
+
|
|
73
|
+
- `--color-text`, `--color-action`, `--color-clickable`, etc.
|
|
74
|
+
|
|
75
|
+
### Spacing
|
|
76
|
+
|
|
77
|
+
Spacing scale from 0 to 16 (0, 0.5, 1, 1.5, 2, 2.5, 3, 3.5, 4, 5, 6, 7, 8, 10, 11, 12, 14, 16)
|
|
78
|
+
All values in `rem` units.
|
|
79
|
+
|
|
80
|
+
**CSS Variables:**
|
|
81
|
+
|
|
82
|
+
- `--spacing-0-5`, `--spacing-1`, `--spacing-2`, `--spacing-4`, etc.
|
|
83
|
+
|
|
84
|
+
### Border Radius
|
|
85
|
+
|
|
86
|
+
Scale: sm, default, md, lg, xl, 2xl, 3xl, 4xl
|
|
87
|
+
|
|
88
|
+
**CSS Variables:**
|
|
89
|
+
|
|
90
|
+
- `--radius-sm`, `--radius-default`, `--radius-md`, `--radius-lg`, etc.
|
|
91
|
+
|
|
92
|
+
### Typography
|
|
93
|
+
|
|
94
|
+
- **Smart V2 Scale**: title-1 through title-10, text-1 through text-10
|
|
95
|
+
- **Font Family**: Almoni DL AAA
|
|
96
|
+
- **Legacy**: h1, h2, h3, h4, body-lg, body, body-sm, caption
|
|
97
|
+
|
|
98
|
+
**CSS Variables:**
|
|
99
|
+
|
|
100
|
+
- `--font-size-1` through `--font-size-10`
|
|
101
|
+
|
|
102
|
+
## TypeScript
|
|
103
|
+
|
|
104
|
+
Full TypeScript support with exported types:
|
|
105
|
+
|
|
106
|
+
```typescript
|
|
107
|
+
import type { Colors, Spacing, FontSize } from '@adam-milo/tokens';
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Formats
|
|
111
|
+
|
|
112
|
+
This package exports tokens in multiple formats:
|
|
113
|
+
|
|
114
|
+
1. **JavaScript/TypeScript** - For programmatic use in React, Node.js, etc.
|
|
115
|
+
2. **CSS Custom Properties** - For use in any CSS framework (React, Vue, Angular, vanilla)
|
|
116
|
+
|
|
117
|
+
## Use Cases
|
|
118
|
+
|
|
119
|
+
### React Components (JavaScript)
|
|
120
|
+
|
|
121
|
+
```typescript
|
|
122
|
+
import { colors, spacing } from '@adam-milo/tokens';
|
|
123
|
+
|
|
124
|
+
const buttonStyles = {
|
|
125
|
+
backgroundColor: colors.action,
|
|
126
|
+
padding: spacing[4],
|
|
127
|
+
};
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### Vanilla CSS
|
|
131
|
+
|
|
132
|
+
```css
|
|
133
|
+
@import '@adam-milo/tokens/tokens.css';
|
|
134
|
+
|
|
135
|
+
.button {
|
|
136
|
+
background-color: var(--color-action);
|
|
137
|
+
padding: var(--spacing-4);
|
|
138
|
+
}
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### Tailwind Configuration
|
|
142
|
+
|
|
143
|
+
```javascript
|
|
144
|
+
import { colors, spacing } from '@adam-milo/tokens';
|
|
145
|
+
|
|
146
|
+
export default {
|
|
147
|
+
theme: {
|
|
148
|
+
extend: {
|
|
149
|
+
colors,
|
|
150
|
+
spacing,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
};
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## License
|
|
157
|
+
|
|
158
|
+
MIT
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// src/typography.ts
|
|
2
|
+
var fontSize = {
|
|
3
|
+
// Title and Text pairs (Smart V2)
|
|
4
|
+
"title-1": ["3rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
5
|
+
// 48px - Bold
|
|
6
|
+
"text-1": ["3rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
7
|
+
// 48px - Regular
|
|
8
|
+
"title-2": ["2.5rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
9
|
+
// 40px - Bold
|
|
10
|
+
"text-2": ["2.5rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
11
|
+
// 40px - Regular
|
|
12
|
+
"title-3": ["2rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
13
|
+
// 32px - Bold
|
|
14
|
+
"text-3": ["2rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
15
|
+
// 32px - Regular
|
|
16
|
+
"title-4": ["1.75rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
17
|
+
// 28px - Bold
|
|
18
|
+
"text-4": ["1.75rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
19
|
+
// 28px - Regular
|
|
20
|
+
"title-5": ["1.5rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
21
|
+
// 24px - Bold
|
|
22
|
+
"text-5": ["1.5rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
23
|
+
// 24px - Regular
|
|
24
|
+
"title-6": ["1.25rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
25
|
+
// 20px - Bold
|
|
26
|
+
"text-6": ["1.25rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
27
|
+
// 20px - Regular
|
|
28
|
+
"title-7": ["1.125rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
29
|
+
// 18px - Bold (Main)
|
|
30
|
+
"text-7": ["1.125rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
31
|
+
// 18px - Regular
|
|
32
|
+
"title-8": ["1rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
33
|
+
// 16px - Bold
|
|
34
|
+
"text-8": ["1rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
35
|
+
// 16px - Regular (Main)
|
|
36
|
+
"title-9": ["0.875rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
37
|
+
// 14px - Bold
|
|
38
|
+
"text-9": ["0.875rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
39
|
+
// 14px - Regular
|
|
40
|
+
"title-10": ["0.75rem", { lineHeight: "1.2", fontWeight: "700" }],
|
|
41
|
+
// 12px - Bold
|
|
42
|
+
"text-10": ["0.75rem", { lineHeight: "1.2", fontWeight: "400" }],
|
|
43
|
+
// 12px - Regular
|
|
44
|
+
// Legacy names (keeping for backward compatibility)
|
|
45
|
+
h1: ["2.5rem", { lineHeight: "3rem", fontWeight: "700" }],
|
|
46
|
+
h2: ["2rem", { lineHeight: "2.5rem", fontWeight: "700" }],
|
|
47
|
+
h3: ["1.5rem", { lineHeight: "2rem", fontWeight: "600" }],
|
|
48
|
+
h4: ["1.25rem", { lineHeight: "1.75rem", fontWeight: "600" }],
|
|
49
|
+
"body-lg": ["1.125rem", { lineHeight: "1.75rem", fontWeight: "400" }],
|
|
50
|
+
body: ["1rem", { lineHeight: "1.5rem", fontWeight: "400" }],
|
|
51
|
+
"body-sm": ["0.875rem", { lineHeight: "1.25rem", fontWeight: "400" }],
|
|
52
|
+
caption: ["0.75rem", { lineHeight: "1rem", fontWeight: "400" }]
|
|
53
|
+
};
|
|
54
|
+
var fontFamily = {
|
|
55
|
+
almoni: ["Almoni DL AAA", "sans-serif"],
|
|
56
|
+
sans: ["Almoni DL AAA", "ui-sans-serif", "system-ui", "sans-serif"]
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
fontSize,
|
|
61
|
+
fontFamily
|
|
62
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// src/spacing.ts
|
|
2
|
+
var spacing = {
|
|
3
|
+
0: "0",
|
|
4
|
+
0.5: "0.125rem",
|
|
5
|
+
// 2px
|
|
6
|
+
1: "0.25rem",
|
|
7
|
+
// 4px
|
|
8
|
+
1.5: "0.375rem",
|
|
9
|
+
// 6px
|
|
10
|
+
2: "0.5rem",
|
|
11
|
+
// 8px
|
|
12
|
+
3: "0.75rem",
|
|
13
|
+
// 12px
|
|
14
|
+
4: "1rem",
|
|
15
|
+
// 16px
|
|
16
|
+
5: "1.25rem",
|
|
17
|
+
// 20px
|
|
18
|
+
6: "1.5rem",
|
|
19
|
+
// 24px
|
|
20
|
+
7: "1.75rem",
|
|
21
|
+
// 28px
|
|
22
|
+
8: "2rem",
|
|
23
|
+
// 32px
|
|
24
|
+
10: "2.5rem",
|
|
25
|
+
// 40px
|
|
26
|
+
12: "3rem",
|
|
27
|
+
// 48px
|
|
28
|
+
14: "3.5rem",
|
|
29
|
+
// 56px
|
|
30
|
+
16: "4rem"
|
|
31
|
+
// 64px
|
|
32
|
+
};
|
|
33
|
+
var borderRadius = {
|
|
34
|
+
none: "0",
|
|
35
|
+
sm: "0.125rem",
|
|
36
|
+
// 2px
|
|
37
|
+
default: "0.25rem",
|
|
38
|
+
// 4px
|
|
39
|
+
md: "0.5rem",
|
|
40
|
+
// 8px
|
|
41
|
+
lg: "0.75rem",
|
|
42
|
+
// 12px
|
|
43
|
+
xl: "1rem",
|
|
44
|
+
// 16px
|
|
45
|
+
"2xl": "1.25rem",
|
|
46
|
+
// 20px
|
|
47
|
+
"3xl": "1.5rem",
|
|
48
|
+
// 24px
|
|
49
|
+
"4xl": "2rem",
|
|
50
|
+
// 32px
|
|
51
|
+
full: "9999px"
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
spacing,
|
|
56
|
+
borderRadius
|
|
57
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
// src/colors.ts
|
|
2
|
+
var colors = {
|
|
3
|
+
// Main Colors
|
|
4
|
+
text: "#191A39",
|
|
5
|
+
action: "#272643",
|
|
6
|
+
clickable: "#2F9DB2",
|
|
7
|
+
popup: "#ED6726",
|
|
8
|
+
error: "#FF6868",
|
|
9
|
+
toggle: "#4B497C",
|
|
10
|
+
secondary: "#1D56EC",
|
|
11
|
+
card: "#FFFFFF",
|
|
12
|
+
// Main Greys
|
|
13
|
+
bg: "#FAFAFA",
|
|
14
|
+
bgSecondary: "#F3F3F5",
|
|
15
|
+
border: "#E5E5EA",
|
|
16
|
+
iconSecondary: "#C9C9CF",
|
|
17
|
+
systemText: "#8C8C9C"
|
|
18
|
+
};
|
|
19
|
+
var legacyColors = {
|
|
20
|
+
primary: {
|
|
21
|
+
50: "#eff6ff",
|
|
22
|
+
100: "#dbeafe",
|
|
23
|
+
200: "#bfdbfe",
|
|
24
|
+
300: "#93c5fd",
|
|
25
|
+
400: "#60a5fa",
|
|
26
|
+
500: "#3b82f6",
|
|
27
|
+
600: "#2563eb",
|
|
28
|
+
700: "#1d4ed8",
|
|
29
|
+
800: "#1e40af",
|
|
30
|
+
900: "#1e3a8a",
|
|
31
|
+
950: "#172554"
|
|
32
|
+
},
|
|
33
|
+
secondary: {
|
|
34
|
+
50: "#faf5ff",
|
|
35
|
+
100: "#f3e8ff",
|
|
36
|
+
200: "#e9d5ff",
|
|
37
|
+
300: "#d8b4fe",
|
|
38
|
+
400: "#c084fc",
|
|
39
|
+
500: "#a855f7",
|
|
40
|
+
600: "#9333ea",
|
|
41
|
+
700: "#7e22ce",
|
|
42
|
+
800: "#6b21a8",
|
|
43
|
+
900: "#581c87",
|
|
44
|
+
950: "#3b0764"
|
|
45
|
+
},
|
|
46
|
+
neutral: {
|
|
47
|
+
50: "#f9fafb",
|
|
48
|
+
100: "#f3f4f6",
|
|
49
|
+
200: "#e5e7eb",
|
|
50
|
+
300: "#d1d5db",
|
|
51
|
+
400: "#9ca3af",
|
|
52
|
+
500: "#6b7280",
|
|
53
|
+
600: "#4b5563",
|
|
54
|
+
700: "#374151",
|
|
55
|
+
800: "#1f2937",
|
|
56
|
+
900: "#111827",
|
|
57
|
+
950: "#030712"
|
|
58
|
+
},
|
|
59
|
+
success: {
|
|
60
|
+
50: "#f0fdf4",
|
|
61
|
+
100: "#dcfce7",
|
|
62
|
+
200: "#bbf7d0",
|
|
63
|
+
300: "#86efac",
|
|
64
|
+
400: "#4ade80",
|
|
65
|
+
500: "#22c55e",
|
|
66
|
+
600: "#16a34a",
|
|
67
|
+
700: "#15803d",
|
|
68
|
+
800: "#166534",
|
|
69
|
+
900: "#14532d",
|
|
70
|
+
950: "#052e16"
|
|
71
|
+
},
|
|
72
|
+
danger: {
|
|
73
|
+
50: "#fef2f2",
|
|
74
|
+
100: "#fee2e2",
|
|
75
|
+
200: "#fecaca",
|
|
76
|
+
300: "#fca5a5",
|
|
77
|
+
400: "#f87171",
|
|
78
|
+
500: "#ef4444",
|
|
79
|
+
600: "#dc2626",
|
|
80
|
+
700: "#b91c1c",
|
|
81
|
+
800: "#991b1b",
|
|
82
|
+
900: "#7f1d1d",
|
|
83
|
+
950: "#450a0a"
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var gradients = {
|
|
87
|
+
primary: "linear-gradient(236deg, #eee -19.33%, #41c2c4 28.51%, #3ea6b0 49.57%, #3c91a0 91.6%)"
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export {
|
|
91
|
+
colors,
|
|
92
|
+
legacyColors,
|
|
93
|
+
gradients
|
|
94
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// src/spacing.ts
|
|
2
|
+
var spacing = {
|
|
3
|
+
0: "0",
|
|
4
|
+
0.5: "0.125rem",
|
|
5
|
+
// 2px
|
|
6
|
+
1: "0.25rem",
|
|
7
|
+
// 4px
|
|
8
|
+
1.5: "0.375rem",
|
|
9
|
+
// 6px
|
|
10
|
+
2: "0.5rem",
|
|
11
|
+
// 8px
|
|
12
|
+
3: "0.75rem",
|
|
13
|
+
// 12px
|
|
14
|
+
4: "1rem",
|
|
15
|
+
// 16px
|
|
16
|
+
5: "1.25rem",
|
|
17
|
+
// 20px
|
|
18
|
+
6: "1.5rem",
|
|
19
|
+
// 24px
|
|
20
|
+
7: "1.75rem",
|
|
21
|
+
// 28px
|
|
22
|
+
8: "2rem",
|
|
23
|
+
// 32px
|
|
24
|
+
10: "2.5rem",
|
|
25
|
+
// 40px
|
|
26
|
+
12: "3rem",
|
|
27
|
+
// 48px
|
|
28
|
+
14: "3.5rem",
|
|
29
|
+
// 56px
|
|
30
|
+
16: "4rem"
|
|
31
|
+
// 64px
|
|
32
|
+
};
|
|
33
|
+
var borderRadius = {
|
|
34
|
+
none: "0",
|
|
35
|
+
sm: "0.125rem",
|
|
36
|
+
// 2px
|
|
37
|
+
default: "0.25rem",
|
|
38
|
+
// 4px
|
|
39
|
+
md: "0.5rem",
|
|
40
|
+
// 8px
|
|
41
|
+
lg: "0.75rem",
|
|
42
|
+
// 12px
|
|
43
|
+
xl: "1rem",
|
|
44
|
+
// 16px
|
|
45
|
+
"2xl": "1.25rem",
|
|
46
|
+
// 20px
|
|
47
|
+
"3xl": "1.5rem",
|
|
48
|
+
// 24px
|
|
49
|
+
"4xl": "2rem",
|
|
50
|
+
// 32px
|
|
51
|
+
full: "9999px"
|
|
52
|
+
};
|
|
53
|
+
var borderWidth = {
|
|
54
|
+
none: "0",
|
|
55
|
+
default: "0.0625rem",
|
|
56
|
+
// 1px
|
|
57
|
+
md: "0.125rem",
|
|
58
|
+
// 2px
|
|
59
|
+
lg: "0.1875rem",
|
|
60
|
+
// 3px
|
|
61
|
+
xl: "0.25rem"
|
|
62
|
+
// 4px
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
spacing,
|
|
67
|
+
borderRadius,
|
|
68
|
+
borderWidth
|
|
69
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart V2 Design System - Color Tokens
|
|
3
|
+
* @package @adam-milo/tokens
|
|
4
|
+
*/
|
|
5
|
+
declare const colors: {
|
|
6
|
+
readonly text: "#191A39";
|
|
7
|
+
readonly action: "#272643";
|
|
8
|
+
readonly clickable: "#2F9DB2";
|
|
9
|
+
readonly popup: "#ED6726";
|
|
10
|
+
readonly error: "#FF6868";
|
|
11
|
+
readonly toggle: "#4B497C";
|
|
12
|
+
readonly secondary: "#1D56EC";
|
|
13
|
+
readonly card: "#FFFFFF";
|
|
14
|
+
readonly bg: "#FAFAFA";
|
|
15
|
+
readonly bgSecondary: "#F3F3F5";
|
|
16
|
+
readonly border: "#E5E5EA";
|
|
17
|
+
readonly iconSecondary: "#C9C9CF";
|
|
18
|
+
readonly systemText: "#8C8C9C";
|
|
19
|
+
};
|
|
20
|
+
declare const legacyColors: {
|
|
21
|
+
readonly primary: {
|
|
22
|
+
readonly 50: "#eff6ff";
|
|
23
|
+
readonly 100: "#dbeafe";
|
|
24
|
+
readonly 200: "#bfdbfe";
|
|
25
|
+
readonly 300: "#93c5fd";
|
|
26
|
+
readonly 400: "#60a5fa";
|
|
27
|
+
readonly 500: "#3b82f6";
|
|
28
|
+
readonly 600: "#2563eb";
|
|
29
|
+
readonly 700: "#1d4ed8";
|
|
30
|
+
readonly 800: "#1e40af";
|
|
31
|
+
readonly 900: "#1e3a8a";
|
|
32
|
+
readonly 950: "#172554";
|
|
33
|
+
};
|
|
34
|
+
readonly secondary: {
|
|
35
|
+
readonly 50: "#faf5ff";
|
|
36
|
+
readonly 100: "#f3e8ff";
|
|
37
|
+
readonly 200: "#e9d5ff";
|
|
38
|
+
readonly 300: "#d8b4fe";
|
|
39
|
+
readonly 400: "#c084fc";
|
|
40
|
+
readonly 500: "#a855f7";
|
|
41
|
+
readonly 600: "#9333ea";
|
|
42
|
+
readonly 700: "#7e22ce";
|
|
43
|
+
readonly 800: "#6b21a8";
|
|
44
|
+
readonly 900: "#581c87";
|
|
45
|
+
readonly 950: "#3b0764";
|
|
46
|
+
};
|
|
47
|
+
readonly neutral: {
|
|
48
|
+
readonly 50: "#f9fafb";
|
|
49
|
+
readonly 100: "#f3f4f6";
|
|
50
|
+
readonly 200: "#e5e7eb";
|
|
51
|
+
readonly 300: "#d1d5db";
|
|
52
|
+
readonly 400: "#9ca3af";
|
|
53
|
+
readonly 500: "#6b7280";
|
|
54
|
+
readonly 600: "#4b5563";
|
|
55
|
+
readonly 700: "#374151";
|
|
56
|
+
readonly 800: "#1f2937";
|
|
57
|
+
readonly 900: "#111827";
|
|
58
|
+
readonly 950: "#030712";
|
|
59
|
+
};
|
|
60
|
+
readonly success: {
|
|
61
|
+
readonly 50: "#f0fdf4";
|
|
62
|
+
readonly 100: "#dcfce7";
|
|
63
|
+
readonly 200: "#bbf7d0";
|
|
64
|
+
readonly 300: "#86efac";
|
|
65
|
+
readonly 400: "#4ade80";
|
|
66
|
+
readonly 500: "#22c55e";
|
|
67
|
+
readonly 600: "#16a34a";
|
|
68
|
+
readonly 700: "#15803d";
|
|
69
|
+
readonly 800: "#166534";
|
|
70
|
+
readonly 900: "#14532d";
|
|
71
|
+
readonly 950: "#052e16";
|
|
72
|
+
};
|
|
73
|
+
readonly danger: {
|
|
74
|
+
readonly 50: "#fef2f2";
|
|
75
|
+
readonly 100: "#fee2e2";
|
|
76
|
+
readonly 200: "#fecaca";
|
|
77
|
+
readonly 300: "#fca5a5";
|
|
78
|
+
readonly 400: "#f87171";
|
|
79
|
+
readonly 500: "#ef4444";
|
|
80
|
+
readonly 600: "#dc2626";
|
|
81
|
+
readonly 700: "#b91c1c";
|
|
82
|
+
readonly 800: "#991b1b";
|
|
83
|
+
readonly 900: "#7f1d1d";
|
|
84
|
+
readonly 950: "#450a0a";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
declare const gradients: {
|
|
88
|
+
readonly primary: "linear-gradient(236deg, #eee -19.33%, #41c2c4 28.51%, #3ea6b0 49.57%, #3c91a0 91.6%)";
|
|
89
|
+
};
|
|
90
|
+
type Colors = typeof colors;
|
|
91
|
+
type LegacyColors = typeof legacyColors;
|
|
92
|
+
type Gradients = typeof gradients;
|
|
93
|
+
|
|
94
|
+
export { type Colors, type Gradients, type LegacyColors, colors, gradients, legacyColors };
|
package/dist/colors.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Smart V2 Design System - Color Tokens
|
|
3
|
+
* @package @adam-milo/tokens
|
|
4
|
+
*/
|
|
5
|
+
declare const colors: {
|
|
6
|
+
readonly text: "#191A39";
|
|
7
|
+
readonly action: "#272643";
|
|
8
|
+
readonly clickable: "#2F9DB2";
|
|
9
|
+
readonly popup: "#ED6726";
|
|
10
|
+
readonly error: "#FF6868";
|
|
11
|
+
readonly toggle: "#4B497C";
|
|
12
|
+
readonly secondary: "#1D56EC";
|
|
13
|
+
readonly card: "#FFFFFF";
|
|
14
|
+
readonly bg: "#FAFAFA";
|
|
15
|
+
readonly bgSecondary: "#F3F3F5";
|
|
16
|
+
readonly border: "#E5E5EA";
|
|
17
|
+
readonly iconSecondary: "#C9C9CF";
|
|
18
|
+
readonly systemText: "#8C8C9C";
|
|
19
|
+
};
|
|
20
|
+
declare const legacyColors: {
|
|
21
|
+
readonly primary: {
|
|
22
|
+
readonly 50: "#eff6ff";
|
|
23
|
+
readonly 100: "#dbeafe";
|
|
24
|
+
readonly 200: "#bfdbfe";
|
|
25
|
+
readonly 300: "#93c5fd";
|
|
26
|
+
readonly 400: "#60a5fa";
|
|
27
|
+
readonly 500: "#3b82f6";
|
|
28
|
+
readonly 600: "#2563eb";
|
|
29
|
+
readonly 700: "#1d4ed8";
|
|
30
|
+
readonly 800: "#1e40af";
|
|
31
|
+
readonly 900: "#1e3a8a";
|
|
32
|
+
readonly 950: "#172554";
|
|
33
|
+
};
|
|
34
|
+
readonly secondary: {
|
|
35
|
+
readonly 50: "#faf5ff";
|
|
36
|
+
readonly 100: "#f3e8ff";
|
|
37
|
+
readonly 200: "#e9d5ff";
|
|
38
|
+
readonly 300: "#d8b4fe";
|
|
39
|
+
readonly 400: "#c084fc";
|
|
40
|
+
readonly 500: "#a855f7";
|
|
41
|
+
readonly 600: "#9333ea";
|
|
42
|
+
readonly 700: "#7e22ce";
|
|
43
|
+
readonly 800: "#6b21a8";
|
|
44
|
+
readonly 900: "#581c87";
|
|
45
|
+
readonly 950: "#3b0764";
|
|
46
|
+
};
|
|
47
|
+
readonly neutral: {
|
|
48
|
+
readonly 50: "#f9fafb";
|
|
49
|
+
readonly 100: "#f3f4f6";
|
|
50
|
+
readonly 200: "#e5e7eb";
|
|
51
|
+
readonly 300: "#d1d5db";
|
|
52
|
+
readonly 400: "#9ca3af";
|
|
53
|
+
readonly 500: "#6b7280";
|
|
54
|
+
readonly 600: "#4b5563";
|
|
55
|
+
readonly 700: "#374151";
|
|
56
|
+
readonly 800: "#1f2937";
|
|
57
|
+
readonly 900: "#111827";
|
|
58
|
+
readonly 950: "#030712";
|
|
59
|
+
};
|
|
60
|
+
readonly success: {
|
|
61
|
+
readonly 50: "#f0fdf4";
|
|
62
|
+
readonly 100: "#dcfce7";
|
|
63
|
+
readonly 200: "#bbf7d0";
|
|
64
|
+
readonly 300: "#86efac";
|
|
65
|
+
readonly 400: "#4ade80";
|
|
66
|
+
readonly 500: "#22c55e";
|
|
67
|
+
readonly 600: "#16a34a";
|
|
68
|
+
readonly 700: "#15803d";
|
|
69
|
+
readonly 800: "#166534";
|
|
70
|
+
readonly 900: "#14532d";
|
|
71
|
+
readonly 950: "#052e16";
|
|
72
|
+
};
|
|
73
|
+
readonly danger: {
|
|
74
|
+
readonly 50: "#fef2f2";
|
|
75
|
+
readonly 100: "#fee2e2";
|
|
76
|
+
readonly 200: "#fecaca";
|
|
77
|
+
readonly 300: "#fca5a5";
|
|
78
|
+
readonly 400: "#f87171";
|
|
79
|
+
readonly 500: "#ef4444";
|
|
80
|
+
readonly 600: "#dc2626";
|
|
81
|
+
readonly 700: "#b91c1c";
|
|
82
|
+
readonly 800: "#991b1b";
|
|
83
|
+
readonly 900: "#7f1d1d";
|
|
84
|
+
readonly 950: "#450a0a";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
declare const gradients: {
|
|
88
|
+
readonly primary: "linear-gradient(236deg, #eee -19.33%, #41c2c4 28.51%, #3ea6b0 49.57%, #3c91a0 91.6%)";
|
|
89
|
+
};
|
|
90
|
+
type Colors = typeof colors;
|
|
91
|
+
type LegacyColors = typeof legacyColors;
|
|
92
|
+
type Gradients = typeof gradients;
|
|
93
|
+
|
|
94
|
+
export { type Colors, type Gradients, type LegacyColors, colors, gradients, legacyColors };
|