index.ts — tailwindcss Source File
Architecture documentation for index.ts, a typescript file in the tailwindcss codebase. 49 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 5af9cd3c_2cf4_9dee_376e_fc39122d865a["index.ts"] 843b8bc2_2cac_c5a5_2949_1cb978b042ee["package.json"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 843b8bc2_2cac_c5a5_2949_1cb978b042ee ca8635ee_31ba_d4fd_68e2_ee9e03168422["apply.ts"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> ca8635ee_31ba_d4fd_68e2_ee9e03168422 96876152_5423_5f9b_9f88_1db666070351["substituteAtApply"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 96876152_5423_5f9b_9f88_1db666070351 42640952_ea63_55f1_1ff1_00816e2980ae["ast.ts"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 42640952_ea63_55f1_1ff1_00816e2980ae 04953c5c_51e1_25ee_0e61_539631b1aaa9["atRoot"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 04953c5c_51e1_25ee_0e61_539631b1aaa9 f9b19679_c1f0_28d6_4d1a_31a10c52e42d["atRule"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> f9b19679_c1f0_28d6_4d1a_31a10c52e42d 96bdb9bb_93af_2fac_25bd_5a2e67895fa7["comment"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 96bdb9bb_93af_2fac_25bd_5a2e67895fa7 2cb0bb18_cebb_3874_811d_77095e27cf0d["context"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 2cb0bb18_cebb_3874_811d_77095e27cf0d b50aa380_a654_a283_9fe1_91a9a42ca527["cssContext"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> b50aa380_a654_a283_9fe1_91a9a42ca527 c203f636_607a_d332_b4c5_6a40c108f778["decl"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> c203f636_607a_d332_b4c5_6a40c108f778 47b4c875_7e44_6ff9_fb06_16ecf9254223["optimizeAst"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 47b4c875_7e44_6ff9_fb06_16ecf9254223 66319c06_7c38_f9ea_4bf0_2a0e18bac1a4["rule"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 66319c06_7c38_f9ea_4bf0_2a0e18bac1a4 36be1773_d660_31ac_0b0b_88dbd7f6f7a8["styleRule"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 36be1773_d660_31ac_0b0b_88dbd7f6f7a8 2da63033_d079_7b37_5cfb_3877674a70b9["toCss"] 5af9cd3c_2cf4_9dee_376e_fc39122d865a --> 2da63033_d079_7b37_5cfb_3877674a70b9 style 5af9cd3c_2cf4_9dee_376e_fc39122d865a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { version } from '../package.json'
import { substituteAtApply } from './apply'
import {
atRoot,
atRule,
comment,
context,
context as contextNode,
cssContext,
decl,
optimizeAst,
rule,
styleRule,
toCss,
type AstNode,
type AtRule,
type Context,
type StyleRule,
} from './ast'
import { substituteAtImports } from './at-import'
import { applyCompatibilityHooks } from './compat/apply-compat-hooks'
import type { UserConfig } from './compat/config/types'
import { type Plugin } from './compat/plugin-api'
import { compileCandidates } from './compile'
import { substituteFunctions } from './css-functions'
import * as CSS from './css-parser'
import { buildDesignSystem, type DesignSystem } from './design-system'
import { createSourceMap, type DecodedSourceMap } from './source-maps/source-map'
import { Theme, ThemeOptions } from './theme'
import { createCssUtility } from './utilities'
import { expand } from './utils/brace-expansion'
import { escape, unescape } from './utils/escape'
import { segment } from './utils/segment'
import { topologicalSort } from './utils/topological-sort'
import { compoundsForSelectors, IS_VALID_VARIANT_NAME, substituteAtVariant } from './variants'
import { walk, WalkAction } from './walk'
export type Config = UserConfig
const IS_VALID_PREFIX = /^[a-z]+$/
export const enum Polyfills {
None = 0,
// Control if fallbacks for `@property` rules are emitted
AtProperty = 1 << 0,
// Control if `color-mix(…)` fallbacks are inserted
ColorMix = 1 << 1,
// Enable all
All = AtProperty | ColorMix,
}
type CompileOptions = {
base?: string
from?: string
polyfills?: Polyfills
loadModule?: (
id: string,
base: string,
// ... (807 more lines)
Domain
Subdomains
Functions
Dependencies
- Theme
- ThemeOptions
- WalkAction
- apply-compat-hooks.ts
- apply.ts
- applyCompatibilityHooks
- ast.ts
- at-import.ts
- atRoot
- atRule
- brace-expansion.ts
- buildDesignSystem
- comment
- compile.ts
- compileCandidates
- compoundsForSelectors
- context
- createCssUtility
- createSourceMap
- css-functions.ts
- css-parser.ts
- cssContext
- decl
- design-system.ts
- escape
- escape.ts
- expand
- optimizeAst
- package.json
- plugin-api.ts
- rule
- segment
- segment.ts
- source-map.ts
- styleRule
- substituteAtApply
- substituteAtImports
- substituteAtVariant
- substituteFunctions
- theme.ts
- toCss
- topological-sort.ts
- topologicalSort
- types.ts
- unescape
- utilities.ts
- variants.ts
- walk
- walk.ts
Imported By
Source
Frequently Asked Questions
What does index.ts do?
index.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain, PreProcessors subdomain.
What functions are defined in index.ts?
index.ts defines 9 function(s): __unstable__loadDesignSystem, compile, compileAst, id, parseCss, parseThemeOptions, postcssPluginWarning, throwOnLoadModule, throwOnLoadStylesheet.
What does index.ts depend on?
index.ts imports 49 module(s): Theme, ThemeOptions, WalkAction, apply-compat-hooks.ts, apply.ts, applyCompatibilityHooks, ast.ts, at-import.ts, and 41 more.
What files import index.ts?
index.ts is imported by 3 file(s): at-import.test.ts, sort.test.ts, ui.spec.ts.
Where is index.ts in the architecture?
index.ts is located at packages/tailwindcss/src/index.ts (domain: OxideEngine, subdomain: PreProcessors, directory: packages/tailwindcss/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free