@altrex-ui/styling 0.1.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 +135 -0
- package/dist/index.js +1 -0
- package/dist/tokens.css +102 -0
- package/dist/tokens.d.ts +18 -0
- package/dist/tokens.js +328 -0
- package/package.json +21 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Altrex-UI
|
|
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,135 @@
|
|
|
1
|
+
# Altrex Styling
|
|
2
|
+
|
|
3
|
+
A simple design token system for the Altrex design system. This package contains core design tokens for colors, spacing, typography, and more.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @altrex-ui/styling
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### CSS Variables
|
|
14
|
+
|
|
15
|
+
Import the CSS file in your main stylesheet or HTML:
|
|
16
|
+
|
|
17
|
+
```css
|
|
18
|
+
@import '@altrex-ui/styling/dist/tokens.css';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Then use the CSS variables in your styles:
|
|
22
|
+
|
|
23
|
+
```css
|
|
24
|
+
.button {
|
|
25
|
+
background-color: var(--altrex-colors-primary-500);
|
|
26
|
+
padding: var(--altrex-spacing-4);
|
|
27
|
+
border-radius: var(--altrex-borderRadius-default);
|
|
28
|
+
font-size: var(--altrex-fontSize-base);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.card {
|
|
32
|
+
box-shadow: var(--altrex-shadow-md);
|
|
33
|
+
border-radius: var(--altrex-borderRadius-lg);
|
|
34
|
+
}
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### JavaScript/TypeScript
|
|
38
|
+
|
|
39
|
+
Import tokens directly in your JavaScript or TypeScript files:
|
|
40
|
+
|
|
41
|
+
```javascript
|
|
42
|
+
import { tokens, flatTokens, cssVarNames } from '@altrex-ui/styling';
|
|
43
|
+
|
|
44
|
+
// Access nested tokens
|
|
45
|
+
const primaryColor = tokens.colors.primary['500']; // '#007cff'
|
|
46
|
+
|
|
47
|
+
// Access flattened tokens
|
|
48
|
+
const primaryColor = flatTokens['colors.primary.500']; // '#007cff'
|
|
49
|
+
|
|
50
|
+
// Get CSS variable names
|
|
51
|
+
const cssVar = cssVarNames['colors.primary.500']; // '--altrex-colors-primary-500'
|
|
52
|
+
|
|
53
|
+
// Use in styled-components or other CSS-in-JS
|
|
54
|
+
const Button = styled.button`
|
|
55
|
+
background-color: ${tokens.colors.primary['500']};
|
|
56
|
+
padding: ${tokens.spacing['4']};
|
|
57
|
+
`;
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Available Tokens
|
|
61
|
+
|
|
62
|
+
### Colors
|
|
63
|
+
|
|
64
|
+
- `colors.primary.*` - Primary brand colors (50-900)
|
|
65
|
+
- `colors.secondary.*` - Secondary brand colors (50-900)
|
|
66
|
+
- `colors.neutral.*` - Neutral/gray colors (50-900)
|
|
67
|
+
- `colors.success.*` - Success state colors
|
|
68
|
+
- `colors.warning.*` - Warning state colors
|
|
69
|
+
- `colors.error.*` - Error state colors
|
|
70
|
+
- `colors.info.*` - Info state colors
|
|
71
|
+
|
|
72
|
+
### Spacing
|
|
73
|
+
|
|
74
|
+
Scale from `spacing.0` (0) to `spacing.24` (6rem)
|
|
75
|
+
|
|
76
|
+
### Typography
|
|
77
|
+
|
|
78
|
+
- `fontSize.*` - Font sizes from xs to 5xl
|
|
79
|
+
- `fontWeight.*` - Font weights (light, normal, medium, semibold, bold)
|
|
80
|
+
- `lineHeight.*` - Line heights (none, tight, snug, normal, relaxed, loose)
|
|
81
|
+
|
|
82
|
+
### Border Radius
|
|
83
|
+
|
|
84
|
+
- `borderRadius.*` - Border radius values (none, sm, default, md, lg, xl, 2xl, full)
|
|
85
|
+
|
|
86
|
+
### Shadows
|
|
87
|
+
|
|
88
|
+
- `shadow.*` - Box shadow values (sm, default, md, lg, xl, 2xl, inner)
|
|
89
|
+
|
|
90
|
+
### Breakpoints
|
|
91
|
+
|
|
92
|
+
- `breakpoints.*` - Responsive breakpoints (sm, md, lg, xl, 2xl)
|
|
93
|
+
|
|
94
|
+
## Development
|
|
95
|
+
|
|
96
|
+
### Editing Tokens
|
|
97
|
+
|
|
98
|
+
Edit the tokens in [src/tokens.json](src/tokens.json). The file structure is:
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
{
|
|
102
|
+
"colors": {
|
|
103
|
+
"primary": {
|
|
104
|
+
"500": "#007cff"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### Building
|
|
111
|
+
|
|
112
|
+
After editing tokens, run:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
npm run build
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
This generates:
|
|
119
|
+
- `dist/tokens.css` - CSS custom properties
|
|
120
|
+
- `dist/tokens.js` - JavaScript exports
|
|
121
|
+
- `dist/tokens.d.ts` - TypeScript type definitions
|
|
122
|
+
|
|
123
|
+
## Token Naming Convention
|
|
124
|
+
|
|
125
|
+
All CSS variables follow the pattern: `--altrex-{category}-{name}-{variant}`
|
|
126
|
+
|
|
127
|
+
Examples:
|
|
128
|
+
- `--altrex-colors-primary-500`
|
|
129
|
+
- `--altrex-spacing-4`
|
|
130
|
+
- `--altrex-fontSize-lg`
|
|
131
|
+
- `--altrex-borderRadius-default`
|
|
132
|
+
|
|
133
|
+
## License
|
|
134
|
+
|
|
135
|
+
MIT
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tokens.js';
|
package/dist/tokens.css
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Altrex Design System Tokens
|
|
3
|
+
* Generated automatically - do not edit
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
:root {
|
|
7
|
+
--altrex-colors-primary-50: #e6f2ff;
|
|
8
|
+
--altrex-colors-primary-100: #cce5ff;
|
|
9
|
+
--altrex-colors-primary-200: #99cbff;
|
|
10
|
+
--altrex-colors-primary-300: #66b0ff;
|
|
11
|
+
--altrex-colors-primary-400: #3396ff;
|
|
12
|
+
--altrex-colors-primary-500: #007cff;
|
|
13
|
+
--altrex-colors-primary-600: #0063cc;
|
|
14
|
+
--altrex-colors-primary-700: #004a99;
|
|
15
|
+
--altrex-colors-primary-800: #003166;
|
|
16
|
+
--altrex-colors-primary-900: #001933;
|
|
17
|
+
--altrex-colors-secondary-50: #f0e6ff;
|
|
18
|
+
--altrex-colors-secondary-100: #e0ccff;
|
|
19
|
+
--altrex-colors-secondary-200: #c299ff;
|
|
20
|
+
--altrex-colors-secondary-300: #a366ff;
|
|
21
|
+
--altrex-colors-secondary-400: #8533ff;
|
|
22
|
+
--altrex-colors-secondary-500: #6600ff;
|
|
23
|
+
--altrex-colors-secondary-600: #5200cc;
|
|
24
|
+
--altrex-colors-secondary-700: #3d0099;
|
|
25
|
+
--altrex-colors-secondary-800: #290066;
|
|
26
|
+
--altrex-colors-secondary-900: #140033;
|
|
27
|
+
--altrex-colors-neutral-50: #f8f9fa;
|
|
28
|
+
--altrex-colors-neutral-100: #f1f3f5;
|
|
29
|
+
--altrex-colors-neutral-200: #e9ecef;
|
|
30
|
+
--altrex-colors-neutral-300: #dee2e6;
|
|
31
|
+
--altrex-colors-neutral-400: #ced4da;
|
|
32
|
+
--altrex-colors-neutral-500: #adb5bd;
|
|
33
|
+
--altrex-colors-neutral-600: #868e96;
|
|
34
|
+
--altrex-colors-neutral-700: #495057;
|
|
35
|
+
--altrex-colors-neutral-800: #343a40;
|
|
36
|
+
--altrex-colors-neutral-900: #212529;
|
|
37
|
+
--altrex-colors-success-50: #e6f9f0;
|
|
38
|
+
--altrex-colors-success-500: #10b981;
|
|
39
|
+
--altrex-colors-success-900: #064e3b;
|
|
40
|
+
--altrex-colors-warning-50: #fff9e6;
|
|
41
|
+
--altrex-colors-warning-500: #f59e0b;
|
|
42
|
+
--altrex-colors-warning-900: #78350f;
|
|
43
|
+
--altrex-colors-error-50: #ffe6e6;
|
|
44
|
+
--altrex-colors-error-500: #ef4444;
|
|
45
|
+
--altrex-colors-error-900: #7f1d1d;
|
|
46
|
+
--altrex-colors-info-50: #e6f7ff;
|
|
47
|
+
--altrex-colors-info-500: #3b82f6;
|
|
48
|
+
--altrex-colors-info-900: #1e3a8a;
|
|
49
|
+
--altrex-spacing-0: 0;
|
|
50
|
+
--altrex-spacing-1: 0.25rem;
|
|
51
|
+
--altrex-spacing-2: 0.5rem;
|
|
52
|
+
--altrex-spacing-3: 0.75rem;
|
|
53
|
+
--altrex-spacing-4: 1rem;
|
|
54
|
+
--altrex-spacing-5: 1.25rem;
|
|
55
|
+
--altrex-spacing-6: 1.5rem;
|
|
56
|
+
--altrex-spacing-8: 2rem;
|
|
57
|
+
--altrex-spacing-10: 2.5rem;
|
|
58
|
+
--altrex-spacing-12: 3rem;
|
|
59
|
+
--altrex-spacing-16: 4rem;
|
|
60
|
+
--altrex-spacing-20: 5rem;
|
|
61
|
+
--altrex-spacing-24: 6rem;
|
|
62
|
+
--altrex-fontSize-xs: 0.75rem;
|
|
63
|
+
--altrex-fontSize-sm: 0.875rem;
|
|
64
|
+
--altrex-fontSize-base: 1rem;
|
|
65
|
+
--altrex-fontSize-lg: 1.125rem;
|
|
66
|
+
--altrex-fontSize-xl: 1.25rem;
|
|
67
|
+
--altrex-fontSize-2xl: 1.5rem;
|
|
68
|
+
--altrex-fontSize-3xl: 1.875rem;
|
|
69
|
+
--altrex-fontSize-4xl: 2.25rem;
|
|
70
|
+
--altrex-fontSize-5xl: 3rem;
|
|
71
|
+
--altrex-fontWeight-light: 300;
|
|
72
|
+
--altrex-fontWeight-normal: 400;
|
|
73
|
+
--altrex-fontWeight-medium: 500;
|
|
74
|
+
--altrex-fontWeight-semibold: 600;
|
|
75
|
+
--altrex-fontWeight-bold: 700;
|
|
76
|
+
--altrex-lineHeight-none: 1;
|
|
77
|
+
--altrex-lineHeight-tight: 1.25;
|
|
78
|
+
--altrex-lineHeight-snug: 1.375;
|
|
79
|
+
--altrex-lineHeight-normal: 1.5;
|
|
80
|
+
--altrex-lineHeight-relaxed: 1.625;
|
|
81
|
+
--altrex-lineHeight-loose: 2;
|
|
82
|
+
--altrex-borderRadius-none: 0;
|
|
83
|
+
--altrex-borderRadius-sm: 0.25rem;
|
|
84
|
+
--altrex-borderRadius-default: 0.5rem;
|
|
85
|
+
--altrex-borderRadius-md: 0.75rem;
|
|
86
|
+
--altrex-borderRadius-lg: 1rem;
|
|
87
|
+
--altrex-borderRadius-xl: 1.5rem;
|
|
88
|
+
--altrex-borderRadius-2xl: 2rem;
|
|
89
|
+
--altrex-borderRadius-full: 9999px;
|
|
90
|
+
--altrex-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
91
|
+
--altrex-shadow-default: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
92
|
+
--altrex-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
93
|
+
--altrex-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
|
94
|
+
--altrex-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
|
95
|
+
--altrex-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
|
|
96
|
+
--altrex-shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
|
|
97
|
+
--altrex-breakpoints-sm: 640px;
|
|
98
|
+
--altrex-breakpoints-md: 768px;
|
|
99
|
+
--altrex-breakpoints-lg: 1024px;
|
|
100
|
+
--altrex-breakpoints-xl: 1280px;
|
|
101
|
+
--altrex-breakpoints-2xl: 1536px;
|
|
102
|
+
}
|
package/dist/tokens.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Altrex Design System Tokens
|
|
3
|
+
* Generated automatically - do not edit
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const tokens: {
|
|
7
|
+
colors: Record<string, Record<string, string>>;
|
|
8
|
+
spacing: Record<string, string>;
|
|
9
|
+
fontSize: Record<string, string>;
|
|
10
|
+
fontWeight: Record<string, string>;
|
|
11
|
+
lineHeight: Record<string, string>;
|
|
12
|
+
borderRadius: Record<string, string>;
|
|
13
|
+
shadow: Record<string, string>;
|
|
14
|
+
breakpoints: Record<string, string>;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const flatTokens: Record<string, string>;
|
|
18
|
+
export const cssVarNames: Record<string, string>;
|
package/dist/tokens.js
ADDED
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Altrex Design System Tokens
|
|
3
|
+
* Generated automatically - do not edit
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export const tokens = {
|
|
7
|
+
"colors": {
|
|
8
|
+
"primary": {
|
|
9
|
+
"50": "#e6f2ff",
|
|
10
|
+
"100": "#cce5ff",
|
|
11
|
+
"200": "#99cbff",
|
|
12
|
+
"300": "#66b0ff",
|
|
13
|
+
"400": "#3396ff",
|
|
14
|
+
"500": "#007cff",
|
|
15
|
+
"600": "#0063cc",
|
|
16
|
+
"700": "#004a99",
|
|
17
|
+
"800": "#003166",
|
|
18
|
+
"900": "#001933"
|
|
19
|
+
},
|
|
20
|
+
"secondary": {
|
|
21
|
+
"50": "#f0e6ff",
|
|
22
|
+
"100": "#e0ccff",
|
|
23
|
+
"200": "#c299ff",
|
|
24
|
+
"300": "#a366ff",
|
|
25
|
+
"400": "#8533ff",
|
|
26
|
+
"500": "#6600ff",
|
|
27
|
+
"600": "#5200cc",
|
|
28
|
+
"700": "#3d0099",
|
|
29
|
+
"800": "#290066",
|
|
30
|
+
"900": "#140033"
|
|
31
|
+
},
|
|
32
|
+
"neutral": {
|
|
33
|
+
"50": "#f8f9fa",
|
|
34
|
+
"100": "#f1f3f5",
|
|
35
|
+
"200": "#e9ecef",
|
|
36
|
+
"300": "#dee2e6",
|
|
37
|
+
"400": "#ced4da",
|
|
38
|
+
"500": "#adb5bd",
|
|
39
|
+
"600": "#868e96",
|
|
40
|
+
"700": "#495057",
|
|
41
|
+
"800": "#343a40",
|
|
42
|
+
"900": "#212529"
|
|
43
|
+
},
|
|
44
|
+
"success": {
|
|
45
|
+
"50": "#e6f9f0",
|
|
46
|
+
"500": "#10b981",
|
|
47
|
+
"900": "#064e3b"
|
|
48
|
+
},
|
|
49
|
+
"warning": {
|
|
50
|
+
"50": "#fff9e6",
|
|
51
|
+
"500": "#f59e0b",
|
|
52
|
+
"900": "#78350f"
|
|
53
|
+
},
|
|
54
|
+
"error": {
|
|
55
|
+
"50": "#ffe6e6",
|
|
56
|
+
"500": "#ef4444",
|
|
57
|
+
"900": "#7f1d1d"
|
|
58
|
+
},
|
|
59
|
+
"info": {
|
|
60
|
+
"50": "#e6f7ff",
|
|
61
|
+
"500": "#3b82f6",
|
|
62
|
+
"900": "#1e3a8a"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"spacing": {
|
|
66
|
+
"0": "0",
|
|
67
|
+
"1": "0.25rem",
|
|
68
|
+
"2": "0.5rem",
|
|
69
|
+
"3": "0.75rem",
|
|
70
|
+
"4": "1rem",
|
|
71
|
+
"5": "1.25rem",
|
|
72
|
+
"6": "1.5rem",
|
|
73
|
+
"8": "2rem",
|
|
74
|
+
"10": "2.5rem",
|
|
75
|
+
"12": "3rem",
|
|
76
|
+
"16": "4rem",
|
|
77
|
+
"20": "5rem",
|
|
78
|
+
"24": "6rem"
|
|
79
|
+
},
|
|
80
|
+
"fontSize": {
|
|
81
|
+
"xs": "0.75rem",
|
|
82
|
+
"sm": "0.875rem",
|
|
83
|
+
"base": "1rem",
|
|
84
|
+
"lg": "1.125rem",
|
|
85
|
+
"xl": "1.25rem",
|
|
86
|
+
"2xl": "1.5rem",
|
|
87
|
+
"3xl": "1.875rem",
|
|
88
|
+
"4xl": "2.25rem",
|
|
89
|
+
"5xl": "3rem"
|
|
90
|
+
},
|
|
91
|
+
"fontWeight": {
|
|
92
|
+
"light": "300",
|
|
93
|
+
"normal": "400",
|
|
94
|
+
"medium": "500",
|
|
95
|
+
"semibold": "600",
|
|
96
|
+
"bold": "700"
|
|
97
|
+
},
|
|
98
|
+
"lineHeight": {
|
|
99
|
+
"none": "1",
|
|
100
|
+
"tight": "1.25",
|
|
101
|
+
"snug": "1.375",
|
|
102
|
+
"normal": "1.5",
|
|
103
|
+
"relaxed": "1.625",
|
|
104
|
+
"loose": "2"
|
|
105
|
+
},
|
|
106
|
+
"borderRadius": {
|
|
107
|
+
"none": "0",
|
|
108
|
+
"sm": "0.25rem",
|
|
109
|
+
"default": "0.5rem",
|
|
110
|
+
"md": "0.75rem",
|
|
111
|
+
"lg": "1rem",
|
|
112
|
+
"xl": "1.5rem",
|
|
113
|
+
"2xl": "2rem",
|
|
114
|
+
"full": "9999px"
|
|
115
|
+
},
|
|
116
|
+
"shadow": {
|
|
117
|
+
"sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
118
|
+
"default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
119
|
+
"md": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
120
|
+
"lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
121
|
+
"xl": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
122
|
+
"2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
|
123
|
+
"inner": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)"
|
|
124
|
+
},
|
|
125
|
+
"breakpoints": {
|
|
126
|
+
"sm": "640px",
|
|
127
|
+
"md": "768px",
|
|
128
|
+
"lg": "1024px",
|
|
129
|
+
"xl": "1280px",
|
|
130
|
+
"2xl": "1536px"
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export const flatTokens = {
|
|
135
|
+
"colors.primary.50": "#e6f2ff",
|
|
136
|
+
"colors.primary.100": "#cce5ff",
|
|
137
|
+
"colors.primary.200": "#99cbff",
|
|
138
|
+
"colors.primary.300": "#66b0ff",
|
|
139
|
+
"colors.primary.400": "#3396ff",
|
|
140
|
+
"colors.primary.500": "#007cff",
|
|
141
|
+
"colors.primary.600": "#0063cc",
|
|
142
|
+
"colors.primary.700": "#004a99",
|
|
143
|
+
"colors.primary.800": "#003166",
|
|
144
|
+
"colors.primary.900": "#001933",
|
|
145
|
+
"colors.secondary.50": "#f0e6ff",
|
|
146
|
+
"colors.secondary.100": "#e0ccff",
|
|
147
|
+
"colors.secondary.200": "#c299ff",
|
|
148
|
+
"colors.secondary.300": "#a366ff",
|
|
149
|
+
"colors.secondary.400": "#8533ff",
|
|
150
|
+
"colors.secondary.500": "#6600ff",
|
|
151
|
+
"colors.secondary.600": "#5200cc",
|
|
152
|
+
"colors.secondary.700": "#3d0099",
|
|
153
|
+
"colors.secondary.800": "#290066",
|
|
154
|
+
"colors.secondary.900": "#140033",
|
|
155
|
+
"colors.neutral.50": "#f8f9fa",
|
|
156
|
+
"colors.neutral.100": "#f1f3f5",
|
|
157
|
+
"colors.neutral.200": "#e9ecef",
|
|
158
|
+
"colors.neutral.300": "#dee2e6",
|
|
159
|
+
"colors.neutral.400": "#ced4da",
|
|
160
|
+
"colors.neutral.500": "#adb5bd",
|
|
161
|
+
"colors.neutral.600": "#868e96",
|
|
162
|
+
"colors.neutral.700": "#495057",
|
|
163
|
+
"colors.neutral.800": "#343a40",
|
|
164
|
+
"colors.neutral.900": "#212529",
|
|
165
|
+
"colors.success.50": "#e6f9f0",
|
|
166
|
+
"colors.success.500": "#10b981",
|
|
167
|
+
"colors.success.900": "#064e3b",
|
|
168
|
+
"colors.warning.50": "#fff9e6",
|
|
169
|
+
"colors.warning.500": "#f59e0b",
|
|
170
|
+
"colors.warning.900": "#78350f",
|
|
171
|
+
"colors.error.50": "#ffe6e6",
|
|
172
|
+
"colors.error.500": "#ef4444",
|
|
173
|
+
"colors.error.900": "#7f1d1d",
|
|
174
|
+
"colors.info.50": "#e6f7ff",
|
|
175
|
+
"colors.info.500": "#3b82f6",
|
|
176
|
+
"colors.info.900": "#1e3a8a",
|
|
177
|
+
"spacing.0": "0",
|
|
178
|
+
"spacing.1": "0.25rem",
|
|
179
|
+
"spacing.2": "0.5rem",
|
|
180
|
+
"spacing.3": "0.75rem",
|
|
181
|
+
"spacing.4": "1rem",
|
|
182
|
+
"spacing.5": "1.25rem",
|
|
183
|
+
"spacing.6": "1.5rem",
|
|
184
|
+
"spacing.8": "2rem",
|
|
185
|
+
"spacing.10": "2.5rem",
|
|
186
|
+
"spacing.12": "3rem",
|
|
187
|
+
"spacing.16": "4rem",
|
|
188
|
+
"spacing.20": "5rem",
|
|
189
|
+
"spacing.24": "6rem",
|
|
190
|
+
"fontSize.xs": "0.75rem",
|
|
191
|
+
"fontSize.sm": "0.875rem",
|
|
192
|
+
"fontSize.base": "1rem",
|
|
193
|
+
"fontSize.lg": "1.125rem",
|
|
194
|
+
"fontSize.xl": "1.25rem",
|
|
195
|
+
"fontSize.2xl": "1.5rem",
|
|
196
|
+
"fontSize.3xl": "1.875rem",
|
|
197
|
+
"fontSize.4xl": "2.25rem",
|
|
198
|
+
"fontSize.5xl": "3rem",
|
|
199
|
+
"fontWeight.light": "300",
|
|
200
|
+
"fontWeight.normal": "400",
|
|
201
|
+
"fontWeight.medium": "500",
|
|
202
|
+
"fontWeight.semibold": "600",
|
|
203
|
+
"fontWeight.bold": "700",
|
|
204
|
+
"lineHeight.none": "1",
|
|
205
|
+
"lineHeight.tight": "1.25",
|
|
206
|
+
"lineHeight.snug": "1.375",
|
|
207
|
+
"lineHeight.normal": "1.5",
|
|
208
|
+
"lineHeight.relaxed": "1.625",
|
|
209
|
+
"lineHeight.loose": "2",
|
|
210
|
+
"borderRadius.none": "0",
|
|
211
|
+
"borderRadius.sm": "0.25rem",
|
|
212
|
+
"borderRadius.default": "0.5rem",
|
|
213
|
+
"borderRadius.md": "0.75rem",
|
|
214
|
+
"borderRadius.lg": "1rem",
|
|
215
|
+
"borderRadius.xl": "1.5rem",
|
|
216
|
+
"borderRadius.2xl": "2rem",
|
|
217
|
+
"borderRadius.full": "9999px",
|
|
218
|
+
"shadow.sm": "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
|
|
219
|
+
"shadow.default": "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
|
|
220
|
+
"shadow.md": "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
|
|
221
|
+
"shadow.lg": "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
|
|
222
|
+
"shadow.xl": "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
|
|
223
|
+
"shadow.2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)",
|
|
224
|
+
"shadow.inner": "inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)",
|
|
225
|
+
"breakpoints.sm": "640px",
|
|
226
|
+
"breakpoints.md": "768px",
|
|
227
|
+
"breakpoints.lg": "1024px",
|
|
228
|
+
"breakpoints.xl": "1280px",
|
|
229
|
+
"breakpoints.2xl": "1536px"
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
export const cssVarNames = {
|
|
233
|
+
"colors.primary.50": "--altrex-colors-primary-50",
|
|
234
|
+
"colors.primary.100": "--altrex-colors-primary-100",
|
|
235
|
+
"colors.primary.200": "--altrex-colors-primary-200",
|
|
236
|
+
"colors.primary.300": "--altrex-colors-primary-300",
|
|
237
|
+
"colors.primary.400": "--altrex-colors-primary-400",
|
|
238
|
+
"colors.primary.500": "--altrex-colors-primary-500",
|
|
239
|
+
"colors.primary.600": "--altrex-colors-primary-600",
|
|
240
|
+
"colors.primary.700": "--altrex-colors-primary-700",
|
|
241
|
+
"colors.primary.800": "--altrex-colors-primary-800",
|
|
242
|
+
"colors.primary.900": "--altrex-colors-primary-900",
|
|
243
|
+
"colors.secondary.50": "--altrex-colors-secondary-50",
|
|
244
|
+
"colors.secondary.100": "--altrex-colors-secondary-100",
|
|
245
|
+
"colors.secondary.200": "--altrex-colors-secondary-200",
|
|
246
|
+
"colors.secondary.300": "--altrex-colors-secondary-300",
|
|
247
|
+
"colors.secondary.400": "--altrex-colors-secondary-400",
|
|
248
|
+
"colors.secondary.500": "--altrex-colors-secondary-500",
|
|
249
|
+
"colors.secondary.600": "--altrex-colors-secondary-600",
|
|
250
|
+
"colors.secondary.700": "--altrex-colors-secondary-700",
|
|
251
|
+
"colors.secondary.800": "--altrex-colors-secondary-800",
|
|
252
|
+
"colors.secondary.900": "--altrex-colors-secondary-900",
|
|
253
|
+
"colors.neutral.50": "--altrex-colors-neutral-50",
|
|
254
|
+
"colors.neutral.100": "--altrex-colors-neutral-100",
|
|
255
|
+
"colors.neutral.200": "--altrex-colors-neutral-200",
|
|
256
|
+
"colors.neutral.300": "--altrex-colors-neutral-300",
|
|
257
|
+
"colors.neutral.400": "--altrex-colors-neutral-400",
|
|
258
|
+
"colors.neutral.500": "--altrex-colors-neutral-500",
|
|
259
|
+
"colors.neutral.600": "--altrex-colors-neutral-600",
|
|
260
|
+
"colors.neutral.700": "--altrex-colors-neutral-700",
|
|
261
|
+
"colors.neutral.800": "--altrex-colors-neutral-800",
|
|
262
|
+
"colors.neutral.900": "--altrex-colors-neutral-900",
|
|
263
|
+
"colors.success.50": "--altrex-colors-success-50",
|
|
264
|
+
"colors.success.500": "--altrex-colors-success-500",
|
|
265
|
+
"colors.success.900": "--altrex-colors-success-900",
|
|
266
|
+
"colors.warning.50": "--altrex-colors-warning-50",
|
|
267
|
+
"colors.warning.500": "--altrex-colors-warning-500",
|
|
268
|
+
"colors.warning.900": "--altrex-colors-warning-900",
|
|
269
|
+
"colors.error.50": "--altrex-colors-error-50",
|
|
270
|
+
"colors.error.500": "--altrex-colors-error-500",
|
|
271
|
+
"colors.error.900": "--altrex-colors-error-900",
|
|
272
|
+
"colors.info.50": "--altrex-colors-info-50",
|
|
273
|
+
"colors.info.500": "--altrex-colors-info-500",
|
|
274
|
+
"colors.info.900": "--altrex-colors-info-900",
|
|
275
|
+
"spacing.0": "--altrex-spacing-0",
|
|
276
|
+
"spacing.1": "--altrex-spacing-1",
|
|
277
|
+
"spacing.2": "--altrex-spacing-2",
|
|
278
|
+
"spacing.3": "--altrex-spacing-3",
|
|
279
|
+
"spacing.4": "--altrex-spacing-4",
|
|
280
|
+
"spacing.5": "--altrex-spacing-5",
|
|
281
|
+
"spacing.6": "--altrex-spacing-6",
|
|
282
|
+
"spacing.8": "--altrex-spacing-8",
|
|
283
|
+
"spacing.10": "--altrex-spacing-10",
|
|
284
|
+
"spacing.12": "--altrex-spacing-12",
|
|
285
|
+
"spacing.16": "--altrex-spacing-16",
|
|
286
|
+
"spacing.20": "--altrex-spacing-20",
|
|
287
|
+
"spacing.24": "--altrex-spacing-24",
|
|
288
|
+
"fontSize.xs": "--altrex-fontSize-xs",
|
|
289
|
+
"fontSize.sm": "--altrex-fontSize-sm",
|
|
290
|
+
"fontSize.base": "--altrex-fontSize-base",
|
|
291
|
+
"fontSize.lg": "--altrex-fontSize-lg",
|
|
292
|
+
"fontSize.xl": "--altrex-fontSize-xl",
|
|
293
|
+
"fontSize.2xl": "--altrex-fontSize-2xl",
|
|
294
|
+
"fontSize.3xl": "--altrex-fontSize-3xl",
|
|
295
|
+
"fontSize.4xl": "--altrex-fontSize-4xl",
|
|
296
|
+
"fontSize.5xl": "--altrex-fontSize-5xl",
|
|
297
|
+
"fontWeight.light": "--altrex-fontWeight-light",
|
|
298
|
+
"fontWeight.normal": "--altrex-fontWeight-normal",
|
|
299
|
+
"fontWeight.medium": "--altrex-fontWeight-medium",
|
|
300
|
+
"fontWeight.semibold": "--altrex-fontWeight-semibold",
|
|
301
|
+
"fontWeight.bold": "--altrex-fontWeight-bold",
|
|
302
|
+
"lineHeight.none": "--altrex-lineHeight-none",
|
|
303
|
+
"lineHeight.tight": "--altrex-lineHeight-tight",
|
|
304
|
+
"lineHeight.snug": "--altrex-lineHeight-snug",
|
|
305
|
+
"lineHeight.normal": "--altrex-lineHeight-normal",
|
|
306
|
+
"lineHeight.relaxed": "--altrex-lineHeight-relaxed",
|
|
307
|
+
"lineHeight.loose": "--altrex-lineHeight-loose",
|
|
308
|
+
"borderRadius.none": "--altrex-borderRadius-none",
|
|
309
|
+
"borderRadius.sm": "--altrex-borderRadius-sm",
|
|
310
|
+
"borderRadius.default": "--altrex-borderRadius-default",
|
|
311
|
+
"borderRadius.md": "--altrex-borderRadius-md",
|
|
312
|
+
"borderRadius.lg": "--altrex-borderRadius-lg",
|
|
313
|
+
"borderRadius.xl": "--altrex-borderRadius-xl",
|
|
314
|
+
"borderRadius.2xl": "--altrex-borderRadius-2xl",
|
|
315
|
+
"borderRadius.full": "--altrex-borderRadius-full",
|
|
316
|
+
"shadow.sm": "--altrex-shadow-sm",
|
|
317
|
+
"shadow.default": "--altrex-shadow-default",
|
|
318
|
+
"shadow.md": "--altrex-shadow-md",
|
|
319
|
+
"shadow.lg": "--altrex-shadow-lg",
|
|
320
|
+
"shadow.xl": "--altrex-shadow-xl",
|
|
321
|
+
"shadow.2xl": "--altrex-shadow-2xl",
|
|
322
|
+
"shadow.inner": "--altrex-shadow-inner",
|
|
323
|
+
"breakpoints.sm": "--altrex-breakpoints-sm",
|
|
324
|
+
"breakpoints.md": "--altrex-breakpoints-md",
|
|
325
|
+
"breakpoints.lg": "--altrex-breakpoints-lg",
|
|
326
|
+
"breakpoints.xl": "--altrex-breakpoints-xl",
|
|
327
|
+
"breakpoints.2xl": "--altrex-breakpoints-2xl"
|
|
328
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@altrex-ui/styling",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Core design tokens for the Altrex design system",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "node build.js",
|
|
8
|
+
"watch": "node build.js --watch"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"design-tokens",
|
|
12
|
+
"design-system",
|
|
13
|
+
"altrex",
|
|
14
|
+
"css-variables"
|
|
15
|
+
],
|
|
16
|
+
"author": "Altrex UI",
|
|
17
|
+
"license": "MIT",
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
]
|
|
21
|
+
}
|