@actabldesign/bellhop-styles 0.0.4 → 0.0.12
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/README.md +105 -70
- package/dist/index.css +33 -0
- package/dist/utilities.css +5730 -0
- package/llms.txt +2765 -119
- package/package.json +6 -1
- package/rollup.config.js +39 -24
- package/src/bh-tokens/_primitives.scss +296 -0
- package/src/bh-tokens/_semantic.scss +158 -0
- package/src/bh-tokens/components/_avatar.tokens.scss +64 -0
- package/src/bh-tokens/components/_badge-dot.tokens.scss +33 -0
- package/src/bh-tokens/components/_badge.tokens.scss +61 -0
- package/src/bh-tokens/components/_button-icon.tokens.scss +65 -0
- package/src/bh-tokens/components/_button.tokens.scss +185 -0
- package/src/bh-tokens/components/_checkbox.tokens.scss +67 -0
- package/src/bh-tokens/components/_dropdown.tokens.scss +103 -0
- package/src/bh-tokens/components/_featured-icon.tokens.scss +57 -0
- package/src/bh-tokens/components/_input-number.tokens.scss +50 -0
- package/src/bh-tokens/components/_input.tokens.scss +86 -0
- package/src/bh-tokens/components/_label.tokens.scss +37 -0
- package/src/bh-tokens/components/_modal.tokens.scss +42 -0
- package/src/bh-tokens/components/_pagination.tokens.scss +104 -0
- package/src/bh-tokens/components/_password.tokens.scss +63 -0
- package/src/bh-tokens/components/_progress-bar.tokens.scss +34 -0
- package/src/bh-tokens/components/_progress-spinner.tokens.scss +51 -0
- package/src/bh-tokens/components/_radiobutton.tokens.scss +90 -0
- package/src/bh-tokens/components/_skeleton.tokens.scss +22 -0
- package/src/bh-tokens/components/_textarea.tokens.scss +76 -0
- package/src/bh-tokens/components/_toggle.tokens.scss +74 -0
- package/src/bh-tokens/components/avatar.scss +288 -0
- package/src/bh-tokens/components/badge-dot.scss +177 -0
- package/src/bh-tokens/components/badge.scss +497 -0
- package/src/bh-tokens/components/button-icon.scss +227 -0
- package/src/bh-tokens/components/button.scss +640 -0
- package/src/bh-tokens/components/checkbox.scss +254 -0
- package/src/bh-tokens/components/dropdown.scss +231 -0
- package/src/bh-tokens/components/featured-icon.scss +219 -0
- package/src/bh-tokens/components/input-number.scss +147 -0
- package/src/bh-tokens/components/input.scss +271 -0
- package/src/bh-tokens/components/label.scss +176 -0
- package/src/bh-tokens/components/modal.scss +103 -0
- package/src/bh-tokens/components/pagination.scss +324 -0
- package/src/bh-tokens/components/password.scss +193 -0
- package/src/bh-tokens/components/progress-bar.scss +124 -0
- package/src/bh-tokens/components/progress-spinner.scss +130 -0
- package/src/bh-tokens/components/radiobutton.scss +193 -0
- package/src/bh-tokens/components/skeleton.scss +50 -0
- package/src/bh-tokens/components/textarea.scss +228 -0
- package/src/bh-tokens/components/toggle.scss +320 -0
- package/src/mixins/_responsive.scss +167 -0
- package/src/tokens/bellhop-typography.css +34 -0
- package/src/utilities/_breakpoints.scss +19 -0
- package/src/utilities/_flex.scss +228 -0
- package/src/utilities/_grid.scss +189 -0
- package/src/utilities/_index.scss +32 -0
- package/src/utilities/_scrollable.scss +239 -0
- package/src/utilities/_sizing.scss +229 -0
- package/src/utilities/_spacing.scss +187 -0
- package/src/utilities/_truncation.scss +126 -0
- package/src/utilities/_visibility.scss +117 -0
- package/src/utilities.scss +32 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @actabldesign/bellhop-styles
|
|
2
2
|
|
|
3
|
-
Shared CSS styles and design tokens for the Bellhop design system.
|
|
3
|
+
Shared CSS styles and design tokens for the Bellhop design system. Framework-agnostic styles that work with Angular, React, or any other framework.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -10,33 +10,91 @@ npm install @actabldesign/bellhop-styles
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### ESM / CDN (Recommended)
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
The easiest way to use Bellhop styles is via ESM CDN links. No build step required:
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<!-- All styles -->
|
|
19
|
+
<link rel="stylesheet" href="https://esm.sh/@actabldesign/bellhop-styles" />
|
|
20
|
+
|
|
21
|
+
<!-- Utility classes only -->
|
|
22
|
+
<link
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
href="https://esm.sh/@actabldesign/bellhop-styles/utilities"
|
|
25
|
+
/>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Alternative CDN options:
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<!-- unpkg -->
|
|
32
|
+
<link
|
|
33
|
+
rel="stylesheet"
|
|
34
|
+
href="https://unpkg.com/@actabldesign/bellhop-styles/index.css"
|
|
35
|
+
/>
|
|
36
|
+
|
|
37
|
+
<!-- jsdelivr -->
|
|
38
|
+
<link
|
|
39
|
+
rel="stylesheet"
|
|
40
|
+
href="https://cdn.jsdelivr.net/npm/@actabldesign/bellhop-styles/index.css"
|
|
41
|
+
/>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Import in CSS
|
|
45
|
+
|
|
46
|
+
Import the complete style package in your main CSS file:
|
|
16
47
|
|
|
17
48
|
```css
|
|
18
49
|
@import '@actabldesign/bellhop-styles';
|
|
19
50
|
```
|
|
20
51
|
|
|
21
|
-
|
|
52
|
+
Or in TypeScript/JavaScript:
|
|
22
53
|
|
|
23
54
|
```tsx
|
|
24
55
|
import '@actabldesign/bellhop-styles';
|
|
25
56
|
```
|
|
26
57
|
|
|
27
|
-
### Import
|
|
58
|
+
### Import Utility Classes
|
|
28
59
|
|
|
29
|
-
For
|
|
60
|
+
For layout and utility classes:
|
|
30
61
|
|
|
31
62
|
```css
|
|
32
|
-
@import '@actabldesign/bellhop-styles/
|
|
33
|
-
@import '@actabldesign/bellhop-styles/base/typography.css';
|
|
34
|
-
@import '@actabldesign/bellhop-styles/base/spacing.css';
|
|
35
|
-
@import '@actabldesign/bellhop-styles/base/shadows.css';
|
|
36
|
-
@import '@actabldesign/bellhop-styles/base/radius.css';
|
|
63
|
+
@import '@actabldesign/bellhop-styles/utilities';
|
|
37
64
|
```
|
|
38
65
|
|
|
39
|
-
###
|
|
66
|
+
### Import Individual Token Files
|
|
67
|
+
|
|
68
|
+
For granular control, import specific token files from `src/tokens/`:
|
|
69
|
+
|
|
70
|
+
```css
|
|
71
|
+
@import '@actabldesign/bellhop-styles/src/tokens/bellhop-primary-colors.css';
|
|
72
|
+
@import '@actabldesign/bellhop-styles/src/tokens/bellhop-typography.css';
|
|
73
|
+
@import '@actabldesign/bellhop-styles/src/tokens/bellhop-spacing.css';
|
|
74
|
+
@import '@actabldesign/bellhop-styles/src/tokens/bellhop-shadows.css';
|
|
75
|
+
@import '@actabldesign/bellhop-styles/src/tokens/bellhop-radius.css';
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Design Token Files
|
|
79
|
+
|
|
80
|
+
Located in `src/tokens/`:
|
|
81
|
+
|
|
82
|
+
| File | Description |
|
|
83
|
+
| ------------------------------ | --------------------------------- |
|
|
84
|
+
| `bellhop-primary-colors.css` | Brand and primary colors |
|
|
85
|
+
| `bellhop-secondary-colors.css` | Extended color palette |
|
|
86
|
+
| `bellhop-typography.css` | Font families, sizes, weights |
|
|
87
|
+
| `bellhop-spacing.css` | Spacing scale |
|
|
88
|
+
| `bellhop-radius.css` | Border radius values |
|
|
89
|
+
| `bellhop-shadows.css` | Shadow definitions |
|
|
90
|
+
| `bellhop-animations.css` | Animation keyframes and durations |
|
|
91
|
+
| `bellhop-layout.css` | Layout-related tokens |
|
|
92
|
+
| `bellhop-icons.css` | Icon sizing and styling |
|
|
93
|
+
| `bellhop-global.css` | Global style utilities |
|
|
94
|
+
| `bellhop-styles.css` | Combined component styles |
|
|
95
|
+
| `colors.json` | Programmatic color definitions |
|
|
96
|
+
|
|
97
|
+
## Using Design Tokens
|
|
40
98
|
|
|
41
99
|
All design tokens are available as CSS custom properties:
|
|
42
100
|
|
|
@@ -63,61 +121,45 @@ All design tokens are available as CSS custom properties:
|
|
|
63
121
|
}
|
|
64
122
|
```
|
|
65
123
|
|
|
66
|
-
##
|
|
124
|
+
## Token Reference
|
|
67
125
|
|
|
68
126
|
### Colors
|
|
69
127
|
|
|
70
|
-
|
|
71
|
-
- `--color-primary-50` to `--color-primary-900`
|
|
72
|
-
- `--color-primary-500` (default brand color)
|
|
128
|
+
**Primary Colors**: `--color-primary-50` to `--color-primary-900`
|
|
73
129
|
|
|
74
|
-
|
|
75
|
-
- `--color-neutral-50` to `--color-neutral-900`
|
|
76
|
-
- `--color-white`, `--color-black`
|
|
130
|
+
**Neutral Colors**: `--color-neutral-50` to `--color-neutral-900`, `--color-white`, `--color-black`
|
|
77
131
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
132
|
+
**Semantic Colors**:
|
|
133
|
+
|
|
134
|
+
- Success: `--color-success-50` to `--color-success-900`
|
|
135
|
+
- Warning: `--color-warning-50` to `--color-warning-900`
|
|
136
|
+
- Error: `--color-error-50` to `--color-error-900`
|
|
137
|
+
- Info: `--color-info-50` to `--color-info-900`
|
|
83
138
|
|
|
84
139
|
### Typography
|
|
85
140
|
|
|
86
|
-
|
|
87
|
-
- `--font-inter`: Primary font family
|
|
141
|
+
**Font Family**: `--font-inter`
|
|
88
142
|
|
|
89
|
-
|
|
90
|
-
- `--text-xs-size` (0.75rem)
|
|
91
|
-
- `--text-sm-size` (0.875rem)
|
|
92
|
-
- `--text-base-size` (1rem)
|
|
93
|
-
- `--text-lg-size` (1.125rem)
|
|
94
|
-
- `--text-xl-size` (1.25rem)
|
|
95
|
-
- And more...
|
|
143
|
+
**Font Sizes**: `--text-xs-size` (0.75rem) to `--text-6xl-size`
|
|
96
144
|
|
|
97
|
-
|
|
98
|
-
- `--font-light` (300)
|
|
99
|
-
- `--font-normal` (400)
|
|
100
|
-
- `--font-medium` (500)
|
|
101
|
-
- `--font-semibold` (600)
|
|
102
|
-
- `--font-bold` (700)
|
|
145
|
+
**Font Weights**: `--font-light` (300), `--font-normal` (400), `--font-medium` (500), `--font-semibold` (600), `--font-bold` (700)
|
|
103
146
|
|
|
104
147
|
### Spacing
|
|
105
148
|
|
|
106
|
-
|
|
107
|
-
|
|
149
|
+
Scale from `--spacing-0-5` (0.125rem) to `--spacing-96`:
|
|
150
|
+
|
|
108
151
|
- `--spacing-1` (0.25rem)
|
|
109
152
|
- `--spacing-2` (0.5rem)
|
|
110
153
|
- `--spacing-4` (1rem)
|
|
111
154
|
- `--spacing-8` (2rem)
|
|
112
|
-
- And more...
|
|
113
155
|
|
|
114
156
|
### Shadows
|
|
115
157
|
|
|
116
|
-
- `--shadow-xs
|
|
117
|
-
- `--shadow-sm
|
|
118
|
-
- `--shadow-md
|
|
119
|
-
- `--shadow-lg
|
|
120
|
-
- `--shadow-xl
|
|
158
|
+
- `--shadow-xs` - Extra small
|
|
159
|
+
- `--shadow-sm` - Small
|
|
160
|
+
- `--shadow-md` - Medium
|
|
161
|
+
- `--shadow-lg` - Large
|
|
162
|
+
- `--shadow-xl` - Extra large
|
|
121
163
|
|
|
122
164
|
### Border Radius
|
|
123
165
|
|
|
@@ -127,19 +169,6 @@ Spacing scale from 0.5 to 96 (in 0.25rem increments):
|
|
|
127
169
|
- `--radius-xl` (1rem)
|
|
128
170
|
- `--radius-full` (9999px)
|
|
129
171
|
|
|
130
|
-
## Component Styles
|
|
131
|
-
|
|
132
|
-
The package includes pre-built component styles that follow the Bellhop design system. These are automatically applied when using Bellhop components.
|
|
133
|
-
|
|
134
|
-
### Layout Classes
|
|
135
|
-
|
|
136
|
-
```css
|
|
137
|
-
.app-layout { /* Dashboard layout */ }
|
|
138
|
-
.app-sidebar { /* Sidebar container */ }
|
|
139
|
-
.app-main { /* Main content area */ }
|
|
140
|
-
.bellhop-content-container { /* Content wrapper */ }
|
|
141
|
-
```
|
|
142
|
-
|
|
143
172
|
## Framework Integration
|
|
144
173
|
|
|
145
174
|
### React
|
|
@@ -148,17 +177,13 @@ The package includes pre-built component styles that follow the Bellhop design s
|
|
|
148
177
|
import '@actabldesign/bellhop-styles';
|
|
149
178
|
|
|
150
179
|
function App() {
|
|
151
|
-
return
|
|
152
|
-
<div className="app-layout">
|
|
153
|
-
{/* Your components */}
|
|
154
|
-
</div>
|
|
155
|
-
);
|
|
180
|
+
return <div className="app-layout">{/* Your components */}</div>;
|
|
156
181
|
}
|
|
157
182
|
```
|
|
158
183
|
|
|
159
184
|
### Angular
|
|
160
185
|
|
|
161
|
-
|
|
186
|
+
In `src/styles.css`:
|
|
162
187
|
|
|
163
188
|
```css
|
|
164
189
|
@import '@actabldesign/bellhop-styles';
|
|
@@ -167,19 +192,29 @@ Add to your `src/styles.css`:
|
|
|
167
192
|
### Vanilla JavaScript/HTML
|
|
168
193
|
|
|
169
194
|
```html
|
|
170
|
-
<link
|
|
195
|
+
<link
|
|
196
|
+
rel="stylesheet"
|
|
197
|
+
href="node_modules/@actabldesign/bellhop-styles/index.css"
|
|
198
|
+
/>
|
|
171
199
|
```
|
|
172
200
|
|
|
173
201
|
## Development
|
|
174
202
|
|
|
175
|
-
This package is built using Rollup and PostCSS.
|
|
176
|
-
|
|
177
203
|
### Building
|
|
178
204
|
|
|
179
205
|
```bash
|
|
180
206
|
npm run build:lib:styles
|
|
181
207
|
```
|
|
182
208
|
|
|
209
|
+
The build process uses Rollup and PostCSS to bundle and optimize the CSS.
|
|
210
|
+
|
|
211
|
+
## Related Packages
|
|
212
|
+
|
|
213
|
+
- `@actabldesign/bellhop-core` - Web Components (StencilJS)
|
|
214
|
+
- `@actabldesign/bellhop-react` - React component library
|
|
215
|
+
- `@actabldesign/bellhop-angular` - Angular component library
|
|
216
|
+
- `@actabldesign/bellhop-assets` - SVG icons, illustrations, logos
|
|
217
|
+
|
|
183
218
|
## License
|
|
184
219
|
|
|
185
220
|
MIT
|
package/dist/index.css
CHANGED
|
@@ -461,6 +461,39 @@ select:focus {
|
|
|
461
461
|
font-variant-numeric: tabular-nums;
|
|
462
462
|
font-family: var(--font-mono);
|
|
463
463
|
}
|
|
464
|
+
/* =========================
|
|
465
|
+
TEXT COLOR UTILITIES
|
|
466
|
+
========================= */
|
|
467
|
+
.text-primary {
|
|
468
|
+
color: var(--bh-text-primary);
|
|
469
|
+
}
|
|
470
|
+
.text-secondary {
|
|
471
|
+
color: var(--bh-text-secondary);
|
|
472
|
+
}
|
|
473
|
+
.text-tertiary {
|
|
474
|
+
color: var(--bh-text-tertiary);
|
|
475
|
+
}
|
|
476
|
+
.text-brand {
|
|
477
|
+
color: var(--bh-text-brand);
|
|
478
|
+
}
|
|
479
|
+
.text-disabled {
|
|
480
|
+
color: var(--bh-text-disabled);
|
|
481
|
+
}
|
|
482
|
+
.text-inverse {
|
|
483
|
+
color: var(--bh-text-inverse);
|
|
484
|
+
}
|
|
485
|
+
.text-error {
|
|
486
|
+
color: var(--bh-text-error);
|
|
487
|
+
}
|
|
488
|
+
.text-warning {
|
|
489
|
+
color: var(--bh-text-warning);
|
|
490
|
+
}
|
|
491
|
+
.text-success {
|
|
492
|
+
color: var(--bh-text-success);
|
|
493
|
+
}
|
|
494
|
+
.text-highlight {
|
|
495
|
+
color: var(--bh-text-highlight);
|
|
496
|
+
}
|
|
464
497
|
:root {
|
|
465
498
|
/* PRIMITIVES — one unit = 0.25rem (4px) */
|
|
466
499
|
--sp-0: 0rem; /* 0px */
|