Skip to content

Commit

Permalink
Remove unnecessary stuff from examples/next-ai-rsc-basic
Browse files Browse the repository at this point in the history
  • Loading branch information
unstubbable committed Mar 23, 2024
1 parent 2afa0f2 commit bf0e388
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 188 deletions.
Binary file removed examples/next-ai-rsc-basic/app/favicon.ico
Binary file not shown.
14 changes: 0 additions & 14 deletions examples/next-ai-rsc-basic/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
}
21 changes: 1 addition & 20 deletions examples/next-ai-rsc-basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,35 +11,16 @@
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx}\" --cache"
},
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@radix-ui/react-tooltip": "^1.0.7",
"@vercel/analytics": "^1.2.2",
"@vercel/kv": "^1.0.1",
"ai": "latest",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"d3-scale": "^4.0.2",
"date-fns": "^3.3.1",
"geist": "^1.2.2",
"next": "14.1.2",
"next-themes": "^0.2.1",
"openai": "^4.28.4",
"react": "^18",
"react-dom": "^18",
"react-intersection-observer": "^9.8.0",
"react-textarea-autosize": "^8.5.3",
"tailwind-merge": "^2.2.1",
"tailwindcss-animate": "^1.0.7",
"usehooks-ts": "^2.15.1",
"zod": "3.22.4",
"zod-to-json-schema": "3.22.4"
"zod": "3.22.4"
},
"devDependencies": {
"@types/d3-scale": "^4.0.8",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
62 changes: 2 additions & 60 deletions examples/next-ai-rsc-basic/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,73 +2,15 @@ import { fontFamily } from 'tailwindcss/defaultTheme';
import type { Config } from 'tailwindcss';

const config: Config = {
content: [
'./ai_user_components/**/*.{js,ts,jsx,tsx,mdx}',
'./app/**/*.{js,ts,jsx,tsx,mdx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./ai_hooks/**/*.{js,ts,jsx,tsx}',
],
content: ['./app/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
extend: {
fontFamily: {
sans: ['var(--font-geist-sans)', ...fontFamily.sans],
mono: ['var(--font-geist-mono)', ...fontFamily.mono],
},
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
},
colors: {
green: {
'50': '#f0fdf6',
'100': '#dbfdec',
'200': '#baf8d9',
'300': '#68eeac',
'400': '#47e195',
'500': '#1fc876',
'600': '#13a65e',
'700': '#13824c',
'800': '#146740',
'900': '#135436',
'950': '#042f1c',
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))',
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))',
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))',
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))',
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))',
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))',
},
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))',
},
},
},
},
plugins: [require('tailwindcss-animate')],
};

export default config;
94 changes: 0 additions & 94 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf0e388

Please sign in to comment.