An open source design system that's fully customizable and agent ready
TypeScript
// Copyright (c) Meta Platforms, Inc. and affiliates.
import {fileURLToPath} from 'node:url';
import {defineConfig} from 'vite';
import react from '@vitejs/plugin-react';
import {astryxStylex} from '@astryxdesign/build/vite';
export default defineConfig({
plugins: [...astryxStylex(), react()],
// Templates that show imagery point at /template-assets/*, which the docsite
// serves from its own public dir. Reuse it so previews here match.
publicDir: '../docsite/public',
// Docs-only demo content templates import is hosted by the docsite too.
resolve: {
alias: {
'@astryx-docs/demo-content': fileURLToPath(
new URL(
'../docsite/src/templateDemoContent/demoContent.tsx',
import.meta.url,
),
),
},
},
// Templates live outside this app's root (packages/cli/assets/templates).
server: {fs: {allow: ['../..']}},
});