-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathworkshop.config.ts
More file actions
39 lines (36 loc) · 903 Bytes
/
workshop.config.ts
File metadata and controls
39 lines (36 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import {buildTheme} from '@sanity/ui/theme'
import {defineConfig} from '@sanity/ui-workshop'
import {perfPlugin} from '@sanity/ui-workshop/plugin-perf'
import {registerLanguage} from 'react-refractor'
import javascript from 'refractor/javascript'
import json from 'refractor/json'
import jsx from 'refractor/jsx'
import typescript from 'refractor/typescript'
import {fontsPlugin} from './workshop/fontsPlugin'
registerLanguage(javascript)
registerLanguage(json)
registerLanguage(jsx)
registerLanguage(typescript)
export default defineConfig({
collections: [
{
name: 'components',
title: 'Components',
},
{
name: 'hooks',
title: 'Hooks',
},
{
name: 'primitives',
title: 'Primitives',
},
{
name: 'utils',
title: 'Utils',
},
],
plugins: [fontsPlugin(), perfPlugin()],
theme: buildTheme(),
title: '@sanity/ui',
})