Skip to content

Commit 9b9c266

Browse files
authored
Merge pull request #2548 from telerik/unstyle-example
Unstyle example
2 parents ff880fa + 94196ad commit 9b9c266

File tree

14 files changed

+7331
-0
lines changed

14 files changed

+7331
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# build output
2+
dist/
3+
4+
# generated types
5+
.astro/
6+
7+
# dependencies
8+
node_modules/
9+
10+
# logs
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# environment variables
17+
.env
18+
.env.production
19+
20+
# macOS-specific files
21+
.DS_Store
22+
23+
# jetbrains setting folder
24+
.idea/
25+
26+
# package-lock.json
27+
package-lock.json
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Using KendoReact components in Unstyled mode and TailwindCSS
2+
3+
## The scenario
4+
The client already works with TailwindCSS to style their application and wants to include our KendoReact components in their project. They want to continue using the same styling technique with Tailwind without the need to add KendoTheme.
5+
6+
## The solution
7+
We can use KendoReact components in Unstyled mode and use Tailwind classes to style the components as it is done in the sample `tailwind-preset.ts` file.
8+
9+
## Kendo Unstyled preset
10+
The preset file is a sample set of classes for each KendoReact unstyled component that provides one possible way to have it styled. It can be further customized according to the design needs.
11+
12+
## Getting started
13+
14+
1. npm i
15+
2. npm start
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { defineConfig } from 'astro/config';
2+
import react from "@astrojs/react";
3+
4+
import tailwind from '@astrojs/tailwind';
5+
6+
// https://astro.build/config
7+
export default defineConfig({
8+
integrations: [react(), tailwind()]
9+
});

0 commit comments

Comments
 (0)