MCPcopy
hub / github.com/tailwindlabs/tailwindcss / loadDesignSystem

Function loadDesignSystem

packages/tailwindcss/src/intellisense.test.ts:9–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7const css = String.raw
8
9function loadDesignSystem() {
10 return __unstable__loadDesignSystem(`
11 @theme {
12 --spacing: 0.25rem;
13 --colors-red-500: red;
14 --colors-blue-500: blue;
15 --breakpoint-sm: 640px;
16 --aspect-video: 16 / 9;
17 --font-sans: sans-serif;
18 --font-weight-superbold: 900;
19 --text-xs: 0.75rem;
20 --text-xs--line-height: 1rem;
21 --perspective-dramatic: 100px;
22 --perspective-normal: 500px;
23 --opacity-background: 0.3;
24 --drop-shadow-sm: 0 1px 1px rgb(0 0 0 / 0.05);
25 --inset-shadow-sm: inset 0 1px 1px rgb(0 0 0 / 0.05);
26 --font-weight-bold: 700;
27 --container-md: 768px;
28 --container-lg: 1024px;
29 }
30 `)
31}
32
33test('getClassList', async () => {
34 let design = await loadDesignSystem()

Callers 1

Calls 1

Tested by

no test coverage detected