{
bottom: 0,
padding: 20,
margin: 20,
- background: '#02020F',
borderRadius: 5
}}
>
@@ -169,10 +169,11 @@ export const _OpenAI = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
@@ -295,6 +296,7 @@ export const VercelAI = () => {
onChange={e => setApiKey(e.target.value)}
/>
{
bottom: 0,
padding: 20,
margin: 20,
- background: '#02020F',
borderRadius: 5
}}
>
@@ -336,10 +337,11 @@ export const VercelAI = () => {
{conversations =>
- conversations.map(conversation => (
+ conversations.map((conversation, index) => (
))
}
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 475ef92..2d09be9 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -5,75 +5,80 @@ import { colorPalette } from 'reablocks';
module.exports = {
content: [
- "./index.html",
- "./src/**/*.{js,ts,jsx,tsx}",
- "./node_modules/reablocks/**/*.{js,jsx,ts,tsx}",
+ './index.html',
+ './src/**/*.{js,ts,jsx,tsx}',
+ './stories/**/*.{js,ts,jsx,tsx}',
+ './node_modules/reablocks/**/*.{js,jsx,ts,tsx}'
],
+ darkMode: 'selector',
+ lightMode: 'selector',
theme: {
- extend: {
- borderRadius: {
- '3xl': '20px',
- },
- colors: {
- primary: {
- DEFAULT: colorPalette.blue[500],
- active: colorPalette.blue[500],
- hover: colorPalette.blue[600],
- inactive: colorPalette.blue[200]
- },
- secondary: {
- DEFAULT: colorPalette.gray[700],
- active: colorPalette.gray[700],
- hover: colorPalette.gray[800],
- inactive: colorPalette.gray[400]
- },
- success: {
- DEFAULT: colorPalette.green[500],
- active: colorPalette.green[500],
- hover: colorPalette.green[600]
- },
- error: {
- DEFAULT: colorPalette.red[500],
- active: colorPalette.red[500],
- hover: colorPalette.red[600]
- },
- warning: {
- DEFAULT: colorPalette.orange[500],
- active: colorPalette.orange[500],
- hover: colorPalette.orange[600]
- },
- info: {
- DEFAULT: colorPalette.blue[500],
- active: colorPalette.blue[500],
- hover: colorPalette.blue[600]
- },
- background: {
- level1: colorPalette.white,
- level2: colorPalette.gray[950],
- level3: colorPalette.gray[900],
- level4: colorPalette.gray[800],
- },
- panel: {
- DEFAULT: colorPalette['black-pearl'],
- accent: colorPalette['charade']
- },
- surface: {
- DEFAULT: colorPalette['charade'],
-
- },
- typography: {
- DEFAULT: colorPalette['athens-gray'],
- },
- accent: {
- DEFAULT: colorPalette['waterloo'],
- active: colorPalette['anakiwa']
+ extend: {
+ borderRadius: {
+ '3xl': '20px'
},
+ colors: {
+ primary: {
+ DEFAULT: colorPalette.blue[500],
+ active: colorPalette.blue[500],
+ hover: colorPalette.blue[600],
+ inactive: colorPalette.blue[200]
+ },
+ secondary: {
+ DEFAULT: colorPalette.gray[700],
+ active: colorPalette.gray[700],
+ hover: colorPalette.gray[800],
+ inactive: colorPalette.gray[400]
+ },
+ success: {
+ DEFAULT: colorPalette.green[500],
+ active: colorPalette.green[500],
+ hover: colorPalette.green[600]
+ },
+ error: {
+ DEFAULT: colorPalette.red[500],
+ active: colorPalette.red[500],
+ hover: colorPalette.red[600]
+ },
+ warning: {
+ DEFAULT: colorPalette.orange[500],
+ active: colorPalette.orange[500],
+ hover: colorPalette.orange[600]
+ },
+ info: {
+ DEFAULT: colorPalette.blue[500],
+ active: colorPalette.blue[500],
+ hover: colorPalette.blue[600]
+ },
+ background: {
+ level1: colorPalette.white,
+ level2: colorPalette.gray[950],
+ level3: colorPalette.gray[900],
+ level4: colorPalette.gray[800]
+ },
+ panel: {
+ DEFAULT: colorPalette['black-pearl'],
+ accent: colorPalette['charade']
+ },
+ surface: {
+ DEFAULT: colorPalette['charade']
+ },
+ typography: {
+ DEFAULT: colorPalette['athens-gray']
+ },
+ accent: {
+ DEFAULT: colorPalette['waterloo'],
+ active: colorPalette['anakiwa']
+ }
+ }
}
- }
-},
+ },
plugins: [
- plugin(({ addVariant }) => {
- addVariant('disabled-within', '&:has(input:is(:disabled),button:is(:disabled))');
- })
-],
+ plugin(({ addVariant }) => {
+ addVariant(
+ 'disabled-within',
+ '&:has(input:is(:disabled),button:is(:disabled))'
+ );
+ })
+ ]
};
diff --git a/vite.config.ts b/vite.config.ts
index aeee388..3bef7f2 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -42,7 +42,7 @@ export default defineConfig(({ mode }) =>
copyPublicDir: false,
lib: {
entry: resolve('src', 'index.ts'),
- name: 'reablocks',
+ name: 'reachat',
fileName: 'index'
},
rollupOptions: {