Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
849 changes: 842 additions & 7 deletions browser/package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"igniteui-grid-lite": "^0.0.1",
"igniteui-react": "^19.4.0",
"igniteui-react-charts": "19.3.1",
"igniteui-theming": "^24.0.2",
"igniteui-react-core": "19.3.1",
"igniteui-react-dashboards": "19.3.1",
"igniteui-react-data-grids": "19.3.1",
Expand Down Expand Up @@ -96,6 +97,7 @@
"remark": "^14.0.2",
"remark-frontmatter": "^2.0.0",
"run-sequence": "^2.2.1",
"sass-embedded": "^1.84.0",
"ts-loader": "^9.5.4",
"ts-node": "^10.9.2",
"typescript": "^4.8.4",
Expand Down
8 changes: 8 additions & 0 deletions browser/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ export default defineConfig(({ mode }) => ({
'jszip/dist/jszip'
],
},
css: {
preprocessorOptions: {
scss: {
includePaths: ['node_modules'],
loadPaths: [resolve(__dirname, 'node_modules')]
}
}
},
build: {
outDir: 'build',
commonjsOptions: {
Expand Down
2 changes: 2 additions & 0 deletions samples/grids/grid-lite/styling-custom-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"dependencies": {
"igniteui-grid-lite": "^0.0.1",
"igniteui-react": "^19.4.0",
"igniteui-theming": "^24.0.2",
"igniteui-webcomponents": "^6.3.0",
"lit-html": "^3.2.0",
"react": "^19.2.0",
Expand All @@ -30,6 +31,7 @@
"@vitejs/plugin-react": "^5.0.4",
"@vitest/browser": "^3.2.4",
"eslint": "^8.33.0",
"sass": "^1.83.0",
"eslint-config-react": "^1.1.7",
"eslint-plugin-react": "^7.20.0",
"typescript": "^4.8.4",
Expand Down
405 changes: 0 additions & 405 deletions samples/grids/grid-lite/styling-custom-theme/src/index.css

This file was deleted.

19 changes: 19 additions & 0 deletions samples/grids/grid-lite/styling-custom-theme/src/index.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
@use 'igniteui-theming' as *;
@import 'igniteui-theming/sass/typography/presets';

$custom-palette: palette(
$primary: #ddd020,
$secondary: #d5896f,
$surface: #031d44,
$gray: #04395e,
);

.grid-lite-wrapper {
width: 100%;
height: 100%;
}

.custom-styled {
@include palette($custom-palette);
@include typography('"Merriweather Sans", sans-serif', $bootstrap-type-scale);
}
2 changes: 1 addition & 1 deletion samples/grids/grid-lite/styling-custom-theme/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
} from 'igniteui-webcomponents';

import "igniteui-webcomponents/themes/light/bootstrap.css";
import "./index.css";
import "./index.scss";

// Register components
IgcGridLite.register();
Expand Down
8 changes: 8 additions & 0 deletions samples/grids/grid-lite/styling-custom-theme/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';

export default defineConfig({
plugins: [react()],
css: {
preprocessorOptions: {
scss: {
loadPaths: [resolve(__dirname, 'node_modules')]
}
}
},
build: {
outDir: 'build'
},
Expand Down