migrate-legacy-classes.ts — tailwindcss Source File
Architecture documentation for migrate-legacy-classes.ts, a typescript file in the tailwindcss codebase. 14 imports, 2 dependents.
Entity Profile
Dependency Diagram
graph LR b221facd_4d62_d2ce_4a2c_e77999b7a5ae["migrate-legacy-classes.ts"] ba6fca27_7720_5839_0f92_bc2abb8db636["candidate.ts"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> ba6fca27_7720_5839_0f92_bc2abb8db636 23c6e5a0_eac4_e9dd_7fcf_1e5c71d28310["cloneCandidate"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 23c6e5a0_eac4_e9dd_7fcf_1e5c71d28310 da5d1116_ab2a_437a_6b13_c1429fd546fa["plugin-api.ts"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> da5d1116_ab2a_437a_6b13_c1429fd546fa 0255ffc0_a3d5_e883_5143_99660766448f["Config"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 0255ffc0_a3d5_e883_5143_99660766448f bdedd2f6_da4b_69dc_e990_0814b59fbe6e["design-system.ts"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> bdedd2f6_da4b_69dc_e990_0814b59fbe6e 665aa4ed_d86e_30e5_80d5_cd56b8ca8b62["DesignSystem"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 665aa4ed_d86e_30e5_80d5_cd56b8ca8b62 28a2f72d_350c_6647_bf9d_77c69e637045["default-map.ts"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 28a2f72d_350c_6647_bf9d_77c69e637045 cfb4af0e_7b2d_34a1_693a_90088443cfec["DefaultMap"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> cfb4af0e_7b2d_34a1_693a_90088443cfec 472e1b98_afcf_f1f2_ad91_916d742bb731["version.ts"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 472e1b98_afcf_f1f2_ad91_916d742bb731 530db924_e458_e8b2_fde4_45f3e78b4424["candidates.ts"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 530db924_e458_e8b2_fde4_45f3e78b4424 38a143bb_9140_60f2_b4a1_d6d91e416924["baseCandidate"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 38a143bb_9140_60f2_b4a1_d6d91e416924 08129f89_e6ef_0092_629d_821c60228c89["node"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 08129f89_e6ef_0092_629d_821c60228c89 89aef3dd_1eed_c141_d425_b8949215a653["node:path"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 89aef3dd_1eed_c141_d425_b8949215a653 8454872a_1bfa_3cb3_db8f_6d2e7e422a55["node:url"] b221facd_4d62_d2ce_4a2c_e77999b7a5ae --> 8454872a_1bfa_3cb3_db8f_6d2e7e422a55 style b221facd_4d62_d2ce_4a2c_e77999b7a5ae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { __unstable__loadDesignSystem } from '@tailwindcss/node'
import path from 'node:path'
import url from 'node:url'
import { cloneCandidate, type Candidate } from '../../../../tailwindcss/src/candidate'
import type { Config } from '../../../../tailwindcss/src/compat/plugin-api'
import type { DesignSystem } from '../../../../tailwindcss/src/design-system'
import { DefaultMap } from '../../../../tailwindcss/src/utils/default-map'
import * as version from '../../utils/version'
import { baseCandidate } from './candidates'
const __filename = url.fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const LEGACY_CLASS_MAP = new Map([
['shadow', 'shadow-sm'],
['shadow-sm', 'shadow-xs'],
['shadow-xs', 'shadow-2xs'],
['inset-shadow', 'inset-shadow-sm'],
['inset-shadow-sm', 'inset-shadow-xs'],
['inset-shadow-xs', 'inset-shadow-2xs'],
['drop-shadow', 'drop-shadow-sm'],
['drop-shadow-sm', 'drop-shadow-xs'],
['rounded', 'rounded-sm'],
['rounded-sm', 'rounded-xs'],
['blur', 'blur-sm'],
['blur-sm', 'blur-xs'],
['backdrop-blur', 'backdrop-blur-sm'],
['backdrop-blur-sm', 'backdrop-blur-xs'],
['ring', 'ring-3'],
['outline', 'outline-solid'],
])
const THEME_KEYS = new Map([
['shadow', '--shadow'],
['shadow-sm', '--shadow-sm'],
['shadow-xs', '--shadow-xs'],
['shadow-2xs', '--shadow-2xs'],
['drop-shadow', '--drop-shadow'],
['drop-shadow-sm', '--drop-shadow-sm'],
['drop-shadow-xs', '--drop-shadow-xs'],
['rounded', '--radius'],
['rounded-sm', '--radius-sm'],
['rounded-xs', '--radius-xs'],
['blur', '--blur'],
['blur-sm', '--blur-sm'],
['blur-xs', '--blur-xs'],
['backdrop-blur', '--backdrop-blur'],
['backdrop-blur-sm', '--backdrop-blur-sm'],
['backdrop-blur-xs', '--backdrop-blur-xs'],
// ... (85 more lines)
Domain
Subdomains
Functions
Dependencies
Imported By
Source
Frequently Asked Questions
What does migrate-legacy-classes.ts do?
migrate-legacy-classes.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the CommandLineInterface domain, Codemods subdomain.
What functions are defined in migrate-legacy-classes.ts?
migrate-legacy-classes.ts defines 2 function(s): DESIGN_SYSTEMS, migrateLegacyClasses.
What does migrate-legacy-classes.ts depend on?
migrate-legacy-classes.ts imports 14 module(s): Config, DefaultMap, DesignSystem, baseCandidate, candidate.ts, candidates.ts, cloneCandidate, default-map.ts, and 6 more.
What files import migrate-legacy-classes.ts?
migrate-legacy-classes.ts is imported by 2 file(s): migrate-legacy-classes.test.ts, migrate.ts.
Where is migrate-legacy-classes.ts in the architecture?
migrate-legacy-classes.ts is located at packages/@tailwindcss-upgrade/src/codemods/template/migrate-legacy-classes.ts (domain: CommandLineInterface, subdomain: Codemods, directory: packages/@tailwindcss-upgrade/src/codemods/template).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free