@bcc-code/component-library-vue 0.0.0-dev.e62c0ba → 0.0.0-dev.e994f0d

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 CHANGED
@@ -44,7 +44,7 @@ app.mount('#app');
44
44
 
45
45
  ### Styles Option 1 — Recommended: full Tailwind in your app
46
46
 
47
- Use this if you want Tailwind utility classes in your own templates and only ship the classes you use (tree-shaking).
47
+ Use this if you want Tailwind utility classes in your own templates while still letting the library's components render correctly.
48
48
 
49
49
  1. **Add the Tailwind Vite plugin** (the package brings Tailwind in as a dependency; you only wire it up):
50
50
 
@@ -64,7 +64,12 @@ export default defineConfig({
64
64
  @import '@bcc-code/component-library-vue/theme.css';
65
65
  ```
66
66
 
67
- Tailwind will run as part of your build and only include the utility classes that appear in your app and in the library.
67
+ That single import is enough. `theme.css` includes:
68
+
69
+ - BCC design tokens, `@theme` / `@utility` definitions, and the rest of the design-system CSS inlined from `src/style.css` (including component-specific rules such as `BccInput` icon sizing and `BccButton` context tokens).
70
+ - `library-utilities.css`, the pre-compiled Tailwind **utility class** rules used inside library templates (which your build cannot infer from the published JS).
71
+
72
+ Do **not** rely on `library-utilities.css` alone with a minimal “base” import: you still need the full `theme.css` (or `style.css` for Option 2) so non-utility component styles and tokens are present.
68
73
 
69
74
  ### Styles Option 2 — Pre-built CSS only
70
75