@actabldesign/bellhop-styles 0.0.3 → 0.0.4
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 +3 -3
- package/dist/index.css +1505 -0
- package/llms.txt +206 -0
- package/package.json +27 -23
- package/project.json +29 -0
- package/rollup.config.js +29 -0
- package/{base → src/base}/normalize.css +4 -0
- package/src/index.css +22 -0
- package/src/tokens/bellhop-animations.css +392 -0
- package/src/tokens/bellhop-global.css +175 -0
- package/src/tokens/bellhop-icons.css +77 -0
- package/src/tokens/bellhop-layout.css +216 -0
- package/src/tokens/bellhop-primary-colors.css +96 -0
- package/src/tokens/bellhop-radius.css +14 -0
- package/src/tokens/bellhop-secondary-colors.css +154 -0
- package/src/tokens/bellhop-shadows.css +55 -0
- package/src/tokens/bellhop-spacing.css +66 -0
- package/src/tokens/bellhop-styles.css +174 -0
- package/src/tokens/bellhop-typography.css +112 -0
- package/src/tokens/colors.json +737 -0
- package/src/tokens/colors.mdx +59 -0
- package/src/tokens/index.css +17 -0
- package/components/appbar.css +0 -167
- package/components/autocomplete-menu.css +0 -142
- package/components/avatar-add.css +0 -112
- package/components/avatar.css +0 -253
- package/components/badge-dot.css +0 -78
- package/components/badge.css +0 -337
- package/components/bar-chart-card.css +0 -261
- package/components/bar-chart.css +0 -149
- package/components/breadcrumbs.css +0 -136
- package/components/button.css +0 -266
- package/components/chart-tooltip.css +0 -96
- package/components/checkbox-label.css +0 -53
- package/components/checkbox.css +0 -127
- package/components/container-footer.css +0 -22
- package/components/container.css +0 -17
- package/components/date-picker-content.css +0 -337
- package/components/date-picker.css +0 -103
- package/components/date-range-picker-content.css +0 -85
- package/components/date-range-picker.css +0 -72
- package/components/dropdown-menu.css +0 -204
- package/components/dropdown.css +0 -126
- package/components/empty-state.css +0 -83
- package/components/featured-icon.css +0 -194
- package/components/illustrations.css +0 -120
- package/components/input-autocomplete.css +0 -158
- package/components/input-number.css +0 -2
- package/components/input-verification.css +0 -137
- package/components/input.css +0 -374
- package/components/loader-spinner.css +0 -421
- package/components/logo-box.css +0 -85
- package/components/month-picker-content.css +0 -190
- package/components/month-picker.css +0 -83
- package/components/nav-item.css +0 -110
- package/components/notification.css +0 -262
- package/components/page-navigation.css +0 -294
- package/components/picker-menu.css +0 -43
- package/components/pie-chart-card.css +0 -213
- package/components/pie-chart.css +0 -80
- package/components/product-switcher.css +0 -127
- package/components/property-switcher.css +0 -95
- package/components/radio-button-label.css +0 -53
- package/components/radio-button.css +0 -134
- package/components/sidebar.css +0 -178
- package/components/skeleton-loader.css +0 -47
- package/components/tag.css +0 -214
- package/components/textarea.css +0 -211
- package/components/toggle.css +0 -298
- package/components/tooltip.css +0 -85
- package/components/trend-chart-card.css +0 -189
- package/components/trend-chart.css +0 -94
- package/index.css +0 -8115
package/llms.txt
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
# Bellhop Styles - AI Documentation
|
|
2
|
+
|
|
3
|
+
Shared CSS styles and design tokens documentation for AI assistants.
|
|
4
|
+
|
|
5
|
+
## 📦 This Package
|
|
6
|
+
|
|
7
|
+
**@actabldesign/bellhopos-styles** - Framework-agnostic CSS styles and design tokens
|
|
8
|
+
|
|
9
|
+
- **Full Documentation**: `/llms/styles.txt` (223K, 62K tokens, 68 files)
|
|
10
|
+
- **Version**: 0.0.1
|
|
11
|
+
- **Framework**: None (works with Angular, React, Vue, etc.)
|
|
12
|
+
|
|
13
|
+
## 🎯 Quick Access
|
|
14
|
+
|
|
15
|
+
### Primary Documentation
|
|
16
|
+
|
|
17
|
+
For complete codebase context, use:
|
|
18
|
+
- **Root repository**: `/llms/styles.txt`
|
|
19
|
+
- **This location**: `libs/bellhopos-styles/llms.txt` (this file)
|
|
20
|
+
|
|
21
|
+
Both point to the same comprehensive documentation.
|
|
22
|
+
|
|
23
|
+
### Related Documentation
|
|
24
|
+
|
|
25
|
+
- **Angular Components**: `/llms/angular.txt`
|
|
26
|
+
- **React Components**: `/llms/react.txt`
|
|
27
|
+
- **Assets & Icons**: `/llms/assets.txt`
|
|
28
|
+
|
|
29
|
+
## 📚 What's Included
|
|
30
|
+
|
|
31
|
+
### Design Tokens
|
|
32
|
+
|
|
33
|
+
**Colors**:
|
|
34
|
+
- Primary colors: `--color-primary-50` to `--color-primary-900`
|
|
35
|
+
- Neutral colors: `--color-neutral-50` to `--color-neutral-900`
|
|
36
|
+
- Semantic colors: Success, Warning, Error, Info (50-900 scale)
|
|
37
|
+
- Special: `--color-white`, `--color-black`
|
|
38
|
+
|
|
39
|
+
**Typography**:
|
|
40
|
+
- Font families: `--font-inter`
|
|
41
|
+
- Font sizes: `--text-xs-size` to `--text-9xl-size`
|
|
42
|
+
- Font weights: `--font-light` to `--font-bold`
|
|
43
|
+
- Line heights: Corresponding to each size
|
|
44
|
+
|
|
45
|
+
**Spacing**:
|
|
46
|
+
- Scale: `--spacing-0-5` (0.125rem) to `--spacing-96` (24rem)
|
|
47
|
+
- Based on 0.25rem (4px) increments
|
|
48
|
+
- Consistent across all components
|
|
49
|
+
|
|
50
|
+
**Shadows**:
|
|
51
|
+
- Variants: `--shadow-xs`, `--shadow-sm`, `--shadow-md`, `--shadow-lg`, `--shadow-xl`
|
|
52
|
+
- Consistent elevation system
|
|
53
|
+
|
|
54
|
+
**Border Radius**:
|
|
55
|
+
- Tokens: `--radius-sm`, `--radius-md`, `--radius-lg`, `--radius-xl`, `--radius-full`
|
|
56
|
+
- Range: 0.125rem to 9999px (full circle)
|
|
57
|
+
|
|
58
|
+
**Animations**:
|
|
59
|
+
- Transitions: `--transition-fast`, `--transition-base`, `--transition-slow`
|
|
60
|
+
- Easing: `--ease-in`, `--ease-out`, `--ease-in-out`
|
|
61
|
+
|
|
62
|
+
### Component Styles
|
|
63
|
+
|
|
64
|
+
Complete CSS for 40+ components:
|
|
65
|
+
- Layout: Appbar, Sidebar, PageNavigation, Container
|
|
66
|
+
- Forms: Input, Textarea, Checkbox, RadioButton, Toggle, Dropdown
|
|
67
|
+
- Data Display: Badge, Avatar, Notification, EmptyState
|
|
68
|
+
- Data Visualization: Charts, tooltips, legends
|
|
69
|
+
- Pickers: Date, Month, Range pickers
|
|
70
|
+
- Interactive: Buttons, Popovers, Tooltips
|
|
71
|
+
|
|
72
|
+
### Base Styles
|
|
73
|
+
|
|
74
|
+
- **normalize.css**: CSS reset and normalization
|
|
75
|
+
- **Global styles**: Body, typography, links
|
|
76
|
+
- **Layout utilities**: Flexbox, grid helpers
|
|
77
|
+
|
|
78
|
+
## 🚀 Usage
|
|
79
|
+
|
|
80
|
+
### Installation
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
npm install @actabldesign/bellhopos-styles
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Import All Styles
|
|
87
|
+
|
|
88
|
+
```css
|
|
89
|
+
/* Import everything */
|
|
90
|
+
@import '@actabldesign/bellhopos-styles';
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
Or in JavaScript/TypeScript:
|
|
94
|
+
|
|
95
|
+
```tsx
|
|
96
|
+
import '@actabldesign/bellhopos-styles';
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Import Specific Modules
|
|
100
|
+
|
|
101
|
+
```css
|
|
102
|
+
/* Import only what you need */
|
|
103
|
+
@import '@actabldesign/bellhopos-styles/base/colors.css';
|
|
104
|
+
@import '@actabldesign/bellhopos-styles/base/typography.css';
|
|
105
|
+
@import '@actabldesign/bellhopos-styles/base/spacing.css';
|
|
106
|
+
@import '@actabldesign/bellhopos-styles/components/button.css';
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Use Design Tokens
|
|
110
|
+
|
|
111
|
+
```css
|
|
112
|
+
.my-component {
|
|
113
|
+
/* Colors */
|
|
114
|
+
background-color: var(--color-primary-500);
|
|
115
|
+
color: var(--color-neutral-800);
|
|
116
|
+
|
|
117
|
+
/* Spacing */
|
|
118
|
+
padding: var(--spacing-4);
|
|
119
|
+
margin: var(--spacing-2);
|
|
120
|
+
|
|
121
|
+
/* Typography */
|
|
122
|
+
font-family: var(--font-inter);
|
|
123
|
+
font-size: var(--text-sm-size);
|
|
124
|
+
line-height: var(--text-sm-line);
|
|
125
|
+
|
|
126
|
+
/* Shadows */
|
|
127
|
+
box-shadow: var(--shadow-md);
|
|
128
|
+
|
|
129
|
+
/* Border Radius */
|
|
130
|
+
border-radius: var(--radius-md);
|
|
131
|
+
|
|
132
|
+
/* Animations */
|
|
133
|
+
transition: all var(--transition-base) var(--ease-in-out);
|
|
134
|
+
}
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
## 📖 For AI Assistants
|
|
138
|
+
|
|
139
|
+
When working with styles:
|
|
140
|
+
|
|
141
|
+
1. **Load the full documentation**: `/llms/styles.txt` contains all CSS source
|
|
142
|
+
2. **Use design tokens**: Always reference CSS custom properties
|
|
143
|
+
3. **Follow BEM-like naming**: `.component-name__element--modifier`
|
|
144
|
+
4. **Match existing patterns**: Check component styles for consistency
|
|
145
|
+
5. **Responsive design**: Use mobile-first approach
|
|
146
|
+
|
|
147
|
+
### Naming Conventions
|
|
148
|
+
|
|
149
|
+
**Components**:
|
|
150
|
+
```css
|
|
151
|
+
.component-name { }
|
|
152
|
+
.component-name__element { }
|
|
153
|
+
.component-name--variant { }
|
|
154
|
+
.component-name__element--state { }
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Utilities**:
|
|
158
|
+
```css
|
|
159
|
+
.u-margin-top-4 { }
|
|
160
|
+
.u-flex { }
|
|
161
|
+
.u-text-center { }
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
### Token Usage
|
|
165
|
+
|
|
166
|
+
Always prefer tokens over hard-coded values:
|
|
167
|
+
|
|
168
|
+
❌ **Don't**:
|
|
169
|
+
```css
|
|
170
|
+
.button {
|
|
171
|
+
background: #0ea5e9;
|
|
172
|
+
padding: 16px;
|
|
173
|
+
font-size: 14px;
|
|
174
|
+
}
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
✅ **Do**:
|
|
178
|
+
```css
|
|
179
|
+
.button {
|
|
180
|
+
background: var(--color-primary-500);
|
|
181
|
+
padding: var(--spacing-4);
|
|
182
|
+
font-size: var(--text-sm-size);
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
### Color Scales
|
|
187
|
+
|
|
188
|
+
All colors follow a 50-900 scale:
|
|
189
|
+
- **50**: Lightest (backgrounds, hover states)
|
|
190
|
+
- **500**: Base color (primary action color)
|
|
191
|
+
- **900**: Darkest (text, emphasis)
|
|
192
|
+
|
|
193
|
+
Use:
|
|
194
|
+
- `50-200` for backgrounds
|
|
195
|
+
- `300-600` for borders and subtle elements
|
|
196
|
+
- `700-900` for text and high contrast
|
|
197
|
+
|
|
198
|
+
## 🔗 Resources
|
|
199
|
+
|
|
200
|
+
- **Full Documentation**: See README.md in this directory
|
|
201
|
+
- **Repository**: https://github.com/actabldesign/bellhopos
|
|
202
|
+
- **NPM**: https://www.npmjs.com/package/@actabldesign/bellhopos-styles
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
**Note**: This file is a pointer to the main documentation. For complete CSS source code and design token details, use `/llms/styles.txt`.
|
package/package.json
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actabldesign/bellhop-styles",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"types": "./index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"types": "./index.d.ts",
|
|
12
|
-
"import": "./index.css",
|
|
13
|
-
"require": "./index.css",
|
|
14
|
-
"default": "./index.css"
|
|
15
|
-
},
|
|
16
|
-
"./css": "./index.css"
|
|
17
|
-
},
|
|
3
|
+
"version": "0.0.4",
|
|
4
|
+
"description": "Shared CSS styles for Bellhop design system",
|
|
5
|
+
"main": "index.css",
|
|
6
|
+
"module": "index.css",
|
|
7
|
+
"types": "index.d.ts",
|
|
18
8
|
"files": [
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
9
|
+
"**/*"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"build": "rollup -c",
|
|
13
|
+
"dev": "rollup -c -w",
|
|
14
|
+
"clean": "rimraf dist"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"design-system",
|
|
18
|
+
"css",
|
|
19
|
+
"styles",
|
|
20
|
+
"bellhop",
|
|
21
|
+
"actabl"
|
|
23
22
|
],
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
23
|
+
"author": "Actabl Design Team",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"rollup": "^4.0.0",
|
|
27
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
28
|
+
"postcss-import": "^16.0.0",
|
|
29
|
+
"postcss": "^8.4.5",
|
|
30
|
+
"rimraf": "^5.0.5"
|
|
28
31
|
},
|
|
29
32
|
"publishConfig": {
|
|
33
|
+
"registry": "https://registry.npmjs.org/",
|
|
30
34
|
"access": "public"
|
|
31
35
|
}
|
|
32
36
|
}
|
package/project.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bellhop-styles",
|
|
3
|
+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
+
"projectType": "library",
|
|
5
|
+
"sourceRoot": "packages/bellhop-styles/src",
|
|
6
|
+
"targets": {
|
|
7
|
+
"build": {
|
|
8
|
+
"executor": "nx:run-commands",
|
|
9
|
+
"outputs": ["{workspaceRoot}/dist/bellhop-styles"],
|
|
10
|
+
"options": {
|
|
11
|
+
"commands": [
|
|
12
|
+
"mkdir -p dist/bellhop-styles",
|
|
13
|
+
"cd packages/bellhop-styles && npm run build",
|
|
14
|
+
"cp packages/bellhop-styles/dist/* dist/bellhop-styles/",
|
|
15
|
+
"cp packages/bellhop-styles/package.json dist/bellhop-styles/",
|
|
16
|
+
"cp packages/bellhop-styles/README.md dist/bellhop-styles/ || true"
|
|
17
|
+
],
|
|
18
|
+
"parallel": false
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"lint": {
|
|
22
|
+
"executor": "nx:run-commands",
|
|
23
|
+
"options": {
|
|
24
|
+
"command": "echo 'No linting configured for styles library'"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"tags": ["type:styles", "framework:agnostic"]
|
|
29
|
+
}
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import postcss from 'rollup-plugin-postcss';
|
|
2
|
+
import postcssImport from 'postcss-import';
|
|
3
|
+
import { resolve } from 'path';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
input: 'src/index.css',
|
|
7
|
+
output: {
|
|
8
|
+
file: 'dist/index.css',
|
|
9
|
+
format: 'es'
|
|
10
|
+
},
|
|
11
|
+
plugins: [
|
|
12
|
+
postcss({
|
|
13
|
+
extract: true,
|
|
14
|
+
plugins: [
|
|
15
|
+
postcssImport({
|
|
16
|
+
resolve: (id, basedir) => {
|
|
17
|
+
// Handle relative imports
|
|
18
|
+
if (id.startsWith('./')) {
|
|
19
|
+
return resolve(basedir, id);
|
|
20
|
+
}
|
|
21
|
+
return id;
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
],
|
|
25
|
+
minimize: false,
|
|
26
|
+
sourceMap: false
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
};
|
package/src/index.css
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* Bellhop Shared Styles - Design Tokens & Utilities */
|
|
2
|
+
|
|
3
|
+
/* Import Google Fonts */
|
|
4
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
5
|
+
|
|
6
|
+
/* Base normalization - import first */
|
|
7
|
+
@import './base/normalize.css';
|
|
8
|
+
|
|
9
|
+
/* Design Tokens - Foundation */
|
|
10
|
+
@import './tokens/index.css';
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Note: Component styles are no longer included here.
|
|
14
|
+
* All component styles are bundled with their respective Stencil components
|
|
15
|
+
* in the @actabldesign/bellhop-core package using Shadow DOM encapsulation.
|
|
16
|
+
*
|
|
17
|
+
* This package now provides only:
|
|
18
|
+
* - Design tokens (colors, typography, spacing, shadows, radius, etc.)
|
|
19
|
+
* - Base normalization
|
|
20
|
+
* - Layout utilities
|
|
21
|
+
* - Animations
|
|
22
|
+
*/
|