The instant on-demand atomic CSS engine.
This report presents the forensic synthetic code analysis of unocss/unocss, a TypeScript project with 18,874 GitHub stars. SynthScan v2.0 examined 139,843 lines of code across 1328 source files, recording 104 pattern matches distributed across 4 syntactic categories. The overall adjusted score of 3.1 places this repository in the Likely human-written band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 104 distinct pattern matches across 4 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | playground/__play.html | 34 | if (window.parent.document.body.parentElement.className.includes('dark')) root.classList.toggle('dark', true) | CODE |
| CRITICAL | packages-presets/preset-mini/src/_utils/utilities.ts | 20 | const v = theme.spacing?.[size || 'DEFAULT'] ?? h.bracket.cssvar.global.auto.fraction.rem(size) | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/border.ts | 128 | const v = theme.borderRadius?.[s || 'DEFAULT'] || h.bracket.cssvar.global.fraction.rem(s || '1') | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/flex.ts | 21 | [/^(?:flex-)?basis-(.+)$/, ([, d], { theme }) => ({ 'flex-basis': theme.spacing?.[d] ?? h.bracket.cssvar.auto.fraction | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/static.ts | 84 | return { [`contain-intrinsic-${sizeMap[d as keyof typeof sizeMap] ?? 'size'}`]: h.bracket.cssvar.global.fraction.rem | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/position.ts | 146 | return theme.spacing?.[v] ?? h.bracket.cssvar.global.auto.fraction.rem(v) | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/position.ts | 197 | [/^(?:position-|pos-)?z-(.+)$/, ([, v], { theme }: RuleContext<Theme>) => ({ 'z-index': theme.zIndex?.[v] ?? h.bracket | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/svg.ts | 39 | return { 'stroke-width': theme.lineWidth?.[b] ?? h.bracket.cssvar.fraction.px.number(b) } | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/size.ts | 33 | return h.bracket.cssvar.global.auto.fraction.rem(prop) | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/size.ts | 77 | return h.bracket.cssvar.global.auto.number(prop) | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/decoration.ts | 19 | [/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ 'text-underline-offset': theme.lineWidth?.[s] ?? h | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/color.ts | 25 | return { 'background-position': h.bracketOfPosition(d)!.split(' ').map(e => h.position.fraction.auto.px.cssvar(e) | CODE |
| CRITICAL | packages-presets/preset-mini/src/_rules/typography.ts | 103 | [/^indent(?:-(.+))?$/, ([, s], { theme }) => ({ 'text-indent': theme.textIndent?.[s || 'DEFAULT'] || h.bracket.cssvar. | CODE |
| CRITICAL | packages-presets/preset-wind3/src/rules/table.ts | 30 | const v = theme.spacing?.[s] ?? h.bracket.cssvar.global.auto.fraction.rem(s) | CODE |
| CRITICAL | packages-presets/preset-wind3/src/rules/table.ts | 41 | const v = theme.spacing?.[s] ?? h.bracket.cssvar.global.auto.fraction.rem(s) | CODE |
| CRITICAL | packages-presets/preset-wind3/src/rules/static.ts | 83 | return { 'object-position': h.bracketOfPosition(d)!.split(' ').map(e => h.position.fraction.auto.px.cssvar(e) ?? e | CODE |
| CRITICAL | packages-presets/preset-wind3/src/rules/spacing.ts | 13 | let v = theme.spacing?.[s || 'DEFAULT'] ?? h.bracket.cssvar.auto.fraction.rem(s || '1') | CODE |
| CRITICAL | packages-presets/preset-wind4/src/utils/utilities.ts | 58 | v = h.bracket.cssvar.global.auto.fraction.rem(isNegative ? `-${size}` : size, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/border.ts | 73 | const v = h.bracket.bracketOfLength.cssvar.global.px(b, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/border.ts | 116 | const _v = theme.radius?.[s] ?? h.bracket.cssvar.global.fraction.rem(s, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/flex.ts | 30 | return { 'flex-basis': h.bracket.cssvar.auto.fraction.rem(d, theme) } | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/table.ts | 66 | v = h.bracket.cssvar.global.auto.fraction.rem(s, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/static.ts | 96 | return { [`contain-intrinsic-${sizeMap[d as keyof typeof sizeMap] ?? 'size'}`]: h.bracket.cssvar.global.fraction.rem | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/static.ts | 256 | return { 'object-position': position.split(' ').map(e => h.position.fraction.auto.px.cssvar(e) ?? e).join(' ') } | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/transform.ts | 111 | const v = numberResolver(b) ?? h.bracket.cssvar.none.fraction.rem(b, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/transform.ts | 132 | const v = h.bracket.cssvar.none.fraction.percent(b, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/position.ts | 152 | return h.bracket.cssvar.global.auto.fraction.rem(v, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/position.ts | 205 | [/^(?:position-|pos-)?z-(.+)$/, ([, v], { theme }) => ({ 'z-index': h.bracket.cssvar.global.auto.number(v, theme) }), | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/svg.ts | 39 | return { 'stroke-width': h.bracket.cssvar.fraction.px.number(b, theme) } | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/size.ts | 49 | return v ?? h.bracket.cssvar.global.auto.none.fraction.rem(prop, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/size.ts | 99 | return h.bracket.cssvar.global.auto.number(prop, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/decoration.ts | 19 | [/^(?:underline|decoration)-offset-(.+)$/, ([, s], { theme }) => ({ 'text-underline-offset': h.auto.bracket.cssvar.glo | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/color.ts | 29 | return { 'background-position': bracketPosition.split(' ').map(e => h.position.fraction.auto.px.cssvar(e) ?? e).jo | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/typography.ts | 231 | v = h.bracket.cssvar.auto.global.rem(s, theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/spacing.ts | 54 | v = theme.spacing?.[s] ?? h.bracket.cssvar.auto.fraction.rem(s || '1', theme) | CODE |
| CRITICAL | packages-presets/preset-wind4/src/rules/mask.ts | 135 | const _v = h.bracket.cssvar.global.fraction.rem(v, ctx?.theme) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | virtual-shared/integration/src/match-positions.ts | 21 | export function getPlainClassMatchedPositionsForPug(codeSplit: string, matchedPlain: Set<string>, start: number) { | CODE |
| LOW | virtual-shared/integration/src/match-positions.ts | 122 | function highlightLessGreaterThanSign(str: string) { | CODE |
| LOW | virtual-shared/integration/src/match-positions.ts | 202 | export async function getMatchedPositionsFromCode( | CODE |
| LOW | virtual-shared/integration/src/layers.ts | 48 | export function getCssEscaperForJsContent(view: string) { | CODE |
| LOW | packages-engine/core/src/config.ts | 298 | function mergeAutocompleteShorthands(shorthands: Record<string, string | string[]>[]) { | CODE |
| LOW | packages-engine/autocomplete/src/parse.ts | 228 | function getValuesFromPartTemplate(part: AutocompleteTemplatePart): string[] { | CODE |
| LOW | …ages-presets/extractor-arbitrary-variants/src/index.ts | 15 | export function splitCodeWithArbitraryVariants(code: string): string[] { | CODE |
| LOW | …ages-presets/extractor-arbitrary-variants/src/index.ts | 48 | export function extractorArbitraryVariants(): Extractor { | CODE |
| LOW | packages-presets/preset-mini/src/_utils/utilities.ts | 296 | export function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>) { | CODE |
| LOW | packages-presets/preset-mini/src/_variants/data.ts | 104 | export function variantTaggedDataAttributes(options: PresetMiniOptions = {}): Variant[] { | CODE |
| LOW | packages-presets/preset-mini/src/_variants/dark.ts | 6 | export function variantColorsMediaOrClass(options: PresetMiniOptions = {}): Variant[] { | CODE |
| LOW⚡ | packages-presets/preset-mini/src/_variants/pseudo.ts | 13 | export function variantPseudoClassesAndElements(): VariantObject[] { | CODE |
| LOW⚡ | packages-presets/preset-mini/src/_variants/pseudo.ts | 18 | export function variantPseudoClassFunctions(): VariantObject { | CODE |
| LOW⚡ | packages-presets/preset-mini/src/_variants/pseudo.ts | 23 | export function variantTaggedPseudoClasses(options: PresetMiniOptions = {}): VariantObject[] { | CODE |
| LOW | packages-presets/preset-mini/src/_variants/aria.ts | 104 | export function variantTaggedAriaAttributes(options: PresetMiniOptions = {}): Variant[] { | CODE |
| LOW | packages-presets/preset-mini/src/_rules/transition.ts | 5 | function resolveTransitionProperty(prop: string, theme: Theme): string | undefined { | CODE |
| LOW | packages-presets/preset-attributify/src/autocomplete.ts | 10 | export function autocompleteExtractorAttributify(options?: AttributifyOptions): AutoCompleteExtractor { | CODE |
| LOW | …kages-presets/preset-web-fonts/src/providers/google.ts | 25 | export function createGoogleCompatibleProvider(name: WebFontsProviders, host: string): Provider { | CODE |
| LOW | packages-presets/preset-wind3/src/rules/background.ts | 63 | function bgGradientPositionResolver() { | CODE |
| LOW | packages-presets/preset-wind4/src/variants/dark.ts | 6 | export function variantColorsMediaOrClass(options: PresetWind4Options = {}): Variant<Theme>[] { | CODE |
| LOW⚡ | packages-presets/preset-wind4/src/variants/pseudo.ts | 15 | export function variantPseudoClassesAndElements(): VariantObject<Theme>[] { | CODE |
| LOW⚡ | packages-presets/preset-wind4/src/variants/pseudo.ts | 20 | export function variantPseudoClassFunctions(): VariantObject<Theme> { | CODE |
| LOW⚡ | packages-presets/preset-wind4/src/variants/pseudo.ts | 25 | export function variantTaggedPseudoClasses(options: PresetWind4Options = {}): VariantObject<Theme>[] { | CODE |
| LOW | packages-presets/preset-wind4/src/utils/utilities.ts | 375 | export function resolveVerticalBreakpoints(context: Readonly<VariantContext<Theme>>) { | CODE |
| LOW | packages-presets/preset-wind4/src/rules/background.ts | 106 | function bgGradientPositionResolver() { | CODE |
| LOW | packages-presets/preset-wind4/src/rules/transition.ts | 5 | function resolveTransitionProperty(prop: string, theme: Theme): string | undefined { | CODE |
| LOW | packages-presets/preset-wind4/src/rules/spacing.ts | 34 | export function notLastChildSelectorVariant(s: string): VariantHandler { | CODE |
| LOW | packages-presets/rule-utils/src/colors.ts | 184 | function parseCssCommaColorFunction(color: string): CSSColorValue | false | undefined { | CODE |
| LOW | packages-presets/rule-utils/src/colors.ts | 207 | function parseCssSpaceColorFunction(color: string): CSSColorValue | undefined { | CODE |
| LOW | …kages-presets/transformer-attributify-jsx/src/index.ts | 51 | export default function transformerAttributifyJsx(options: TransformerAttributifyJsxOptions = {}): SourceCodeTransformer | CODE |
| LOW | …sets/transformer-attributify-jsx/src/resolver/regex.ts | 9 | export async function attributifyJsxRegexResolver(params: AttributifyResolverParams) { | CODE |
| LOW | …resets/transformer-attributify-jsx/src/resolver/oxc.ts | 5 | export async function attributifyJsxOxcResolver(params: AttributifyResolverParams) { | CODE |
| LOW | …ckages-presets/preset-legacy-compat/src/comma-color.ts | 1 | export function toCommaStyleColorFunction(str: string) { | CODE |
| LOW | packages-integrations/vite/src/modes/shadow-dom.ts | 5 | export function ShadowDomModuleModePlugin(ctx: UnocssPluginContext): Plugin { | CODE |
| LOW | packages-integrations/language-server/src/core/cache.ts | 16 | export function getMatchedPositionsFromDoc( | CODE |
| LOW | …ges-integrations/language-server/src/utils/position.ts | 8 | export function shouldProvideAutocomplete(code: string, id: string, offset: number) { | CODE |
| LOW | …/_common/transformClasses/sortClassesIntoCategories.ts | 8 | export async function sortClassesIntoCategories( | CODE |
| LOW | …e-scoped/src/_common/transformApply/writeUtilStyles.ts | 51 | export function surroundAllButOriginalSelectorWithGlobal(originalSelector: string, updatedSelector: string): string { | CODE |
| LOW | …ns/svelte-scoped/src/_preprocess/addGeneratedStyles.ts | 9 | export function addGeneratedStylesIntoStyleBlock(s: MagicString, styles: string) { | CODE |
| LOW | packages-integrations/svelte-scoped/src/_vite/global.ts | 13 | export function checkTransformPageChunkHook(server: ViteDevServer, isSvelteKit: boolean) { | CODE |
| LOW | …svelte-scoped/src/_vite/createCssTransformerPlugins.ts | 8 | export function createCssTransformerPlugins(context: UnocssPluginContext, cssTransformers: PluginOptions['transformers'] | CODE |
| LOW | packages-integrations/eslint-plugin/src/rules/order.ts | 189 | function checkExpressionRecursively(expression: SvelteMustacheTag['expression']) { | CODE |
| LOW | examples/sveltekit-preprocess/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/sveltekit-scoped/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-svelte-scoped/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-vue3-postcss/.stackblitz.js | 5 | function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-svelte/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/sveltekit/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-lightningcss/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-vue3-scoped/.stackblitz.js | 5 | function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-vue3/.stackblitz.js | 5 | function updateDependencyLinksToLatest(filename) { | CODE |
| LOW | examples/vite-svelte-postcss/.stackblitz.js | 5 | async function updateDependencyLinksToLatest(filename) { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | virtual-shared/integration/src/match-positions.ts | 21 | export function getPlainClassMatchedPositionsForPug(codeSplit: string, matchedPlain: Set<string>, start: number) { | COMMENT |
| LOW | test/assets/output/preset-wind4-important-string.css | 1 | /* layer: properties */ | COMMENT |
| LOW | test/assets/output/preset-wind3-important-string.css | 1 | /* layer: default */ | COMMENT |
| LOW | packages-engine/autocomplete/src/parse.ts | 201 | // combinations = combinations.map(i => i + part.value) | COMMENT |
| LOW | examples/sveltekit-scoped/src/app.d.ts | 1 | // See https://kit.svelte.dev/docs/types#app | COMMENT |
| LOW | examples/vite-svelte-scoped/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/vite-svelte/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| LOW | examples/sveltekit/src/app.d.ts | 1 | // See https://kit.svelte.dev/docs/types#app | COMMENT |
| LOW | examples/vite-vue3/uno.config.ts | 21 | }, | COMMENT |
| LOW | examples/vite-vue3/uno.config.ts | 41 | // }, | COMMENT |
| LOW | examples/vite-svelte-postcss/src/vite-env.d.ts | 1 | /// <reference types="svelte" /> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | packages-presets/preset-attributify/src/extractor.ts | 15 | export const defaultIgnoreAttributes = ['placeholder', 'fill', 'opacity', 'stroke-opacity'] | CODE |
| LOW | packages-presets/preset-wind3/src/rules/placeholder.ts | 7 | [/^\$ placeholder-(.+)$/, colorResolver('color', 'placeholder', 'accentColor'), { autocomplete: 'placeholder-$colors' | CODE |
| LOW | packages-presets/preset-wind4/src/rules/placeholder.ts | 8 | [/^\$ placeholder-(.+)$/, colorResolver('color', 'placeholder'), { autocomplete: 'placeholder-$colors' }], | CODE |
| LOW | packages-presets/rule-utils/src/pseudo.ts | 75 | ['placeholder', '::placeholder'], | CODE |
| LOW | packages-integrations/inspector/src/categories.ts | 273 | placeholder: 'placeholder', | CODE |