+
+ CodeX UI showcase
+
+
+
+
```
## Types for Vue Components
Add the following "path" to the "tsconfig.json"
-```
+```json
{
"compilerOptions": {
"paths": {
- "@codexteam/ui/vue": ["../@codexteam/ui/dist/types/vue/index.d.ts"],
+ "@codexteam/ui/vue": ["../@codexteam/ui/dist/types/vue/index.d.ts"]
}
- },
+ }
}
-
```
## Build Design System
Build the design system to be able to use the @codexteam/ui/styles import
-```
+```bash
yarn build
```
-## Access CSS variables
+## Custom Theming
+
+If you don't want to use built-in themes, define your own CSS variables:
+
+```css
+:root {
+ /* Base colors */
+ --base--bg-primary: #ffffff;
+ --base--bg-secondary: #f5f5f5;
+ --base--bg-secondary-hover: #eeeeee;
+ --base--border: #e0e0e0;
+ --base--text: #333333;
+ --base--text-secondary: #666666;
+ --base--solid: #000000;
+ --base--text-solid-foreground: #ffffff;
+
+ /* Accent colors */
+ --accent--solid: #2196f3;
+ --accent--solid-hover: #1976d2;
+ --accent--bg-secondary: #e3f2fd;
+ --accent--text-solid-foreground: #ffffff;
+}
+```
+
+## Access CSS Variables
-1. Import `@codexteam/ui/styles` somewhere in App
-2. Use variable in CSS, e.g `var(--ui-color)`
+1. Import `@codexteam/ui/styles` in your app
+2. Import themes you need (e.g., `@codexteam/ui/styles/themes/pure`)
+3. Use variables in CSS: `var(--base--text)`, `var(--accent--solid)`
## Using Typography
diff --git a/@codexteam/ui/dev/index.html b/@codexteam/ui/dev/index.html
index aa1fe81c..40e8bba0 100644
--- a/@codexteam/ui/dev/index.html
+++ b/@codexteam/ui/dev/index.html
@@ -10,7 +10,9 @@
-
diff --git a/@codexteam/ui/src/vue/components/chart/ChartLine.vue b/@codexteam/ui/src/vue/components/chart/ChartLine.vue
index fedbc1c2..9e7501bb 100644
--- a/@codexteam/ui/src/vue/components/chart/ChartLine.vue
+++ b/@codexteam/ui/src/vue/components/chart/ChartLine.vue
@@ -29,12 +29,12 @@