@bcc-code/design-tokens 3.0.3 → 3.0.5
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 +62 -62
- package/build/bcc/aura-bcc-config.js +1148 -0
- package/build/bcc/dark.css +217 -302
- package/build/bcc/dark.js +289 -444
- package/build/bcc/light.css +318 -317
- package/build/bcc/light.js +450 -455
- package/build/bcc/tailwind-dark.css +217 -302
- package/build/bcc/tailwind-light.css +318 -317
- package/config/primevue.config.d.ts +7 -7
- package/config/primevue.config.js +23 -121
- package/package.json +42 -41
- package/build/bcc/primitives.js +0 -258
package/README.md
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
# @bcc-code/design-tokens
|
|
2
|
-
|
|
3
|
-
Design tokens for BCC projects with CSS, Tailwind v4, and PrimeVue support.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @bcc-code/design-tokens
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
### CSS Variables
|
|
14
|
-
|
|
15
|
-
```css
|
|
16
|
-
@import '@bcc-code/design-tokens/css/light';
|
|
17
|
-
/* or */
|
|
18
|
-
@import '@bcc-code/design-tokens/css/dark';
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
```css
|
|
22
|
-
.card {
|
|
23
|
-
background: var(--color-elevation-surface-default);
|
|
24
|
-
color: var(--color-text-default);
|
|
25
|
-
padding: var(--space-300);
|
|
26
|
-
}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Tailwind CSS v4
|
|
30
|
-
|
|
31
|
-
```css
|
|
32
|
-
@import '@bcc-code/design-tokens/tailwind/light';
|
|
33
|
-
/* or */
|
|
34
|
-
@import '@bcc-code/design-tokens/tailwind/dark';
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
```html
|
|
38
|
-
<div class="bg-elevation-surface-default text-default p-300">
|
|
39
|
-
Content
|
|
40
|
-
</div>
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
### PrimeVue
|
|
44
|
-
|
|
45
|
-
```javascript
|
|
46
|
-
import BCCPreset from "@bcc-code/design-tokens/primevue";
|
|
47
|
-
|
|
48
|
-
app.use(PrimeVue, {
|
|
49
|
-
theme: {
|
|
50
|
-
preset: BCCPreset
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## CDN
|
|
56
|
-
|
|
57
|
-
```html
|
|
58
|
-
<link rel="stylesheet" href="https://unpkg.com/@bcc-code/design-tokens@latest/build/bcc/light.css">
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
## License
|
|
62
|
-
|
|
1
|
+
# @bcc-code/design-tokens
|
|
2
|
+
|
|
3
|
+
Design tokens for BCC projects with CSS, Tailwind v4, and PrimeVue support.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @bcc-code/design-tokens
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### CSS Variables
|
|
14
|
+
|
|
15
|
+
```css
|
|
16
|
+
@import '@bcc-code/design-tokens/css/light';
|
|
17
|
+
/* or */
|
|
18
|
+
@import '@bcc-code/design-tokens/css/dark';
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
```css
|
|
22
|
+
.card {
|
|
23
|
+
background: var(--color-elevation-surface-default);
|
|
24
|
+
color: var(--color-text-default);
|
|
25
|
+
padding: var(--space-300);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Tailwind CSS v4
|
|
30
|
+
|
|
31
|
+
```css
|
|
32
|
+
@import '@bcc-code/design-tokens/tailwind/light';
|
|
33
|
+
/* or */
|
|
34
|
+
@import '@bcc-code/design-tokens/tailwind/dark';
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<div class="bg-elevation-surface-default text-default p-300">
|
|
39
|
+
Content
|
|
40
|
+
</div>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### PrimeVue
|
|
44
|
+
|
|
45
|
+
```javascript
|
|
46
|
+
import BCCPreset from "@bcc-code/design-tokens/primevue";
|
|
47
|
+
|
|
48
|
+
app.use(PrimeVue, {
|
|
49
|
+
theme: {
|
|
50
|
+
preset: BCCPreset
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## CDN
|
|
56
|
+
|
|
57
|
+
```html
|
|
58
|
+
<link rel="stylesheet" href="https://unpkg.com/@bcc-code/design-tokens@latest/build/bcc/light.css">
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
## License
|
|
62
|
+
|
|
63
63
|
MIT © BCC Code
|