@bcc-code/design-tokens 2.0.1 → 2.0.3
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 +12 -67
- package/build/bcc/primevue/index.d.ts +76 -253
- package/build/bcc/primevue/index.js +145 -172
- package/package.json +2 -3
package/README.md
CHANGED
|
@@ -7,13 +7,12 @@ A comprehensive design token package with CSS variables, Tailwind v4 integration
|
|
|
7
7
|
|
|
8
8
|
## 🚀 Features
|
|
9
9
|
|
|
10
|
-
- **CSS Variables**:
|
|
10
|
+
- **CSS Variables**: Universal support for any project
|
|
11
11
|
- **Tailwind v4 Integration**: Native support with `@theme` and custom utilities
|
|
12
|
-
- **PrimeVue
|
|
13
|
-
- **TypeScript Support**: Full type definitions for better developer experience
|
|
12
|
+
- **PrimeVue Integration**: Token override preset extending Aura theme
|
|
14
13
|
- **Dark Mode**: Automatic switching via CSS media queries or class-based control
|
|
15
|
-
- **
|
|
16
|
-
- **
|
|
14
|
+
- **TypeScript**: Full type definitions for all exports
|
|
15
|
+
- **CDN Support**: Direct imports for WordPress and static sites
|
|
17
16
|
|
|
18
17
|
## 📦 Installation
|
|
19
18
|
|
|
@@ -21,28 +20,11 @@ A comprehensive design token package with CSS variables, Tailwind v4 integration
|
|
|
21
20
|
npm install @bcc-code/design-tokens
|
|
22
21
|
```
|
|
23
22
|
|
|
24
|
-
## 📁 Package Structure
|
|
25
|
-
|
|
26
|
-
Understanding the import paths:
|
|
27
|
-
|
|
28
|
-
```
|
|
29
|
-
@bcc-code/design-tokens/{group}/{format}/{file}
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
- **`{group}`** - Design system variant (currently `bcc`, future: `events`, `members`)
|
|
33
|
-
- **`{format}`** - Distribution format (`cdn`, `tailwind`, `primevue`)
|
|
34
|
-
- **`{file}`** - Specific file (`variables.css`, `index.css`, etc.)
|
|
35
|
-
|
|
36
|
-
**Examples:**
|
|
37
|
-
- `./bcc/cdn/variables.css` - BCC brand CSS variables for CDN/WordPress
|
|
38
|
-
- `./bcc/tailwind/index.css` - BCC brand Tailwind integration
|
|
39
|
-
- `./bcc/primevue` - BCC brand PrimeVue preset configuration
|
|
40
|
-
|
|
41
23
|
## 🎯 Usage
|
|
42
24
|
|
|
43
25
|
### CSS Variables (WordPress, Static Sites)
|
|
44
26
|
|
|
45
|
-
**CDN
|
|
27
|
+
**CDN:**
|
|
46
28
|
```html
|
|
47
29
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@bcc-code/design-tokens@latest/build/bcc/cdn/variables.css">
|
|
48
30
|
```
|
|
@@ -97,10 +79,10 @@ npm install tailwindcss
|
|
|
97
79
|
npm install tailwindcss primevue @primevue/themes
|
|
98
80
|
```
|
|
99
81
|
|
|
100
|
-
**2. Import CSS and preset configuration:**
|
|
82
|
+
**2. Import Tailwind CSS and preset configuration:**
|
|
101
83
|
```javascript
|
|
102
84
|
import '@bcc-code/design-tokens/bcc/tailwind';
|
|
103
|
-
import
|
|
85
|
+
import BCCAuraOverride from '@bcc-code/design-tokens/bcc/primevue';
|
|
104
86
|
```
|
|
105
87
|
|
|
106
88
|
**3. Configure PrimeVue:**
|
|
@@ -110,8 +92,7 @@ import PrimeVue from 'primevue/config';
|
|
|
110
92
|
import { definePreset } from '@primevue/themes';
|
|
111
93
|
import Aura from '@primevue/themes/aura';
|
|
112
94
|
|
|
113
|
-
|
|
114
|
-
const BCCPreset = definePreset(Aura, BCCPresetConfig);
|
|
95
|
+
const BCCPreset = definePreset(Aura, BCCAuraOverride);
|
|
115
96
|
|
|
116
97
|
const app = createApp(App);
|
|
117
98
|
|
|
@@ -119,7 +100,7 @@ app.use(PrimeVue, {
|
|
|
119
100
|
theme: {
|
|
120
101
|
preset: BCCPreset,
|
|
121
102
|
options: {
|
|
122
|
-
darkModeSelector: '.dark'
|
|
103
|
+
darkModeSelector: '.dark'
|
|
123
104
|
}
|
|
124
105
|
}
|
|
125
106
|
});
|
|
@@ -141,8 +122,8 @@ app.use(PrimeVue, {
|
|
|
141
122
|
|
|
142
123
|
**TypeScript Support:**
|
|
143
124
|
```typescript
|
|
144
|
-
import
|
|
145
|
-
|
|
125
|
+
import BCCAuraOverride from '@bcc-code/design-tokens/bcc/primevue';
|
|
126
|
+
import type { BCCAuraOverrideConfig } from '@bcc-code/design-tokens/bcc/primevue';
|
|
146
127
|
```
|
|
147
128
|
|
|
148
129
|
## 🌙 Dark Mode
|
|
@@ -164,34 +145,6 @@ Works out of the box with user's system preferences:
|
|
|
164
145
|
}
|
|
165
146
|
```
|
|
166
147
|
|
|
167
|
-
### Manual (Class-based)
|
|
168
|
-
Control dark mode programmatically:
|
|
169
|
-
|
|
170
|
-
```javascript
|
|
171
|
-
// Toggle dark mode
|
|
172
|
-
document.documentElement.classList.toggle('dark');
|
|
173
|
-
|
|
174
|
-
// Enable dark mode
|
|
175
|
-
document.documentElement.classList.add('dark');
|
|
176
|
-
|
|
177
|
-
// Disable dark mode
|
|
178
|
-
document.documentElement.classList.remove('dark');
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
For PrimeVue projects:
|
|
182
|
-
```javascript
|
|
183
|
-
app.use(PrimeVue, {
|
|
184
|
-
theme: {
|
|
185
|
-
preset: BCCPreset,
|
|
186
|
-
options: {
|
|
187
|
-
darkModeSelector: '.dark' // Class-based
|
|
188
|
-
// or
|
|
189
|
-
darkModeSelector: 'system' // Automatic
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
});
|
|
193
|
-
```
|
|
194
|
-
|
|
195
148
|
## 📋 Available Tokens
|
|
196
149
|
|
|
197
150
|
### Colors
|
|
@@ -217,14 +170,6 @@ app.use(PrimeVue, {
|
|
|
217
170
|
- **Text Sizes**: `--text-*` (mapped from font-size tokens)
|
|
218
171
|
- **Radius**: `--radius-*` (mapped from border-radius tokens)
|
|
219
172
|
|
|
220
|
-
## 🎨 Framework Support
|
|
221
|
-
|
|
222
|
-
### Current
|
|
223
|
-
- ✅ **CSS Variables** - Universal support
|
|
224
|
-
- ✅ **Tailwind CSS v4** - Native integration
|
|
225
|
-
- ✅ **PrimeVue v4** - Configuration object with TypeScript support
|
|
226
|
-
- ✅ **TypeScript** - Full type definitions for all exports
|
|
227
|
-
|
|
228
173
|
## 🛠️ Development
|
|
229
174
|
|
|
230
175
|
### Building from Source
|
|
@@ -265,4 +210,4 @@ MIT © BCC Code
|
|
|
265
210
|
|
|
266
211
|
---
|
|
267
212
|
|
|
268
|
-
Made with ❤️ by [BCC Code](https://bcc
|
|
213
|
+
Made with ❤️ by [BCC Code](https://github.com/bcc-code)
|
|
@@ -1,279 +1,102 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BCC Tailwind-Only PrimeVue Preset Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* This preset uses actual color values from your design tokens instead of CSS variables,
|
|
5
|
-
* ensuring compatibility with Tailwind-only setup while still falling back to Aura for
|
|
6
|
-
* components you haven't customized.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```typescript
|
|
10
|
-
* import { definePreset } from '@primevue/themes';
|
|
11
|
-
* import Aura from '@primevue/themes/aura';
|
|
12
|
-
* import "@bcc-code/design-tokens/bcc/tailwind";
|
|
13
|
-
* import BCCPresetConfig from "@bcc-code/design-tokens/bcc/primevue";
|
|
14
|
-
*
|
|
15
|
-
* const BCCPreset = definePreset(Aura, BCCPresetConfig);
|
|
16
|
-
*
|
|
17
|
-
* app.use(PrimeVue, {
|
|
18
|
-
* theme: {
|
|
19
|
-
* preset: BCCPreset,
|
|
20
|
-
* options: {
|
|
21
|
-
* darkModeSelector: '.dark'
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* });
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Color palette interface for BCC design tokens
|
|
30
|
-
* Maps to your bcc-100 through bcc-1000 and neutral color scales
|
|
31
|
-
*/
|
|
32
1
|
interface BCCColorPalette {
|
|
33
|
-
50: string;
|
|
34
|
-
100: string;
|
|
35
|
-
200: string;
|
|
36
|
-
300: string;
|
|
37
|
-
400: string;
|
|
38
|
-
500: string;
|
|
39
|
-
600: string;
|
|
40
|
-
700: string;
|
|
41
|
-
800: string;
|
|
42
|
-
900: string;
|
|
43
|
-
950: string;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Primary color configuration for both light and dark modes
|
|
48
|
-
*/
|
|
49
|
-
interface BCCPrimaryColors {
|
|
50
|
-
color: string; // Main primary color
|
|
51
|
-
contrastColor: string; // Text color on primary background
|
|
52
|
-
hoverColor: string; // Hover state color
|
|
53
|
-
activeColor: string; // Active/pressed state color
|
|
2
|
+
50: string;
|
|
3
|
+
100: string;
|
|
4
|
+
200: string;
|
|
5
|
+
300: string;
|
|
6
|
+
400: string;
|
|
7
|
+
500: string;
|
|
8
|
+
600: string;
|
|
9
|
+
700: string;
|
|
10
|
+
800: string;
|
|
11
|
+
900: string;
|
|
12
|
+
950: string;
|
|
54
13
|
}
|
|
55
14
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
hoverColor: string; // Text color on hover
|
|
62
|
-
mutedColor: string; // Subtle/secondary text color
|
|
63
|
-
highlightColor: string; // Highlighted/selected text color
|
|
15
|
+
interface BCCPrimaryColorScheme {
|
|
16
|
+
color: string;
|
|
17
|
+
contrastColor: string;
|
|
18
|
+
hoverColor: string;
|
|
19
|
+
activeColor: string;
|
|
64
20
|
}
|
|
65
21
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
*/
|
|
80
|
-
interface BCCColorScheme {
|
|
81
|
-
primary: BCCPrimaryColors;
|
|
82
|
-
surface: BCCColorPalette;
|
|
83
|
-
text: BCCTextColors;
|
|
84
|
-
content: BCCContentColors;
|
|
22
|
+
interface BCCSurfaceColorScheme {
|
|
23
|
+
0: string;
|
|
24
|
+
50: string;
|
|
25
|
+
100: string;
|
|
26
|
+
200: string;
|
|
27
|
+
300: string;
|
|
28
|
+
400: string;
|
|
29
|
+
500: string;
|
|
30
|
+
600: string;
|
|
31
|
+
700: string;
|
|
32
|
+
800: string;
|
|
33
|
+
900: string;
|
|
34
|
+
950: string;
|
|
85
35
|
}
|
|
86
36
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
y: string; // Vertical spacing
|
|
37
|
+
interface BCCTextColorScheme {
|
|
38
|
+
color: string;
|
|
39
|
+
hoverColor: string;
|
|
40
|
+
mutedColor: string;
|
|
41
|
+
highlightColor: string;
|
|
93
42
|
}
|
|
94
43
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
sm: {
|
|
102
|
-
fontSize: string; // font-size-sm (0.875rem)
|
|
103
|
-
padding: BCCSpacing; // Small button padding (space-200/100)
|
|
104
|
-
};
|
|
105
|
-
lg: {
|
|
106
|
-
fontSize: string; // font-size-lg (1.25rem)
|
|
107
|
-
padding: BCCSpacing; // Large button padding (space-400/200)
|
|
108
|
-
};
|
|
44
|
+
interface BCCContentColorScheme {
|
|
45
|
+
background: string;
|
|
46
|
+
hoverBackground: string;
|
|
47
|
+
borderColor: string;
|
|
48
|
+
color: string;
|
|
49
|
+
hoverColor: string;
|
|
109
50
|
}
|
|
110
51
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
body: {
|
|
117
|
-
padding: string; // space-300 (1.5rem / 24px)
|
|
118
|
-
gap: string; // space-200 (1rem / 16px)
|
|
119
|
-
};
|
|
120
|
-
header: {
|
|
121
|
-
padding: string; // space-300 (1.5rem / 24px)
|
|
122
|
-
};
|
|
123
|
-
footer: {
|
|
124
|
-
padding: string; // space-300 (1.5rem / 24px)
|
|
125
|
-
};
|
|
52
|
+
interface BCCModeColorScheme {
|
|
53
|
+
primary: BCCPrimaryColorScheme;
|
|
54
|
+
surface: BCCSurfaceColorScheme;
|
|
55
|
+
text: BCCTextColorScheme;
|
|
56
|
+
content: BCCContentColorScheme;
|
|
126
57
|
}
|
|
127
58
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
interface BCCPanelConfig {
|
|
132
|
-
borderRadius: string; // border-radius-lg (1rem / 16px)
|
|
133
|
-
header: {
|
|
134
|
-
padding: string; // space-300 (1.5rem / 24px)
|
|
135
|
-
borderRadius: string; // Rounded top corners only
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Input component configuration
|
|
141
|
-
*/
|
|
142
|
-
interface BCCInputConfig {
|
|
143
|
-
borderRadius: string; // border-radius-md (0.5rem / 8px)
|
|
144
|
-
padding: BCCSpacing; // space-200/150 (1rem/0.75rem)
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Dialog component configuration
|
|
149
|
-
*/
|
|
150
|
-
interface BCCDialogConfig {
|
|
151
|
-
borderRadius: string; // border-radius-xl (2rem / 24px)
|
|
152
|
-
header: {
|
|
153
|
-
padding: string; // space-400 (2rem / 32px)
|
|
154
|
-
};
|
|
155
|
-
content: {
|
|
156
|
-
padding: string; // space-400 (2rem / 32px)
|
|
157
|
-
};
|
|
158
|
-
footer: {
|
|
159
|
-
padding: string; // space-400 (2rem / 32px)
|
|
160
|
-
};
|
|
59
|
+
interface BCCColorScheme {
|
|
60
|
+
light: BCCModeColorScheme;
|
|
61
|
+
dark: BCCModeColorScheme;
|
|
161
62
|
}
|
|
162
63
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
*/
|
|
166
|
-
interface BCCDataTableConfig {
|
|
167
|
-
header: {
|
|
168
|
-
cell: {
|
|
169
|
-
padding: string; // space-200 (1rem / 16px)
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
body: {
|
|
173
|
-
cell: {
|
|
174
|
-
padding: string; // space-200 (1rem / 16px)
|
|
175
|
-
};
|
|
176
|
-
};
|
|
64
|
+
interface BCCGlobalConfig {
|
|
65
|
+
css?: string;
|
|
177
66
|
}
|
|
178
67
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
interface BCCComponents {
|
|
183
|
-
button: BCCButtonConfig;
|
|
184
|
-
card: BCCCardConfig;
|
|
185
|
-
panel: BCCPanelConfig;
|
|
186
|
-
inputtext: BCCInputConfig;
|
|
187
|
-
dropdown: BCCInputConfig;
|
|
188
|
-
dialog: BCCDialogConfig;
|
|
189
|
-
datatable: BCCDataTableConfig;
|
|
68
|
+
interface BCCComponentOverrides {
|
|
69
|
+
global?: BCCGlobalConfig;
|
|
70
|
+
[componentName: string]: any;
|
|
190
71
|
}
|
|
191
72
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
light: BCCColorScheme;
|
|
201
|
-
dark: BCCColorScheme;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
components: BCCComponents;
|
|
73
|
+
interface BCCSemantic {
|
|
74
|
+
primary: BCCColorPalette;
|
|
75
|
+
surface: BCCColorPalette;
|
|
76
|
+
success: BCCColorPalette;
|
|
77
|
+
warn: BCCColorPalette;
|
|
78
|
+
danger: BCCColorPalette;
|
|
79
|
+
info: BCCColorPalette;
|
|
80
|
+
colorScheme: BCCColorScheme;
|
|
205
81
|
}
|
|
206
82
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
* instead of CSS variables, ensuring compatibility with Tailwind-only setup while
|
|
212
|
-
* still falling back to Aura for components you haven't customized.
|
|
213
|
-
*
|
|
214
|
-
* @example Basic Usage
|
|
215
|
-
* ```typescript
|
|
216
|
-
* import { createApp } from 'vue';
|
|
217
|
-
* import PrimeVue from 'primevue/config';
|
|
218
|
-
* import { definePreset } from '@primevue/themes';
|
|
219
|
-
* import Aura from '@primevue/themes/aura';
|
|
220
|
-
*
|
|
221
|
-
* // Import Tailwind integration only (no CDN to avoid conflicts)
|
|
222
|
-
* import '@bcc-code/design-tokens/bcc/tailwind';
|
|
223
|
-
*
|
|
224
|
-
* import BCCTailwindPreset from './BCCTailwindPreset';
|
|
225
|
-
*
|
|
226
|
-
* const app = createApp(App);
|
|
227
|
-
* const BCCPreset = definePreset(Aura, BCCTailwindPreset);
|
|
228
|
-
*
|
|
229
|
-
* app.use(PrimeVue, {
|
|
230
|
-
* theme: {
|
|
231
|
-
* preset: BCCPreset,
|
|
232
|
-
* options: {
|
|
233
|
-
* darkModeSelector: '.dark'
|
|
234
|
-
* }
|
|
235
|
-
* }
|
|
236
|
-
* });
|
|
237
|
-
* ```
|
|
238
|
-
*
|
|
239
|
-
* @example Available Colors
|
|
240
|
-
* Your BCC colors are available as:
|
|
241
|
-
* - Primary: `{primary.50}` through `{primary.950}`
|
|
242
|
-
* - Surface: `{surface.0}` through `{surface.950}`
|
|
243
|
-
* - Light mode: Automatically uses your light theme colors
|
|
244
|
-
* - Dark mode: Automatically switches when `.dark` class is present
|
|
245
|
-
*
|
|
246
|
-
* @example Spacing Values
|
|
247
|
-
* All spacing uses your BCC spacing scale:
|
|
248
|
-
* - Button padding: 1.5rem × 0.75rem (space-300 × space-150)
|
|
249
|
-
* - Card padding: 1.5rem (space-300)
|
|
250
|
-
* - Input padding: 1rem × 0.75rem (space-200 × space-150)
|
|
251
|
-
* - Dialog padding: 2rem (space-400)
|
|
252
|
-
*
|
|
253
|
-
* @example Border Radius
|
|
254
|
-
* Border radius values from your design tokens:
|
|
255
|
-
* - Small: 0.5rem (border-radius-md, 8px)
|
|
256
|
-
* - Large: 1rem (border-radius-lg, 16px)
|
|
257
|
-
* - Extra Large: 2rem (border-radius-xl, 24px)
|
|
258
|
-
*/
|
|
259
|
-
declare const BCCTailwindPreset: BCCTailwindPresetConfig;
|
|
83
|
+
interface BCCAuraOverrideConfig {
|
|
84
|
+
semantic: BCCSemantic;
|
|
85
|
+
components?: BCCComponentOverrides;
|
|
86
|
+
}declare const BCCAuraOverride: BCCAuraOverrideConfig;
|
|
260
87
|
|
|
261
|
-
export default
|
|
88
|
+
export default BCCAuraOverride;
|
|
262
89
|
|
|
263
|
-
// Export types for external use
|
|
264
90
|
export type {
|
|
265
|
-
|
|
91
|
+
BCCAuraOverrideConfig,
|
|
92
|
+
BCCSemantic,
|
|
93
|
+
BCCComponentOverrides,
|
|
266
94
|
BCCColorPalette,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
95
|
+
BCCPrimaryColorScheme,
|
|
96
|
+
BCCSurfaceColorScheme,
|
|
97
|
+
BCCTextColorScheme,
|
|
98
|
+
BCCContentColorScheme,
|
|
99
|
+
BCCModeColorScheme,
|
|
270
100
|
BCCColorScheme,
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
BCCCardConfig,
|
|
274
|
-
BCCPanelConfig,
|
|
275
|
-
BCCInputConfig,
|
|
276
|
-
BCCDialogConfig,
|
|
277
|
-
BCCDataTableConfig,
|
|
278
|
-
BCCComponents,
|
|
279
|
-
};
|
|
101
|
+
BCCGlobalConfig
|
|
102
|
+
};
|
|
@@ -1,207 +1,180 @@
|
|
|
1
|
-
|
|
2
|
-
* BCC Tailwind-Only PrimeVue Preset
|
|
3
|
-
*
|
|
4
|
-
* This preset uses actual color values from your design tokens instead of CSS variables,
|
|
5
|
-
* ensuring compatibility with Tailwind-only setup while still falling back to Aura for
|
|
6
|
-
* components you haven't customized.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
const BCCPresetConfig = {
|
|
1
|
+
const BCCAuraOverride = {
|
|
10
2
|
semantic: {
|
|
11
|
-
// PRIMARY: Use actual BCC brand color values
|
|
12
3
|
primary: {
|
|
13
|
-
50: '
|
|
14
|
-
100: '
|
|
15
|
-
200: '
|
|
16
|
-
300: '
|
|
17
|
-
400: '
|
|
18
|
-
500: '
|
|
19
|
-
600: '
|
|
20
|
-
700: '
|
|
21
|
-
800: '
|
|
22
|
-
900: '
|
|
23
|
-
950: '
|
|
4
|
+
50: 'var(--color-bcc-100)',
|
|
5
|
+
100: 'var(--color-bcc-200)',
|
|
6
|
+
200: 'var(--color-bcc-300)',
|
|
7
|
+
300: 'var(--color-bcc-400)',
|
|
8
|
+
400: 'var(--color-bcc-500)',
|
|
9
|
+
500: 'var(--color-bcc-600)',
|
|
10
|
+
600: 'var(--color-bcc-700)',
|
|
11
|
+
700: 'var(--color-bcc-800)',
|
|
12
|
+
800: 'var(--color-bcc-900)',
|
|
13
|
+
900: 'var(--color-bcc-1000)',
|
|
14
|
+
950: 'var(--color-bcc-1000)',
|
|
24
15
|
},
|
|
25
16
|
|
|
26
|
-
// SURFACE: Use actual neutral color values
|
|
27
17
|
surface: {
|
|
28
|
-
0: '
|
|
29
|
-
50: '
|
|
30
|
-
100: '
|
|
31
|
-
200: '
|
|
32
|
-
300: '
|
|
33
|
-
400: '
|
|
34
|
-
500: '
|
|
35
|
-
600: '
|
|
36
|
-
700: '
|
|
37
|
-
800: '
|
|
38
|
-
900: '
|
|
39
|
-
950: '
|
|
18
|
+
0: 'var(--color-neutral-0)',
|
|
19
|
+
50: 'var(--color-neutral-100)',
|
|
20
|
+
100: 'var(--color-neutral-200)',
|
|
21
|
+
200: 'var(--color-neutral-300)',
|
|
22
|
+
300: 'var(--color-neutral-400)',
|
|
23
|
+
400: 'var(--color-neutral-500)',
|
|
24
|
+
500: 'var(--color-neutral-600)',
|
|
25
|
+
600: 'var(--color-neutral-700)',
|
|
26
|
+
700: 'var(--color-neutral-800)',
|
|
27
|
+
800: 'var(--color-neutral-900)',
|
|
28
|
+
900: 'var(--color-neutral-1000)',
|
|
29
|
+
950: 'var(--color-neutral-1100)',
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
success: {
|
|
33
|
+
50: 'var(--color-green-100)',
|
|
34
|
+
100: 'var(--color-green-200)',
|
|
35
|
+
200: 'var(--color-green-300)',
|
|
36
|
+
300: 'var(--color-green-400)',
|
|
37
|
+
400: 'var(--color-green-500)',
|
|
38
|
+
500: 'var(--color-green-600)',
|
|
39
|
+
600: 'var(--color-green-700)',
|
|
40
|
+
700: 'var(--color-green-800)',
|
|
41
|
+
800: 'var(--color-green-900)',
|
|
42
|
+
900: 'var(--color-green-1000)',
|
|
43
|
+
950: 'var(--color-green-1000)',
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
warn: {
|
|
47
|
+
50: 'var(--color-orange-100)',
|
|
48
|
+
100: 'var(--color-orange-200)',
|
|
49
|
+
200: 'var(--color-orange-300)',
|
|
50
|
+
300: 'var(--color-orange-400)',
|
|
51
|
+
400: 'var(--color-orange-500)',
|
|
52
|
+
500: 'var(--color-orange-600)',
|
|
53
|
+
600: 'var(--color-orange-700)',
|
|
54
|
+
700: 'var(--color-orange-800)',
|
|
55
|
+
800: 'var(--color-orange-900)',
|
|
56
|
+
900: 'var(--color-orange-1000)',
|
|
57
|
+
950: 'var(--color-orange-1000)',
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
danger: {
|
|
61
|
+
50: 'var(--color-red-100)',
|
|
62
|
+
100: 'var(--color-red-200)',
|
|
63
|
+
200: 'var(--color-red-300)',
|
|
64
|
+
300: 'var(--color-red-400)',
|
|
65
|
+
400: 'var(--color-red-500)',
|
|
66
|
+
500: 'var(--color-red-600)',
|
|
67
|
+
600: 'var(--color-red-700)',
|
|
68
|
+
700: 'var(--color-red-800)',
|
|
69
|
+
800: 'var(--color-red-900)',
|
|
70
|
+
900: 'var(--color-red-1000)',
|
|
71
|
+
950: 'var(--color-red-1000)',
|
|
72
|
+
},
|
|
73
|
+
|
|
74
|
+
info: {
|
|
75
|
+
50: 'var(--color-blue-100)',
|
|
76
|
+
100: 'var(--color-blue-200)',
|
|
77
|
+
200: 'var(--color-blue-300)',
|
|
78
|
+
300: 'var(--color-blue-400)',
|
|
79
|
+
400: 'var(--color-blue-500)',
|
|
80
|
+
500: 'var(--color-blue-600)',
|
|
81
|
+
600: 'var(--color-blue-700)',
|
|
82
|
+
700: 'var(--color-blue-800)',
|
|
83
|
+
800: 'var(--color-blue-900)',
|
|
84
|
+
900: 'var(--color-blue-1000)',
|
|
85
|
+
950: 'var(--color-blue-1000)',
|
|
40
86
|
},
|
|
41
87
|
|
|
42
|
-
// COLOR SCHEME: Define light and dark mode colors
|
|
43
88
|
colorScheme: {
|
|
44
89
|
light: {
|
|
45
90
|
primary: {
|
|
46
|
-
color: '
|
|
47
|
-
contrastColor: '
|
|
48
|
-
hoverColor: '
|
|
49
|
-
activeColor: '
|
|
91
|
+
color: 'var(--color-background-brand-default)',
|
|
92
|
+
contrastColor: 'var(--color-text-inverse)',
|
|
93
|
+
hoverColor: 'var(--color-background-brand-hover)',
|
|
94
|
+
activeColor: 'var(--color-background-brand-pressed)',
|
|
50
95
|
},
|
|
96
|
+
|
|
51
97
|
surface: {
|
|
52
|
-
0: '
|
|
53
|
-
50: '
|
|
54
|
-
100: '
|
|
55
|
-
200: '
|
|
56
|
-
300: '
|
|
57
|
-
400: '
|
|
58
|
-
500: '
|
|
59
|
-
600: '
|
|
60
|
-
700: '
|
|
61
|
-
800: '
|
|
62
|
-
900: '
|
|
63
|
-
950: '
|
|
98
|
+
0: 'var(--color-elevation-surface-default)',
|
|
99
|
+
50: 'var(--color-elevation-surface-raised-default)',
|
|
100
|
+
100: 'var(--color-elevation-surface-overlay-default)',
|
|
101
|
+
200: 'var(--color-neutral-200)',
|
|
102
|
+
300: 'var(--color-neutral-300)',
|
|
103
|
+
400: 'var(--color-neutral-400)',
|
|
104
|
+
500: 'var(--color-neutral-500)',
|
|
105
|
+
600: 'var(--color-neutral-600)',
|
|
106
|
+
700: 'var(--color-neutral-700)',
|
|
107
|
+
800: 'var(--color-neutral-800)',
|
|
108
|
+
900: 'var(--color-neutral-900)',
|
|
109
|
+
950: 'var(--color-neutral-1100)',
|
|
64
110
|
},
|
|
111
|
+
|
|
65
112
|
text: {
|
|
66
|
-
color: '
|
|
67
|
-
hoverColor: '
|
|
68
|
-
mutedColor: '
|
|
69
|
-
highlightColor: '
|
|
113
|
+
color: 'var(--color-text-default)',
|
|
114
|
+
hoverColor: 'var(--color-text-default)',
|
|
115
|
+
mutedColor: 'var(--color-text-subtle)',
|
|
116
|
+
highlightColor: 'var(--color-text-selected)',
|
|
70
117
|
},
|
|
118
|
+
|
|
71
119
|
content: {
|
|
72
|
-
background: '
|
|
73
|
-
hoverBackground: '
|
|
74
|
-
borderColor: '
|
|
75
|
-
color: '
|
|
76
|
-
hoverColor: '
|
|
120
|
+
background: 'var(--color-elevation-surface-default)',
|
|
121
|
+
hoverBackground: 'var(--color-elevation-surface-hovered)',
|
|
122
|
+
borderColor: 'var(--color-border-default)',
|
|
123
|
+
color: 'var(--color-text-default)',
|
|
124
|
+
hoverColor: 'var(--color-text-default)',
|
|
77
125
|
},
|
|
78
126
|
},
|
|
127
|
+
|
|
79
128
|
dark: {
|
|
80
129
|
primary: {
|
|
81
|
-
color: '
|
|
82
|
-
contrastColor: '
|
|
83
|
-
hoverColor: '
|
|
84
|
-
activeColor: '
|
|
130
|
+
color: 'var(--color-background-brand-default)',
|
|
131
|
+
contrastColor: 'var(--color-text-inverse)',
|
|
132
|
+
hoverColor: 'var(--color-background-brand-hover)',
|
|
133
|
+
activeColor: 'var(--color-background-brand-pressed)',
|
|
85
134
|
},
|
|
135
|
+
|
|
86
136
|
surface: {
|
|
87
|
-
0: '
|
|
88
|
-
50: '
|
|
89
|
-
100: '
|
|
90
|
-
200: '
|
|
91
|
-
300: '
|
|
92
|
-
400: '
|
|
93
|
-
500: '
|
|
94
|
-
600: '
|
|
95
|
-
700: '
|
|
96
|
-
800: '
|
|
97
|
-
900: '
|
|
98
|
-
950: '
|
|
137
|
+
0: 'var(--color-elevation-surface-default)',
|
|
138
|
+
50: 'var(--color-elevation-surface-raised-default)',
|
|
139
|
+
100: 'var(--color-elevation-surface-overlay-default)',
|
|
140
|
+
200: 'var(--color-neutral-200)',
|
|
141
|
+
300: 'var(--color-neutral-300)',
|
|
142
|
+
400: 'var(--color-neutral-400)',
|
|
143
|
+
500: 'var(--color-neutral-500)',
|
|
144
|
+
600: 'var(--color-neutral-600)',
|
|
145
|
+
700: 'var(--color-neutral-700)',
|
|
146
|
+
800: 'var(--color-neutral-800)',
|
|
147
|
+
900: 'var(--color-neutral-900)',
|
|
148
|
+
950: 'var(--color-neutral-1100)',
|
|
99
149
|
},
|
|
150
|
+
|
|
100
151
|
text: {
|
|
101
|
-
color: '
|
|
102
|
-
hoverColor: '
|
|
103
|
-
mutedColor: '
|
|
104
|
-
highlightColor: '
|
|
152
|
+
color: 'var(--color-text-default)',
|
|
153
|
+
hoverColor: 'var(--color-text-default)',
|
|
154
|
+
mutedColor: 'var(--color-text-subtle)',
|
|
155
|
+
highlightColor: 'var(--color-text-selected)',
|
|
105
156
|
},
|
|
157
|
+
|
|
106
158
|
content: {
|
|
107
|
-
background: '
|
|
108
|
-
hoverBackground: '
|
|
109
|
-
borderColor: '
|
|
110
|
-
color: '
|
|
111
|
-
hoverColor: '
|
|
159
|
+
background: 'var(--color-elevation-surface-default)',
|
|
160
|
+
hoverBackground: 'var(--color-elevation-surface-hovered)',
|
|
161
|
+
borderColor: 'var(--color-border-default)',
|
|
162
|
+
color: 'var(--color-text-default)',
|
|
163
|
+
hoverColor: 'var(--color-text-default)',
|
|
112
164
|
},
|
|
113
165
|
},
|
|
114
166
|
},
|
|
115
167
|
},
|
|
116
168
|
|
|
117
|
-
// COMPONENT CUSTOMIZATIONS: Use rem values from your spacing scale
|
|
118
169
|
components: {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
sm: {
|
|
126
|
-
fontSize: '0.875rem', // font-size-sm
|
|
127
|
-
padding: {
|
|
128
|
-
x: '1rem', // space-200 = 16px
|
|
129
|
-
y: '0.5rem', // space-100 = 8px
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
lg: {
|
|
133
|
-
fontSize: '1.25rem', // font-size-lg
|
|
134
|
-
padding: {
|
|
135
|
-
x: '2rem', // space-400 = 32px
|
|
136
|
-
y: '1rem', // space-200 = 16px
|
|
137
|
-
},
|
|
138
|
-
},
|
|
170
|
+
global: {
|
|
171
|
+
css: `
|
|
172
|
+
.p-component {
|
|
173
|
+
font-family: var(--font-archivo), -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
174
|
+
}
|
|
175
|
+
`
|
|
139
176
|
},
|
|
140
|
-
|
|
141
|
-
card: {
|
|
142
|
-
borderRadius: '1rem', // border-radius-lg = 16px
|
|
143
|
-
body: {
|
|
144
|
-
padding: '1.5rem', // space-300 = 24px
|
|
145
|
-
gap: '1rem', // space-200 = 16px
|
|
146
|
-
},
|
|
147
|
-
header: {
|
|
148
|
-
padding: '1.5rem', // space-300 = 24px
|
|
149
|
-
},
|
|
150
|
-
footer: {
|
|
151
|
-
padding: '1.5rem', // space-300 = 24px
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
panel: {
|
|
156
|
-
borderRadius: '1rem', // border-radius-lg = 16px
|
|
157
|
-
header: {
|
|
158
|
-
padding: '1.5rem', // space-300 = 24px
|
|
159
|
-
borderRadius: '1rem 1rem 0 0',
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
|
|
163
|
-
inputtext: {
|
|
164
|
-
borderRadius: '0.5rem', // border-radius-md = 8px
|
|
165
|
-
padding: {
|
|
166
|
-
x: '1rem', // space-200 = 16px
|
|
167
|
-
y: '0.75rem', // space-150 = 12px
|
|
168
|
-
},
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
dropdown: {
|
|
172
|
-
borderRadius: '0.5rem', // border-radius-md = 8px
|
|
173
|
-
padding: {
|
|
174
|
-
x: '1rem', // space-200 = 16px
|
|
175
|
-
y: '0.75rem', // space-150 = 12px
|
|
176
|
-
},
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
dialog: {
|
|
180
|
-
borderRadius: '2rem', // border-radius-xl = 24px
|
|
181
|
-
header: {
|
|
182
|
-
padding: '2rem', // space-400 = 32px
|
|
183
|
-
},
|
|
184
|
-
content: {
|
|
185
|
-
padding: '2rem', // space-400 = 32px
|
|
186
|
-
},
|
|
187
|
-
footer: {
|
|
188
|
-
padding: '2rem', // space-400 = 32px
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
datatable: {
|
|
193
|
-
header: {
|
|
194
|
-
cell: {
|
|
195
|
-
padding: '1rem', // space-200 = 16px
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
body: {
|
|
199
|
-
cell: {
|
|
200
|
-
padding: '1rem', // space-200 = 16px
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
},
|
|
204
|
-
},
|
|
177
|
+
}
|
|
205
178
|
};
|
|
206
179
|
|
|
207
|
-
export default
|
|
180
|
+
export default BCCAuraOverride;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcc-code/design-tokens",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Design tokens with CSS variables, Tailwind v4, and framework presets.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "build/bcc/cdn/variables.css",
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"build/**/*",
|
|
22
|
-
"
|
|
23
|
-
"README.md"
|
|
22
|
+
"package.json"
|
|
24
23
|
],
|
|
25
24
|
"scripts": {
|
|
26
25
|
"build": "node build.js",
|