canonicalize-candidates.test.ts — tailwindcss Source File
Architecture documentation for canonicalize-candidates.test.ts, a typescript file in the tailwindcss codebase. 9 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 978ac7fd_340e_c735_63b8_28b3651a84e1["canonicalize-candidates.test.ts"] 698bd8b8_c58b_b939_11de_f35841f0236e["cartesian.ts"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> 698bd8b8_c58b_b939_11de_f35841f0236e be3438c9_e99f_79d9_040f_6198e91ce8dd["cartesian"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> be3438c9_e99f_79d9_040f_6198e91ce8dd 65419ae8_33ea_931a_d1ac_1549de232b64["intellisense.ts"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> 65419ae8_33ea_931a_d1ac_1549de232b64 c056448b_f7a2_9149_54e8_f0f8470fe3aa["default-map.ts"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> c056448b_f7a2_9149_54e8_f0f8470fe3aa bf2992f6_4a37_8536_70f8_94b13631027d["DefaultMap"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> bf2992f6_4a37_8536_70f8_94b13631027d 6390fa3b_300d_6028_9e96_c869157db42d["node:fs"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> 6390fa3b_300d_6028_9e96_c869157db42d 2a7660a5_3e09_bd74_37f0_e4e54bc64ce5["node:path"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> 2a7660a5_3e09_bd74_37f0_e4e54bc64ce5 696bd648_5f24_1b59_8e8b_7a97a692869e["vitest"] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> 696bd648_5f24_1b59_8e8b_7a97a692869e 901927f2_bc06_7bba_3b59_6521372af070["."] 978ac7fd_340e_c735_63b8_28b3651a84e1 --> 901927f2_bc06_7bba_3b59_6521372af070 style 978ac7fd_340e_c735_63b8_28b3651a84e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import fs from 'node:fs'
import path from 'node:path'
import { describe, expect, test } from 'vitest'
import { __unstable__loadDesignSystem } from '.'
import { cartesian } from './cartesian'
import type { CanonicalizeOptions } from './intellisense'
import { DefaultMap } from './utils/default-map'
const css = String.raw
const timeout = 25_000
const defaultTheme = fs.readFileSync(path.resolve(__dirname, '../theme.css'), 'utf8')
const designSystems = new DefaultMap((base: string) => {
return new DefaultMap((input: string) => {
return __unstable__loadDesignSystem(input, {
base,
async loadStylesheet() {
return {
path: '',
base: '',
content: css`
@tailwind utilities;
${defaultTheme}
/* TODO(perf): Only here to speed up the tests */
@theme {
--*: initial;
--breakpoint-lg: 64rem;
--breakpoint-md: 48rem;
--color-blue-200: oklch(88.2% 0.059 254.128);
--color-blue-500: oklch(62.3% 0.214 259.815);
--color-red-500: oklch(63.7% 0.237 25.331);
--color-white: #fff;
--container-md: 28rem;
--font-weight-normal: 400;
--leading-relaxed: 1.625;
--spacing: 0.25rem;
--text-sm--line-height: calc(1.25 / 0.875);
--text-sm: 0.875rem;
--text-xs--line-height: calc(1 / 0.75);
--text-xs: 0.75rem;
}
`,
}
},
})
})
})
const DEFAULT_CANONICALIZATION_OPTIONS: CanonicalizeOptions = {
rem: 16,
collapse: true,
logicalToPhysical: true,
}
describe.each([['default'], ['with-variant'], ['important'], ['prefix']])('%s', (strategy) => {
let testName = '%s → %s (%#)'
if (strategy === 'with-variant') {
testName = testName.replaceAll('%s', 'focus:%s')
// ... (1106 more lines)
Domain
Subdomains
Functions
Dependencies
- .
- DefaultMap
- cartesian
- cartesian.ts
- default-map.ts
- intellisense.ts
- node:fs
- node:path
- vitest
Source
Frequently Asked Questions
What does canonicalize-candidates.test.ts do?
canonicalize-candidates.test.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain, Extractor subdomain.
What functions are defined in canonicalize-candidates.test.ts?
canonicalize-candidates.test.ts defines 1 function(s): designSystems.
What does canonicalize-candidates.test.ts depend on?
canonicalize-candidates.test.ts imports 9 module(s): ., DefaultMap, cartesian, cartesian.ts, default-map.ts, intellisense.ts, node:fs, node:path, and 1 more.
Where is canonicalize-candidates.test.ts in the architecture?
canonicalize-candidates.test.ts is located at packages/tailwindcss/src/canonicalize-candidates.test.ts (domain: OxideEngine, subdomain: Extractor, directory: packages/tailwindcss/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free